Previous 15994 Revisions Next

r14940 Monday 16th April, 2012 at 08:31:35 UTC by Miodrag Milanović
Sync with MAME r15997 (no whatsnew)
[src/emu]device.c device.h
[src/mame/drivers]blitz68k.c bmcbowl.c gstriker.c hornet.c igs011.c igs017.c igspoker.c itech8.c jalmah.c jollyjgr.c mpu4vid.c photon2.c rungun.c scobra.c splus.c srmp6.c subsino.c subsino2.c tmaster.c vamphalf.c zr107.c
[src/mame/includes]argus.h asteroid.h astrocde.h atarig1.h atarig42.h atarigx2.h atarisy1.h balsente.h beathead.h blstroid.h btime.h bublbobl.h cave.h cclimber.h centiped.h cinemat.h cischeat.h cvs.h cyberbal.h ddragon.h dec0.h dec8.h deco32.h dooyong.h equites.h f1gp.h fantland.h firetrk.h foodf.h gaelco.h gaelco3d.h galaga.h galaxold.h goldstar.h harddriv.h homedata.h itech32.h itech8.h jpmimpct.h kaneko16.h ladybug.h lasso.h liberate.h m62.h mcr3.h megadriv.h metro.h midvunit.h midxunit.h midyunit.h model2.h mpu4.h mystwarr.h namconb1.h namcos21.h namcos22.h nemesis.h ojankohs.h opwolf.h pacman.h pgm.h pktgaldx.h playmark.h psikyo.h punchout.h realbrk.h rohga.h sauro.h seibuspi.h seicross.h seta.h seta2.h shangkid.h slapfght.h snowbros.h splash.h sshangha.h sslam.h ssv.h suna16.h superqix.h system16.h taito_b.h taito_f2.h taitojc.h tatsumi.h tmnt.h toaplan2.h toobin.h tsamurai.h tubep.h tumbleb.h twin16.h twincobr.h undrfire.h unico.h vsnes.h warpwarp.h wecleman.h xmen.h zaxxon.h
[src/mame/machine]atarigen.c atarigen.h harddriv.c pgmprot1.c
[src/mame/video]beathead.c harddriv.c itech8.c mcr3.c

src/mame/machine/pgmprot1.c
r14939r14940
118118static READ16_HANDLER( pgm_arm7_type1_ram_r )
119119{
120120   pgm_arm_type1_state *state = space->machine().driver_data<pgm_arm_type1_state>();
121   UINT16 *share16 = (UINT16 *)state->m_arm7_shareram;
121   UINT16 *share16 = reinterpret_cast<UINT16 *>(state->m_arm7_shareram.target());
122122
123123   if (PGMARM7LOGERROR)
124124      logerror("M68K: ARM7 Shared RAM Read: %04x = %04x (%08x) (%06x)\n", BYTE_XOR_LE(offset), share16[BYTE_XOR_LE(offset)], mem_mask, cpu_get_pc(&space->device()));
r14939r14940
128128static WRITE16_HANDLER( pgm_arm7_type1_ram_w )
129129{
130130   pgm_arm_type1_state *state = space->machine().driver_data<pgm_arm_type1_state>();
131   UINT16 *share16 = (UINT16 *)state->m_arm7_shareram;
131   UINT16 *share16 = reinterpret_cast<UINT16 *>(state->m_arm7_shareram.target());
132132
133133   if (PGMARM7LOGERROR)
134134      logerror("M68K: ARM7 Shared RAM Write: %04x = %04x (%04x) (%06x)\n", BYTE_XOR_LE(offset), data, mem_mask, cpu_get_pc(&space->device()));
r14939r14940
277277   if (regionhack != 0xff) return regionhack;
278278
279279   offset = 0x4;
280   UINT16 *share16 = (UINT16 *)state->m_arm7_shareram;
280   UINT16 *share16 = reinterpret_cast<UINT16 *>(state->m_arm7_shareram.target());
281281   return share16[BYTE_XOR_LE(offset << 1)];
282282}
283283
src/mame/machine/harddriv.c
r14939r14940
6161   /* predetermine memory regions */
6262   state->m_sim_memory = (UINT16 *)machine.region("user1")->base();
6363   state->m_sim_memory_size = machine.region("user1")->bytes() / 2;
64   state->m_adsp_pgm_memory_word = (UINT16 *)((UINT8 *)state->m_adsp_pgm_memory + 1);
64   state->m_adsp_pgm_memory_word = (UINT16 *)(reinterpret_cast<UINT8 *>(state->m_adsp_pgm_memory.target()) + 1);
6565}
6666
6767
src/mame/machine/atarigen.c
r14939r14940
117117
118118   /* allocate timers for all screens */
119119   screen_device_iterator iter(machine.root_device());
120   assert(iter.count() < ARRAY_LENGTH(state->m_screen_timer));
120   assert(iter.count() <= ARRAY_LENGTH(state->m_screen_timer));
121121   for (i = 0, screen = iter.first(); screen != NULL; i++, screen = iter.next())
122122   {
123123      state->m_screen_timer[i].screen = screen;
src/mame/machine/atarigen.h
r14939r14940
106106        m_alpha2(*this, "alpha2"),
107107        m_xscroll(*this, "xscroll"),
108108        m_yscroll(*this, "yscroll"),
109        m_playfield32(*this, "playfield32"),
110        m_alpha32(*this, "alpha32"),
109111        m_atarivc_data(*this, "atarivc_data"),
110112        m_atarivc_eof_data(*this, "atarivc_eof_data") { }
111113
r14939r14940
143145   optional_shared_ptr<UINT16> m_xscroll;
144146   optional_shared_ptr<UINT16> m_yscroll;
145147
146   UINT32 *         m_playfield32;
147   UINT32 *         m_alpha32;
148   optional_shared_ptr<UINT32> m_playfield32;
149   optional_shared_ptr<UINT32> m_alpha32;
148150
149151   tilemap_t *         m_playfield_tilemap;
150152   tilemap_t *         m_playfield2_tilemap;
src/mame/includes/bublbobl.h
r14939r14940
1111   /* memory pointers */
1212   required_shared_ptr<UINT8> m_videoram;
1313   required_shared_ptr<UINT8> m_objectram;
14   required_shared_ptr<UINT8> m_mcu_sharedram;
14   optional_shared_ptr<UINT8> m_mcu_sharedram;
1515//  UINT8 *  paletteram;    // currently this uses generic palette handling
1616
1717   /* video-related */
src/mame/includes/midyunit.h
r14939r14940
3232public:
3333   midyunit_state(const machine_config &mconfig, device_type type, const char *tag)
3434      : driver_device(mconfig, type, tag),
35        m_gfx_rom(*this,"gfx_rom") { }
35        m_gfx_rom(*this, "gfx_rom", 16) { }
3636
3737   UINT16 *m_cmos_ram;
3838   UINT32 m_cmos_page;
39   required_shared_ptr<UINT8> m_gfx_rom;
39   optional_shared_ptr<UINT8> m_gfx_rom;
4040   UINT16 m_prot_result;
4141   UINT16 m_prot_sequence[3];
4242   UINT8 m_prot_index;
src/mame/includes/snowbros.h
r14939r14940
99      m_bootleg_spriteram16(*this, "spriteram16b"),
1010      m_maincpu(*this,"maincpu"){ }
1111
12   required_shared_ptr<UINT16> m_hyperpac_ram;
12   optional_shared_ptr<UINT16> m_hyperpac_ram;
1313   int m_sb3_music_is_playing;
1414   int m_sb3_music;
1515   UINT8 m_semicom_prot_offset;
src/mame/includes/sslam.h
r14939r14940
1818   int m_snd_bank;
1919
2020   required_shared_ptr<UINT16> m_bg_tileram;
21   required_shared_ptr<UINT16> m_md_tileram;
22   required_shared_ptr<UINT16> m_tx_tileram;
21   optional_shared_ptr<UINT16> m_md_tileram;
22   optional_shared_ptr<UINT16> m_tx_tileram;
2323   required_shared_ptr<UINT16> m_regs;
2424   required_shared_ptr<UINT16> m_spriteram;
2525
src/mame/includes/twincobr.h
r14939r14940
1818
1919   int m_toaplan_main_cpu;
2020   int m_wardner_membank;
21   required_shared_ptr<UINT8> m_sharedram;
21   optional_shared_ptr<UINT8> m_sharedram;
2222   INT32 m_fg_rom_bank;
2323   INT32 m_bg_ram_bank;
2424   INT32 m_wardner_sprite_hack;
src/mame/includes/seibuspi.h
r14939r14940
1010      m_spi_scrollram(*this, "spi_scrollram"),
1111      m_spimainram(*this, "spimainram"){ }
1212
13   required_shared_ptr<UINT32> m_spi_scrollram;
13   optional_shared_ptr<UINT32> m_spi_scrollram;
1414   required_shared_ptr<UINT32> m_spimainram;
1515
1616   intel_e28f008sa_device *m_flash[2];
src/mame/includes/sauro.h
r14939r14940
1212   required_shared_ptr<UINT8> m_spriteram;
1313   required_shared_ptr<UINT8> m_videoram;
1414   required_shared_ptr<UINT8> m_colorram;
15   required_shared_ptr<UINT8> m_videoram2;
16   required_shared_ptr<UINT8> m_colorram2;
15   optional_shared_ptr<UINT8> m_videoram2;
16   optional_shared_ptr<UINT8> m_colorram2;
1717
1818   tilemap_t *m_bg_tilemap;
1919   tilemap_t *m_fg_tilemap;
src/mame/includes/seta2.h
r14939r14940
1414   required_device<cpu_device> m_maincpu;
1515   optional_shared_ptr<UINT16> m_nvram;
1616
17   required_shared_ptr<UINT16> m_spriteram;
18   required_shared_ptr<UINT16> m_vregs;
17   optional_shared_ptr<UINT16> m_spriteram;
18   optional_shared_ptr<UINT16> m_vregs;
1919   optional_shared_ptr<UINT32> m_coldfire_regs;
2020
2121   optional_shared_ptr<UINT8> m_funcube_outputs;
src/mame/includes/balsente.h
r14939r14940
127127   
128128   required_shared_ptr<UINT8> m_spriteram;
129129   required_shared_ptr<UINT8> m_videoram;   
130   required_shared_ptr<UINT16> m_shrike_io;
131   required_shared_ptr<UINT16> m_shrike_shared;
130   optional_shared_ptr<UINT16> m_shrike_io;
131   optional_shared_ptr<UINT16> m_shrike_shared;
132132
133133   DECLARE_WRITE8_MEMBER(balsente_random_reset_w);
134134   DECLARE_READ8_MEMBER(balsente_random_num_r);
src/mame/includes/megadriv.h
r14939r14940
113113{
114114public:
115115   segac2_state(const machine_config &mconfig, device_type type, const char *tag)
116   : md_base_state(mconfig, type, tag) { }
116   : md_base_state(mconfig, type, tag),
117     m_paletteram(*this, "paletteram") { }
117118
118119   // for Print Club only
119120   int m_cam_data;
120121
121122   int m_segac2_enable_display;
122123
123   UINT16* m_paletteram;
124   required_shared_ptr<UINT16> m_paletteram;
124125
125126   /* internal states */
126127   UINT8      m_misc_io_data[0x10];   /* holds values written to the I/O chip */
src/mame/includes/itech32.h
r14939r14940
2929      m_tms2_ram(*this, "tms2_ram"){ }
3030
3131   optional_shared_ptr<UINT16> m_main_ram;
32   required_shared_ptr<UINT16> m_nvram;
33   required_shared_ptr<UINT16> m_video;
34   required_shared_ptr<UINT16> m_main_rom;
35   required_shared_ptr<UINT32> m_drivedge_zbuf_control;
36   required_shared_ptr<UINT32> m_tms1_boot;
37   required_shared_ptr<UINT32> m_tms1_ram;
38   required_shared_ptr<UINT32> m_tms2_ram;
32   optional_shared_ptr<UINT16> m_nvram;
33   optional_shared_ptr<UINT16> m_video;
34   optional_shared_ptr<UINT16> m_main_rom;
35   optional_shared_ptr<UINT32> m_drivedge_zbuf_control;
36   optional_shared_ptr<UINT32> m_tms1_boot;
37   optional_shared_ptr<UINT32> m_tms1_ram;
38   optional_shared_ptr<UINT32> m_tms2_ram;
3939
4040   void nvram_init(nvram_device &nvram, void *base, size_t length);
4141
src/mame/includes/undrfire.h
r14939r14940
2020   UINT16 m_coin_word;
2121   UINT16 m_port_sel;
2222   int m_frame_counter;
23   required_shared_ptr<UINT32> m_ram;
24   required_shared_ptr<UINT32> m_shared_ram;
23   optional_shared_ptr<UINT32> m_ram;
24   optional_shared_ptr<UINT32> m_shared_ram;
2525   struct tempsprite *m_spritelist;
2626   UINT16 m_rotate_ctrl[8];
2727   UINT8 m_dislayer[6];
src/mame/includes/deco32.h
r14939r14940
2626   required_shared_ptr<UINT32> m_pf3_rowscroll32;
2727   required_shared_ptr<UINT32> m_pf4_rowscroll32;
2828
29   required_shared_ptr<UINT32> m_ace_ram;
29   optional_shared_ptr<UINT32> m_ace_ram;
3030
3131   int m_raster_enable;
3232   timer_device *m_raster_irq_timer;
src/mame/includes/argus.h
r14939r14940
1818   required_shared_ptr<UINT8> m_bg1_scrollx;
1919   required_shared_ptr<UINT8> m_bg1_scrolly;
2020   required_shared_ptr<UINT8> m_paletteram;
21   required_shared_ptr<UINT8> m_txram;
22   required_shared_ptr<UINT8> m_bg1ram;
21   optional_shared_ptr<UINT8> m_txram;
22   optional_shared_ptr<UINT8> m_bg1ram;
2323   required_shared_ptr<UINT8> m_spriteram;   
24   required_shared_ptr<UINT8> m_butasan_bg1ram;
24   optional_shared_ptr<UINT8> m_butasan_bg1ram;
2525   
2626   UINT8 *m_dummy_bg0ram;
2727   UINT8 *m_butasan_txram;
src/mame/includes/zaxxon.h
r14939r14940
1515
1616   required_shared_ptr<UINT8> m_videoram;
1717   optional_shared_ptr<UINT8> m_spriteram;
18   required_shared_ptr<UINT8> m_colorram;
18   optional_shared_ptr<UINT8> m_colorram;
1919   
2020   UINT8 m_int_enabled;
2121   UINT8 m_coin_status[3];
src/mame/includes/shangkid.h
r14939r14940
88      m_videoreg(*this, "videoreg"){ }
99
1010   required_shared_ptr<UINT8> m_videoram;
11   required_shared_ptr<UINT8> m_spriteram;
11   optional_shared_ptr<UINT8> m_spriteram;
1212   UINT8 m_bbx_sound_enable;
1313   UINT8 m_sound_latch;
14   required_shared_ptr<UINT8> m_videoreg;
14   optional_shared_ptr<UINT8> m_videoreg;
1515   int m_gfx_type;
1616   tilemap_t *m_background;
1717   DECLARE_WRITE8_MEMBER(shangkid_maincpu_bank_w);
src/mame/includes/punchout.h
r14939r14940
2121   required_shared_ptr<UINT8> m_spr1_videoram;
2222   required_shared_ptr<UINT8> m_spr2_videoram;
2323   required_shared_ptr<UINT8> m_bg_bot_videoram;
24   required_shared_ptr<UINT8> m_armwrest_fg_videoram;
24   optional_shared_ptr<UINT8> m_armwrest_fg_videoram;
2525   tilemap_t *m_bg_top_tilemap;
2626   tilemap_t *m_bg_bot_tilemap;
2727   tilemap_t *m_fg_tilemap;
src/mame/includes/cclimber.h
r14939r14940
2323   required_shared_ptr<UINT8> m_bigsprite_control;
2424   required_shared_ptr<UINT8> m_colorram;
2525   required_shared_ptr<UINT8> m_flip_screen;
26   required_shared_ptr<UINT8> m_swimmer_side_background_enabled;
27   required_shared_ptr<UINT8> m_swimmer_palettebank;
28   required_shared_ptr<UINT8> m_swimmer_background_color;
29   required_shared_ptr<UINT8> m_toprollr_bg_videoram;
30   required_shared_ptr<UINT8> m_toprollr_bg_coloram;
26   optional_shared_ptr<UINT8> m_swimmer_side_background_enabled;
27   optional_shared_ptr<UINT8> m_swimmer_palettebank;
28   optional_shared_ptr<UINT8> m_swimmer_background_color;
29   optional_shared_ptr<UINT8> m_toprollr_bg_videoram;
30   optional_shared_ptr<UINT8> m_toprollr_bg_coloram;
3131   
3232   UINT8 m_yamato_p0;
3333   UINT8 m_yamato_p1;
src/mame/includes/foodf.h
r14939r14940
1212public:
1313   foodf_state(const machine_config &mconfig, device_type type, const char *tag)
1414      : atarigen_state(mconfig, type, tag),
15        m_nvram(*this, "nvram") { }
15        m_nvram(*this, "nvram"),
16        m_spriteram(*this, "spriteram") { }
1617
1718   required_device<x2212_device> m_nvram;
1819
r14939r14940
2223   UINT8         m_playfield_flip;
2324
2425   UINT8         m_whichport;
25   UINT16 *m_spriteram;
26   required_shared_ptr<UINT16> m_spriteram;
2627   DECLARE_WRITE16_MEMBER(nvram_recall_w);
2728   DECLARE_WRITE8_MEMBER(digital_w);
2829   DECLARE_READ16_MEMBER(analog_r);
src/mame/includes/kaneko16.h
r14939r14940
9090
9191   required_device<cpu_device> m_maincpu;
9292   optional_shared_ptr<UINT16> m_spriteram;
93   required_shared_ptr<UINT16> m_bg15_reg;
94   required_shared_ptr<UINT16> m_bg15_select;
93   optional_shared_ptr<UINT16> m_bg15_reg;
94   optional_shared_ptr<UINT16> m_bg15_select;
9595   required_shared_ptr<UINT16> m_sprites_regs;
96   required_shared_ptr_array<UINT16,4> m_vram;
97   required_shared_ptr_array<UINT16,4> m_vscroll;
96   optional_shared_ptr_array<UINT16,4> m_vram;
97   optional_shared_ptr_array<UINT16,4> m_vscroll;
9898   required_shared_ptr<UINT16> m_layers_0_regs;
99   required_shared_ptr<UINT16> m_layers_1_regs;
99   optional_shared_ptr<UINT16> m_layers_1_regs;
100100   required_shared_ptr<UINT16> m_mcu_ram;
101101   required_shared_ptr<UINT16> m_mainram;
102102   
src/mame/includes/goldstar.h
r14939r14940
3030   required_shared_ptr<UINT8> m_reel3_scroll;
3131
3232   /* reelx_attrram for unkch sets */
33   required_shared_ptr<UINT8> m_reel1_attrram;
34   required_shared_ptr<UINT8> m_reel2_attrram;
35   required_shared_ptr<UINT8> m_reel3_attrram;
33   optional_shared_ptr<UINT8> m_reel1_attrram;
34   optional_shared_ptr<UINT8> m_reel2_attrram;
35   optional_shared_ptr<UINT8> m_reel3_attrram;
3636   UINT8 m_unkch_vidreg;
3737
3838   tilemap_t *m_reel1_tilemap;
src/mame/includes/mpu4.h
r14939r14940
176176   UINT8 m_m6809_acia_rts;
177177   UINT8 m_m6809_acia_dcd;
178178   int m_gfx_index;
179   required_shared_ptr<UINT16> m_vid_vidram;
180   required_shared_ptr<UINT16> m_vid_mainram;
179   optional_shared_ptr<UINT16> m_vid_vidram;
180   optional_shared_ptr<UINT16> m_vid_mainram;
181181//  UINT8 m_scn2674_IR[16];
182182   UINT8 m_scn2674_IR_pointer;
183183   UINT8 m_scn2674_screen1_l;
src/mame/includes/seicross.h
r14939r14940
1515   required_shared_ptr<UINT8> m_row_scroll;
1616   required_shared_ptr<UINT8> m_spriteram2;
1717   required_shared_ptr<UINT8> m_colorram;
18   required_shared_ptr<UINT8> m_nvram;
18   optional_shared_ptr<UINT8> m_nvram;
1919
2020   UINT8 m_portb;
2121   tilemap_t *m_bg_tilemap;
src/mame/includes/system16.h
r14939r14940
1414      m_goldnaxeb2_fgpage(*this, "gab2_fgpage"){ }
1515
1616   required_shared_ptr<UINT16> m_textram;
17   required_shared_ptr<UINT16> m_bg0_tileram;
18   required_shared_ptr<UINT16> m_bg1_tileram;
17   optional_shared_ptr<UINT16> m_bg0_tileram;
18   optional_shared_ptr<UINT16> m_bg1_tileram;
1919   required_shared_ptr<UINT16> m_tileram;
20   required_shared_ptr<UINT16> m_goldnaxeb2_bgpage;
21   required_shared_ptr<UINT16> m_goldnaxeb2_fgpage;
20   optional_shared_ptr<UINT16> m_goldnaxeb2_bgpage;
21   optional_shared_ptr<UINT16> m_goldnaxeb2_fgpage;
2222
2323
2424   UINT16 m_coinctrl;
src/mame/includes/mcr3.h
r14939r14940
22{
33public:
44   mcr3_state(const machine_config &mconfig, device_type type, const char *tag)
5      : mcr_state(mconfig, type, tag) { }
5      : mcr_state(mconfig, type, tag),
6        m_spyhunt_alpharam(*this, "spyhunt_alpha") { }
67
7   UINT8 *m_videoram;
8   UINT8 *m_spriteram;
9   size_t m_spriteram_size;
108   UINT8 m_input_mux;
119   UINT8 m_latched_input;
1210   UINT8 m_last_op4;
r14939r14940
1715   INT8 m_maxrpm_p2_shift;
1816   UINT8 m_spyhunt_sprite_color_mask;
1917   INT16 m_spyhunt_scroll_offset;
20   UINT8 *m_spyhunt_alpharam;
18   optional_shared_ptr<UINT8> m_spyhunt_alpharam;
2119   INT16 m_spyhunt_scrollx;
2220   INT16 m_spyhunt_scrolly;
2321   tilemap_t *m_bg_tilemap;
src/mame/includes/taito_b.h
r14939r14940
99
1010   /* memory pointers */
1111   required_shared_ptr<UINT16> m_spriteram;
12   required_shared_ptr<UINT16> m_pixelram;
12   optional_shared_ptr<UINT16> m_pixelram;
1313//  UINT16 *      m_paletteram;   // this currently uses generic palette handlers
1414
1515   /* video-related */
src/mame/includes/btime.h
r14939r14940
1515      m_audio_rambase(*this, "audio_rambase"){ }
1616
1717   /* memory pointers */
18   required_shared_ptr<UINT8> m_rambase;
18   optional_shared_ptr<UINT8> m_rambase;
1919   required_shared_ptr<UINT8> m_videoram;
2020   required_shared_ptr<UINT8> m_colorram;
2121//  UINT8 *  m_paletteram;    // currently this uses generic palette handling
r14939r14940
2525   optional_shared_ptr<UINT8> m_deco_charram;
2626   optional_shared_ptr<UINT8> m_spriteram;      // used by disco
2727//  UINT8 *  m_decrypted;
28   required_shared_ptr<UINT8> m_audio_rambase;
28   optional_shared_ptr<UINT8> m_audio_rambase;
2929
3030   /* video-related */
3131   bitmap_ind16 *m_background_bitmap;
src/mame/includes/gaelco3d.h
r14939r14940
5353   gaelco3d_state(const machine_config &mconfig, device_type type, const char *tag)
5454      : driver_device(mconfig, type, tag),
5555        m_adsp_ram_base(*this,"adsp_ram_base"),
56        m_m68k_ram_base(*this,"m68k_ram_base"),
57        m_tms_comm_base(*this,"tms_comm_base"),
56        m_m68k_ram_base(*this,"m68k_ram_base",0),
57        m_tms_comm_base(*this,"tms_comm_base",0),
5858        m_adsp_control_regs(*this,"adsp_regs"),
5959        m_adsp_fastram_base(*this,"adsp_fastram") { }
6060
src/mame/includes/itech8.h
r14939r14940
1414public:
1515   itech8_state(const machine_config &mconfig, device_type type, const char *tag)
1616      : driver_device(mconfig, type, tag),
17        m_visarea(0, 0, 0, 0) ,
18      m_grom_bank(*this, "grom_bank"){ }
17        m_visarea(0, 0, 0, 0){ }
1918
2019   rectangle m_visarea;
21   required_shared_ptr<UINT8> m_grom_bank;
20   UINT8 m_grom_bank;
2221
2322   UINT8 m_blitter_int;
2423   UINT8 m_tms34061_int;
r14939r14940
6261   DECLARE_WRITE8_MEMBER(sound_data_w);
6362   DECLARE_WRITE8_MEMBER(gtg2_sound_data_w);
6463   DECLARE_READ8_MEMBER(sound_data_r);
64   DECLARE_WRITE8_MEMBER(grom_bank_w);
6565   DECLARE_WRITE16_MEMBER(grom_bank16_w);
6666   DECLARE_WRITE16_MEMBER(display_page16_w);
6767   DECLARE_WRITE16_MEMBER(palette16_w);
src/mame/includes/namconb1.h
r14939r14940
2929   required_device<cpu_device> m_mcu;
3030   required_shared_ptr<UINT32> m_nvmem32;
3131   required_shared_ptr<UINT32> m_spritebank32;
32   required_shared_ptr<UINT32> m_tilebank32;
32   optional_shared_ptr<UINT32> m_tilebank32;
3333   required_shared_ptr<UINT16> m_namconb_shareram;
3434
3535   UINT8 m_namconb_cpureg[32];
src/mame/includes/model2.h
r14939r14940
3030   required_shared_ptr<UINT32> m_textureram1;
3131   required_shared_ptr<UINT32> m_lumaram;
3232   required_shared_ptr<UINT16> m_soundram;
33   required_shared_ptr<UINT32> m_tgp_program;
33   optional_shared_ptr<UINT32> m_tgp_program;
3434   
3535   UINT32 m_intreq;
3636   UINT32 m_intena;
src/mame/includes/sshangha.h
r14939r14940
3030   required_shared_ptr<UINT16> m_sprite_paletteram2;
3131   required_shared_ptr<UINT16> m_tile_paletteram1;
3232
33   required_shared_ptr<UINT16> m_prot_data;
33   optional_shared_ptr<UINT16> m_prot_data;
3434   int m_video_control;
3535
3636
src/mame/includes/tmnt.h
r14939r14940
1212
1313   /* memory pointers */
1414   required_shared_ptr<UINT16> m_spriteram;
15   required_shared_ptr<UINT16> m_tmnt2_rom;
16   required_shared_ptr<UINT16> m_sunset_104000;
17   required_shared_ptr<UINT16> m_tmnt2_1c0800;
15   optional_shared_ptr<UINT16> m_tmnt2_rom;
16   optional_shared_ptr<UINT16> m_sunset_104000;
17   optional_shared_ptr<UINT16> m_tmnt2_1c0800;
1818//  UINT16 *    m_paletteram;    // currently this uses generic palette handling
1919//  UINT8 *     m_nvram;    // currently cuebrick uses generic nvram handling
2020//  UINT8 *     m_cuebrick_nvram;
src/mame/includes/jpmimpct.h
r14939r14940
7171   int m_slidesout;
7272   int m_hopper[3];
7373   int m_motor[3];
74   required_shared_ptr<UINT16> m_vram;
74   optional_shared_ptr<UINT16> m_vram;
7575   struct bt477_t m_bt477;
7676   DECLARE_WRITE16_MEMBER(m68k_tms_w);
7777   DECLARE_READ16_MEMBER(m68k_tms_r);
src/mame/includes/taitojc.h
r14939r14940
4646
4747   poly_manager *m_poly;
4848
49   required_shared_ptr<UINT32> m_f3_shared_ram;
49   optional_shared_ptr<UINT32> m_f3_shared_ram;
5050   required_shared_ptr<UINT32> m_main_ram;
5151   required_shared_ptr<UINT16> m_dsp_shared_ram;
5252   required_shared_ptr<UINT32> m_palette_ram;
src/mame/includes/psikyo.h
r14939r14940
2020   required_shared_ptr<UINT32> m_vram_0;
2121   required_shared_ptr<UINT32> m_vram_1;
2222   required_shared_ptr<UINT32> m_vregs;
23   required_shared_ptr<UINT32> m_bootleg_spritebuffer;
23   optional_shared_ptr<UINT32> m_bootleg_spritebuffer;
2424   UINT32 *       m_spritebuf1;
2525   UINT32 *       m_spritebuf2;
2626//      UINT32 *       m_paletteram;  // currently this uses generic palette handling
src/mame/includes/playmark.h
r14939r14940
1414      m_rowscroll(*this, "rowscroll"){ }
1515
1616   /* memory pointers */
17   required_shared_ptr<UINT16> m_bgvideoram;
17   optional_shared_ptr<UINT16> m_bgvideoram;
1818   required_shared_ptr<UINT16> m_videoram1;
19   required_shared_ptr<UINT16> m_videoram2;
20   required_shared_ptr<UINT16> m_videoram3;
19   optional_shared_ptr<UINT16> m_videoram2;
20   optional_shared_ptr<UINT16> m_videoram3;
2121   required_shared_ptr<UINT16> m_spriteram;
22   required_shared_ptr<UINT16> m_rowscroll;
22   optional_shared_ptr<UINT16> m_rowscroll;
2323//      UINT16 *     m_paletteram;    // currently this uses generic palette handling
2424
2525   /* video-related */
src/mame/includes/pgm.h
r14939r14940
101101{
102102public:
103103   pgm_arm_type1_state(const machine_config &mconfig, device_type type, const char *tag)
104      : pgm_state(mconfig, type, tag) {
104      : pgm_state(mconfig, type, tag),
105        m_arm7_shareram(*this, "arm7_shareram") {
105106
106107      m_curslots = 0;
107108      m_puzzli_54_trigger = 0;
r14939r14940
137138   UINT16        m_pgm_arm_type1_highlatch_68k_w;
138139   UINT16        m_pgm_arm_type1_lowlatch_68k_w;
139140   UINT32        m_pgm_arm_type1_counter;
140   UINT32 *      m_arm7_shareram;
141   required_shared_ptr<UINT32> m_arm7_shareram;
141142
142143   cpu_device *m_prot;
143144};
src/mame/includes/namcos21.h
r14939r14940
3939   optional_shared_ptr<UINT16> m_winrun_dspbios;
4040   optional_shared_ptr<UINT16> m_winrun_polydata;
4141   optional_shared_ptr<UINT16> m_winrun_gpucomram;
42   required_shared_ptr<UINT16> m_dspram16;
42   optional_shared_ptr<UINT16> m_dspram16;
4343   required_shared_ptr<UINT16> m_mpSharedRAM1;
4444   required_shared_ptr<UINT8> m_mpDualPortRAM;
45   required_shared_ptr<UINT16> m_master_dsp_code;
45   optional_shared_ptr<UINT16> m_master_dsp_code;
4646
4747   UINT8 *m_videoram;
4848   UINT16 *m_winrun_dspcomram;
src/mame/includes/beathead.h
r14939r14940
1414   beathead_state(const machine_config &mconfig, device_type type, const char *tag)
1515      : atarigen_state(mconfig, type, tag),
1616        m_maincpu(*this, "maincpu"),
17        m_nvram(*this, "nvram") { }
17        m_nvram(*this, "nvram"),
18        m_videoram(*this, "videoram"),
19        m_paletteram(*this, "paletteram"),
20        m_vram_bulk_latch(*this, "vram_bulk_latch"),
21        m_palette_select(*this, "palette_select"),
22        m_ram_base(*this, "ram_base"),
23        m_rom_base(*this, "rom_base") { }
1824
1925   virtual void machine_start();
2026   virtual void machine_reset();
r14939r14940
2733
2834   required_shared_ptr<UINT32>   m_nvram;
2935
30   UINT32 *      m_videoram;
31   UINT32 *      m_paletteram;
36   required_shared_ptr<UINT32> m_videoram;
37   required_shared_ptr<UINT32> m_paletteram;
3238
33   UINT32 *      m_vram_bulk_latch;
34   UINT32 *      m_palette_select;
39   required_shared_ptr<UINT32> m_vram_bulk_latch;
40   required_shared_ptr<UINT32> m_palette_select;
3541
3642   UINT32         m_finescroll;
3743   offs_t         m_vram_latch_offset;
r14939r14940
4046   offs_t         m_hsyncram_start;
4147   UINT8         m_hsyncram[0x800];
4248
43   UINT32 *      m_ram_base;
44   UINT32 *      m_rom_base;
49   required_shared_ptr<UINT32> m_ram_base;
50   required_shared_ptr<UINT32> m_rom_base;
4551
4652   attotime      m_hblank_offset;
4753
src/mame/includes/toaplan2.h
r14939r14940
2929   gp9001vdp_device* m_vdp0;
3030   gp9001vdp_device* m_vdp1;
3131
32   required_shared_ptr<UINT8> m_shared_ram; // 8 bit RAM shared between 68K and sound CPU
33   required_shared_ptr<UINT16> m_shared_ram16;     // Really 8 bit RAM connected to Z180
32   optional_shared_ptr<UINT8> m_shared_ram; // 8 bit RAM shared between 68K and sound CPU
33   optional_shared_ptr<UINT16> m_shared_ram16;     // Really 8 bit RAM connected to Z180
3434
3535   device_t *m_main_cpu;
3636   device_t *m_sub_cpu;
r14939r14940
4343   UINT8 m_sndirq_line;      /* IRQ4 for batrider, IRQ2 for bbakraid */
4444   UINT8 m_z80_busreq;
4545
46   required_shared_ptr<UINT16> m_txvideoram16;
47   required_shared_ptr<UINT16> m_txvideoram16_offs;
48   required_shared_ptr<UINT16> m_txscrollram16;
49   required_shared_ptr<UINT16> m_tx_gfxram16;
50   required_shared_ptr<UINT16> m_mainram16;
46   optional_shared_ptr<UINT16> m_txvideoram16;
47   optional_shared_ptr<UINT16> m_txvideoram16_offs;
48   optional_shared_ptr<UINT16> m_txscrollram16;
49   optional_shared_ptr<UINT16> m_tx_gfxram16;
50   optional_shared_ptr<UINT16> m_mainram16;
5151
5252
5353   bitmap_ind8 m_custom_priority_bitmap;
src/mame/includes/cinemat.h
r14939r14940
2525   UINT8 m_last_portb_write;
2626   float m_target_volume;
2727   float m_current_volume;
28   required_shared_ptr<UINT16> m_rambase;
28   optional_shared_ptr<UINT16> m_rambase;
2929   UINT8 m_coin_detected;
3030   UINT8 m_coin_last_reset;
3131   UINT8 m_mux_select;
src/mame/includes/gaelco.h
r14939r14940
1818   required_shared_ptr<UINT16> m_videoram;
1919   required_shared_ptr<UINT16> m_vregs;
2020   required_shared_ptr<UINT16> m_spriteram;
21   required_shared_ptr<UINT16> m_screen;
21   optional_shared_ptr<UINT16> m_screen;
2222//  UINT16 *     paletteram;    // currently this uses generic palette handling
2323
2424   /* video-related */
src/mame/includes/wecleman.h
r14939r14940
1515   required_shared_ptr<UINT16> m_protection_ram;
1616   required_shared_ptr<UINT16> m_blitter_regs;
1717   required_shared_ptr<UINT16> m_pageram;
18   required_shared_ptr<UINT16> m_txtram;
18   optional_shared_ptr<UINT16> m_txtram;
1919   required_shared_ptr<UINT16> m_spriteram;
2020   required_shared_ptr<UINT16> m_roadram;
2121
src/mame/includes/cischeat.h
r14939r14940
1515   required_shared_ptr_array<UINT16,3> m_scrollram;
1616   required_shared_ptr<UINT16> m_ram;
1717   required_shared_ptr_array<UINT16,2> m_roadram;
18   required_shared_ptr<UINT16> m_f1gpstr2_ioready;
18   optional_shared_ptr<UINT16> m_f1gpstr2_ioready;
1919
2020   UINT16 *m_objectram;
2121   tilemap_t *m_tmap[3];
src/mame/includes/namcos22.h
r14939r14940
4949        m_tilemapattr(*this,"tilemapattr"),
5050        m_czram(*this,"czram") { }
5151
52   required_shared_ptr<UINT32> m_spriteram;
52   optional_shared_ptr<UINT32> m_spriteram;
5353   required_shared_ptr<UINT32> m_shareram;
5454   required_shared_ptr<UINT32> m_system_controller;
5555   required_shared_ptr<UINT32> m_nvmem;
r14939r14940
5959   required_shared_ptr<UINT32> m_textram;
6060   required_shared_ptr<UINT32> m_polygonram;
6161   required_shared_ptr<UINT32> m_gamma;
62   required_shared_ptr<UINT32> m_vics_data;
63   required_shared_ptr<UINT32> m_vics_control;
64   required_shared_ptr<UINT32> m_czattr;
62   optional_shared_ptr<UINT32> m_vics_data;
63   optional_shared_ptr<UINT32> m_vics_control;
64   optional_shared_ptr<UINT32> m_czattr;
6565   required_shared_ptr<UINT32> m_tilemapattr;
6666   optional_shared_ptr<UINT32> m_czram;
6767
src/mame/includes/galaxold.h
r14939r14940
3737   required_shared_ptr<UINT8> m_spriteram;
3838   optional_shared_ptr<UINT8> m_spriteram2;
3939   required_shared_ptr<UINT8> m_attributesram;
40   required_shared_ptr<UINT8> m_bulletsram;
40   optional_shared_ptr<UINT8> m_bulletsram;
4141   optional_shared_ptr<UINT8> m_rockclim_videoram;
4242   optional_shared_ptr<UINT8> m_racknrol_tiles_bank;
4343
src/mame/includes/centiped.h
r14939r14940
1717   required_shared_ptr<UINT8> m_rambase;
1818   required_shared_ptr<UINT8> m_videoram;
1919   required_shared_ptr<UINT8> m_spriteram;
20   required_shared_ptr<UINT8> m_bullsdrt_tiles_bankram;
20   optional_shared_ptr<UINT8> m_bullsdrt_tiles_bankram;
2121   UINT8 m_oldpos[4];
2222   UINT8 m_sign[4];
2323   UINT8 m_dsw_select;
src/mame/includes/atarisy1.h
r14939r14940
1111public:
1212   atarisy1_state(const machine_config &mconfig, device_type type, const char *tag)
1313      : atarigen_state(mconfig, type, tag),
14        m_bankselect(*this, "bankselect"),
1415        m_joystick_timer(*this, "joystick_timer"),
1516        m_yscroll_reset_timer(*this, "yreset_timer"),
1617        m_scanline_timer(*this, "scan_timer"),
1718        m_int3off_timer(*this, "int3off_timer") { }
1819
19   UINT16 *      m_bankselect;
20   required_shared_ptr<UINT16> m_bankselect;
2021
2122   UINT8         m_joystick_type;
2223   UINT8         m_trackball_type;
src/mame/includes/ssv.h
r14939r14940
2424   required_shared_ptr<UINT16> m_paletteram;
2525   required_shared_ptr<UINT16> m_scroll;
2626   required_shared_ptr<UINT16> m_irq_vectors;
27   required_shared_ptr<UINT16> m_gdfs_tmapram;
28   required_shared_ptr<UINT16> m_gdfs_tmapscroll;
29   required_shared_ptr<UINT16> m_spriteram2;
30   required_shared_ptr<UINT16> m_gdfs_blitram;
31   required_shared_ptr<UINT16> m_input_sel;
27   optional_shared_ptr<UINT16> m_gdfs_tmapram;
28   optional_shared_ptr<UINT16> m_gdfs_tmapscroll;
29   optional_shared_ptr<UINT16> m_spriteram2;
30   optional_shared_ptr<UINT16> m_gdfs_blitram;
31   optional_shared_ptr<UINT16> m_input_sel;
3232
3333   int m_tile_code[16];
3434
src/mame/includes/dec0.h
r14939r14940
1111   int m_automat_msm5205_vclk_toggle;
1212   required_shared_ptr<UINT16> m_ram;
1313   required_shared_ptr<UINT16> m_spriteram;
14   required_shared_ptr<UINT8> m_robocop_shared_ram;
14   optional_shared_ptr<UINT8> m_robocop_shared_ram;
1515
1616   int m_GAME;
1717   int m_i8751_return;
src/mame/includes/atarig42.h
r14939r14940
1010{
1111public:
1212   atarig42_state(const machine_config &mconfig, device_type type, const char *tag)
13      : atarigen_state(mconfig, type, tag) { }
13      : atarigen_state(mconfig, type, tag),
14        m_mo_command(*this, "mo_command") { }
1415
1516   UINT16         m_playfield_base;
1617
r14939r14940
2122   UINT16         m_playfield_yscroll;
2223
2324   UINT8         m_analog_data;
24   UINT16 *      m_mo_command;
25   required_shared_ptr<UINT16> m_mo_command;
2526
2627   int          m_sloop_bank;
2728   int          m_sloop_next_bank;
src/mame/includes/metro.h
r14939r14940
4646   optional_shared_ptr<UINT16> m_vram_1;
4747   optional_shared_ptr<UINT16> m_vram_2;
4848   required_shared_ptr<UINT16> m_spriteram;
49   required_shared_ptr<UINT16> m_tiletable;
49   optional_shared_ptr<UINT16> m_tiletable;
5050   UINT16 *    m_tiletable_old;
51   required_shared_ptr<UINT16> m_blitter_regs;
52   required_shared_ptr<UINT16> m_scroll;
53   required_shared_ptr<UINT16> m_window;
54   required_shared_ptr<UINT16> m_irq_enable;
51   optional_shared_ptr<UINT16> m_blitter_regs;
52   optional_shared_ptr<UINT16> m_scroll;
53   optional_shared_ptr<UINT16> m_window;
54   optional_shared_ptr<UINT16> m_irq_enable;
5555   optional_shared_ptr<UINT16> m_irq_levels;
5656   optional_shared_ptr<UINT16> m_irq_vectors;
57   required_shared_ptr<UINT16> m_rombank;
57   optional_shared_ptr<UINT16> m_rombank;
5858   required_shared_ptr<UINT16> m_videoregs;
59   required_shared_ptr<UINT16> m_screenctrl;
59   optional_shared_ptr<UINT16> m_screenctrl;
6060   optional_shared_ptr<UINT16> m_input_sel;
6161   optional_shared_ptr<UINT16> m_k053936_ram;
6262
src/mame/includes/midvunit.h
r14939r14940
4040   midvunit_state(const machine_config &mconfig, device_type type, const char *tag)
4141      : driver_device(mconfig, type, tag),
4242        m_nvram(*this, "nvram"),
43        m_ram_base(*this, "m_ram_base"),
44        m_fastram_base(*this, "m_fastram_base"),
45        m_tms32031_control(*this, "m_tms32031_control"),
46        m_midvplus_misc(*this, "m_midvplus_misc"),
47        m_videoram(*this, "m_videoram"),
48        m_textureram(*this, "m_textureram") { }
43        m_ram_base(*this, "ram_base"),
44        m_fastram_base(*this, "fastram_base"),
45        m_tms32031_control(*this, "tms32031_control"),
46        m_midvplus_misc(*this, "midvplus_misc"),
47        m_videoram(*this, "videoram"),
48        m_textureram(*this, "textureram") { }
4949
5050   optional_shared_ptr<UINT32>   m_nvram;
5151   required_shared_ptr<UINT32> m_ram_base;
src/mame/includes/opwolf.h
r14939r14940
1212      m_cchip_ram(*this, "cchip_ram"){ }
1313
1414   /* memory pointers */
15   required_shared_ptr<UINT8> m_cchip_ram;
15   optional_shared_ptr<UINT8> m_cchip_ram;
1616
1717   /* video-related */
1818   UINT16       m_sprite_ctrl;
src/mame/includes/suna16.h
r14939r14940
99
1010   required_device<cpu_device> m_maincpu;
1111   required_shared_ptr<UINT16> m_spriteram;
12   required_shared_ptr<UINT16> m_spriteram2;
12   optional_shared_ptr<UINT16> m_spriteram2;
1313
1414   UINT16 m_prot;
1515   UINT16 *m_paletteram;
src/mame/includes/warpwarp.h
r14939r14940
88      m_geebee_videoram(*this, "geebee_videoram"),
99      m_videoram(*this, "videoram"){ }
1010
11   required_shared_ptr<UINT8> m_geebee_videoram;
12   required_shared_ptr<UINT8> m_videoram;
11   optional_shared_ptr<UINT8> m_geebee_videoram;
12   optional_shared_ptr<UINT8> m_videoram;
1313   int m_geebee_bgw;
1414   int m_ball_on;
1515   int m_ball_h;
src/mame/includes/ojankohs.h
r14939r14940
1616   /* memory pointers */
1717   required_shared_ptr<UINT8> m_videoram;
1818   required_shared_ptr<UINT8> m_colorram;
19   required_shared_ptr<UINT8> m_paletteram;
19   optional_shared_ptr<UINT8> m_paletteram;
2020
2121   /* video-related */
2222   tilemap_t  *m_tilemap;
src/mame/includes/liberate.h
r14939r14940
1111      m_scratchram(*this, "scratchram"){ }
1212
1313   required_shared_ptr<UINT8> m_paletteram;
14   required_shared_ptr<UINT8> m_bg_vram; /* prosport */
14   optional_shared_ptr<UINT8> m_bg_vram; /* prosport */
1515   required_shared_ptr<UINT8> m_colorram;
1616   required_shared_ptr<UINT8> m_videoram;
1717   required_shared_ptr<UINT8> m_spriteram;
18   required_shared_ptr<UINT8> m_scratchram;
18   optional_shared_ptr<UINT8> m_scratchram;
1919   UINT8 *m_charram;   /* prosoccr */
2020
2121   UINT8 m_io_ram[16];
src/mame/includes/cvs.h
r14939r14940
3030   required_shared_ptr<UINT8> m_video_ram;
3131   required_shared_ptr<UINT8> m_bullet_ram;
3232   required_shared_ptr<UINT8> m_fo_state;
33   required_shared_ptr<UINT8> m_cvs_4_bit_dac_data;
34   required_shared_ptr<UINT8> m_tms5110_ctl_data;
35   required_shared_ptr<UINT8> m_dac3_state;
33   optional_shared_ptr<UINT8> m_cvs_4_bit_dac_data;
34   optional_shared_ptr<UINT8> m_tms5110_ctl_data;
35   optional_shared_ptr<UINT8> m_dac3_state;
3636
3737   /* video-related */
3838   struct cvs_star m_stars[CVS_MAX_STARS];
src/mame/includes/seta.h
r14939r14940
4949
5050   optional_shared_ptr<UINT8> m_sharedram;
5151   optional_shared_ptr<UINT16> m_workram;
52   required_shared_ptr<UINT16> m_vregs;
53   required_shared_ptr<UINT16> m_vram_0;
54   required_shared_ptr<UINT16> m_vctrl_0;
55   required_shared_ptr<UINT16> m_vram_2;
56   required_shared_ptr<UINT16> m_vctrl_2;
57   required_shared_ptr<UINT16> m_paletteram;
52   optional_shared_ptr<UINT16> m_vregs;
53   optional_shared_ptr<UINT16> m_vram_0;
54   optional_shared_ptr<UINT16> m_vctrl_0;
55   optional_shared_ptr<UINT16> m_vram_2;
56   optional_shared_ptr<UINT16> m_vctrl_2;
57   optional_shared_ptr<UINT16> m_paletteram;
5858   optional_shared_ptr<UINT16> m_paletteram2;
5959   optional_shared_ptr<UINT16> m_kiwame_nvram;
6060   optional_shared_ptr<UINT16> m_inttoote_key_select;
src/mame/includes/rohga.h
r14939r14940
4040   optional_device<buffered_spriteram16_device> m_spriteram2;
4141
4242   /* memory pointers */
43   required_shared_ptr<UINT16> m_pf1_rowscroll;
44   required_shared_ptr<UINT16> m_pf2_rowscroll;
43   optional_shared_ptr<UINT16> m_pf1_rowscroll;
44   optional_shared_ptr<UINT16> m_pf2_rowscroll;
4545   required_shared_ptr<UINT16> m_pf3_rowscroll;
4646   required_shared_ptr<UINT16> m_pf4_rowscroll;
4747
src/mame/includes/nemesis.h
r14939r14940
2828   required_shared_ptr<UINT16> m_colorram2;
2929   required_shared_ptr<UINT16> m_spriteram;
3030   required_shared_ptr<UINT16> m_paletteram;
31   required_shared_ptr<UINT8> m_gx400_shared_ram;
31   optional_shared_ptr<UINT8> m_gx400_shared_ram;
3232
3333   /* video-related */
3434   tilemap_t *m_background;
src/mame/includes/asteroid.h
r14939r14940
1414      m_ram1(*this, "ram1"),
1515      m_ram2(*this, "ram2"){ }
1616
17   required_shared_ptr<UINT8> m_ram1;
18   required_shared_ptr<UINT8> m_ram2;
17   optional_shared_ptr<UINT8> m_ram1;
18   optional_shared_ptr<UINT8> m_ram2;
1919   DECLARE_WRITE8_MEMBER(astdelux_coin_counter_w);
2020   DECLARE_WRITE8_MEMBER(llander_led_w);
2121   DECLARE_READ8_MEMBER(asteroid_IN0_r);
src/mame/includes/unico.h
r14939r14940
1111
1212   required_shared_ptr<UINT16> m_vram;
1313   required_shared_ptr<UINT16> m_scroll;
14   required_shared_ptr<UINT32> m_vram32;
15   required_shared_ptr<UINT32> m_scroll32;
14   optional_shared_ptr<UINT32> m_vram32;
15   optional_shared_ptr<UINT32> m_scroll32;
1616   tilemap_t *m_tilemap[3];
1717   int m_sprites_scrolldx;
1818   int m_sprites_scrolldy;
src/mame/includes/realbrk.h
r14939r14940
1919   required_shared_ptr<UINT16> m_vram_2;
2020   required_shared_ptr<UINT16> m_vregs;
2121   required_shared_ptr<UINT16> m_dsw_select;
22   required_shared_ptr<UINT16> m_backup_ram;
23   required_shared_ptr<UINT16> m_vram_0ras;
24   required_shared_ptr<UINT16> m_vram_1ras;
22   optional_shared_ptr<UINT16> m_backup_ram;
23   optional_shared_ptr<UINT16> m_vram_0ras;
24   optional_shared_ptr<UINT16> m_vram_1ras;
2525   bitmap_ind16 *m_tmpbitmap0;
2626   bitmap_ind16 *m_tmpbitmap1;
2727   int m_disable_video;
src/mame/includes/astrocde.h
r14939r14940
2929   char *m_totalword_ptr;
3030   char m_oldword[256];
3131   int m_plural;
32   required_shared_ptr<UINT8> m_protected_ram;
32   optional_shared_ptr<UINT8> m_protected_ram;
3333   UINT8 m_port_1_last;
3434   UINT8 m_port_2_last;
3535   UINT8 m_ram_write_enable;
src/mame/includes/m62.h
r14939r14940
1212   required_shared_ptr<UINT8> m_spriteram;
1313
1414   required_shared_ptr<UINT8> m_m62_tileram;
15   required_shared_ptr<UINT8> m_m62_textram;
16   required_shared_ptr<UINT8> m_scrollram;
15   optional_shared_ptr<UINT8> m_m62_textram;
16   optional_shared_ptr<UINT8> m_scrollram;
1717
1818   /* video-related */
1919   tilemap_t*             m_bg_tilemap;
src/mame/includes/galaga.h
r14939r14940
1313      { }
1414
1515   /* memory pointers */
16   required_shared_ptr<UINT8> m_videoram;
17   required_shared_ptr<UINT8> m_galaga_ram1;
18   required_shared_ptr<UINT8> m_galaga_ram2;
19   required_shared_ptr<UINT8> m_galaga_ram3;
20   required_shared_ptr<UINT8> m_galaga_starcontrol;    // 6 addresses
16   optional_shared_ptr<UINT8> m_videoram;
17   optional_shared_ptr<UINT8> m_galaga_ram1;
18   optional_shared_ptr<UINT8> m_galaga_ram2;
19   optional_shared_ptr<UINT8> m_galaga_ram3;
20   optional_shared_ptr<UINT8> m_galaga_starcontrol;    // 6 addresses
2121   emu_timer *m_cpu3_interrupt_timer;
2222   UINT8 m_custom_mod;
2323
src/mame/includes/lasso.h
r14939r14940
2323   required_shared_ptr<UINT8> m_colorram;
2424   required_shared_ptr<UINT8> m_spriteram;
2525   required_shared_ptr<UINT8> m_back_color;
26   required_shared_ptr<UINT8> m_chip_data;
27   required_shared_ptr<UINT8> m_bitmap_ram;      /* 0x2000 bytes for a 256 x 256 x 1 bitmap */
28   required_shared_ptr<UINT8> m_last_colors;
29   required_shared_ptr<UINT8> m_track_scroll;
26   optional_shared_ptr<UINT8> m_chip_data;
27   optional_shared_ptr<UINT8> m_bitmap_ram;      /* 0x2000 bytes for a 256 x 256 x 1 bitmap */
28   optional_shared_ptr<UINT8> m_last_colors;
29   optional_shared_ptr<UINT8> m_track_scroll;
3030
3131   /* video-related */
3232   tilemap_t  *m_bg_tilemap;
src/mame/includes/vsnes.h
r14939r14940
77      m_work_ram_1(*this, "work_ram_1"){ }
88
99   required_shared_ptr<UINT8> m_work_ram;
10   required_shared_ptr<UINT8> m_work_ram_1;
10   optional_shared_ptr<UINT8> m_work_ram_1;
1111   int m_coin;
1212   int m_do_vrom_bank;
1313   int m_input_latch[4];
src/mame/includes/tsamurai.h
r14939r14940
1414   int m_sound_command3;
1515   int m_vsgongf_sound_nmi_enabled;
1616   required_shared_ptr<UINT8> m_videoram;
17   required_shared_ptr<UINT8> m_colorram;
18   required_shared_ptr<UINT8> m_bg_videoram;
17   optional_shared_ptr<UINT8> m_colorram;
18   optional_shared_ptr<UINT8> m_bg_videoram;
1919   int m_bgcolor;
2020   int m_textbank1;
2121   int m_textbank2;
src/mame/includes/splash.h
r14939r14940
1414   required_shared_ptr<UINT16> m_videoram;
1515   required_shared_ptr<UINT16> m_vregs;
1616   required_shared_ptr<UINT16> m_spriteram;
17   required_shared_ptr<UINT16> m_protdata;
18   required_shared_ptr<UINT16> m_bitmap_mode;
17   optional_shared_ptr<UINT16> m_protdata;
18   optional_shared_ptr<UINT16> m_bitmap_mode;
1919   
2020   int m_bitmap_type;
2121   int m_sprite_attr2_shift;
src/mame/includes/f1gp.h
r14939r14940
1919
2020   /* memory pointers */
2121   required_shared_ptr<UINT16> m_sharedram;
22   required_shared_ptr<UINT16> m_spr1vram;
23   required_shared_ptr<UINT16> m_spr2vram;
24   required_shared_ptr<UINT16> m_spr1cgram;
25   required_shared_ptr<UINT16> m_spr2cgram;
22   optional_shared_ptr<UINT16> m_spr1vram;
23   optional_shared_ptr<UINT16> m_spr2vram;
24   optional_shared_ptr<UINT16> m_spr1cgram;
25   optional_shared_ptr<UINT16> m_spr2cgram;
2626   required_shared_ptr<UINT16> m_fgvideoram;
2727   required_shared_ptr<UINT16> m_rozvideoram;
28   required_shared_ptr<UINT16> m_sprcgram;
29   required_shared_ptr<UINT16> m_spritelist;
30   required_shared_ptr<UINT16> m_spriteram;
31   required_shared_ptr<UINT16> m_fgregs;
32   required_shared_ptr<UINT16> m_rozregs;
28   optional_shared_ptr<UINT16> m_sprcgram;
29   optional_shared_ptr<UINT16> m_spritelist;
30   optional_shared_ptr<UINT16> m_spriteram;
31   optional_shared_ptr<UINT16> m_fgregs;
32   optional_shared_ptr<UINT16> m_rozregs;
3333   UINT16 *  m_zoomdata;
3434//      UINT16 *  m_paletteram;    // currently this uses generic palette handling
3535
src/mame/includes/blstroid.h
r14939r14940
1010{
1111public:
1212   blstroid_state(const machine_config &mconfig, device_type type, const char *tag)
13      : atarigen_state(mconfig, type, tag) { }
13      : atarigen_state(mconfig, type, tag),
14        m_priorityram(*this, "priorityram") { }
1415
15   UINT16 *      m_priorityram;
16   required_shared_ptr<UINT16>   m_priorityram;
1617   DECLARE_WRITE16_MEMBER(blstroid_halt_until_hblank_0_w);
1718   DECLARE_READ16_MEMBER(inputs_r);
1819};
src/mame/includes/tatsumi.h
r14939r14940
3333   UINT8 *m_rom_sprite_lookup2;
3434   UINT8 *m_rom_clut0;
3535   UINT8 *m_rom_clut1;
36   required_shared_ptr<UINT16> m_roundup5_d0000_ram;
37   required_shared_ptr<UINT16> m_roundup5_e0000_ram;
38   required_shared_ptr<UINT16> m_roundup5_unknown0;
39   required_shared_ptr<UINT16> m_roundup5_unknown1;
40   required_shared_ptr<UINT16> m_roundup5_unknown2;
36   optional_shared_ptr<UINT16> m_roundup5_d0000_ram;
37   optional_shared_ptr<UINT16> m_roundup5_e0000_ram;
38   optional_shared_ptr<UINT16> m_roundup5_unknown0;
39   optional_shared_ptr<UINT16> m_roundup5_unknown1;
40   optional_shared_ptr<UINT16> m_roundup5_unknown2;
4141   required_shared_ptr<UINT16> m_68k_ram;
4242   required_shared_ptr<UINT8> m_apache3_z80_ram;
4343   UINT16 m_control_word;
4444   UINT16 m_apache3_rotate_ctrl[12];
4545   required_shared_ptr<UINT16> m_sprite_control_ram;
46   required_shared_ptr<UINT16> m_cyclwarr_videoram0;
47   required_shared_ptr<UINT16> m_cyclwarr_videoram1;
48   required_shared_ptr<UINT16> m_roundup_r_ram;
49   required_shared_ptr<UINT16> m_roundup_p_ram;
50   required_shared_ptr<UINT16> m_roundup_l_ram;
46   optional_shared_ptr<UINT16> m_cyclwarr_videoram0;
47   optional_shared_ptr<UINT16> m_cyclwarr_videoram1;
48   optional_shared_ptr<UINT16> m_roundup_r_ram;
49   optional_shared_ptr<UINT16> m_roundup_p_ram;
50   optional_shared_ptr<UINT16> m_roundup_l_ram;
5151   UINT16 m_last_control;
5252   UINT8 m_apache3_adc;
5353   int m_apache3_rot_idx;
src/mame/includes/harddriv.h
r14939r14940
2626        m_dsp32(*this, "dsp32"),
2727        m_ds4cpu1(*this, "ds4cpu1"),
2828        m_ds4cpu2(*this, "ds4cpu2"),
29        m_msp_ram(*this, "msp_ram"),
30        m_adsp_data_memory(*this, "adsp_data"),
31        m_adsp_pgm_memory(*this, "adsp_pgm_memory"),
32        m_sounddsp_ram(*this, "sounddsp_ram"),
33        m_gsp_vram(*this, "gsp_vram", 16),
34        m_gsp_control_lo(*this, "gsp_control_lo"),
35        m_gsp_control_hi(*this, "gsp_control_hi"),
36        m_gsp_paletteram_lo(*this, "gsp_palram_lo"),
37        m_gsp_paletteram_hi(*this, "gsp_palram_hi"),
2938        m_duart_timer(*this, "duart_timer") { }
3039
3140   required_device<cpu_device> m_maincpu;
r14939r14940
4251   UINT8               m_hd34010_host_access;
4352   UINT8               m_dsk_pio_access;
4453
45   UINT16 *            m_msp_ram;
54   optional_shared_ptr<UINT16> m_msp_ram;
4655   UINT16 *            m_dsk_ram;
4756   UINT16 *            m_dsk_rom;
4857   UINT16 *            m_dsk_zram;
4958   UINT16 *            m_m68k_slapstic_base;
5059   UINT16 *            m_m68k_sloop_alt_base;
5160
52   UINT16 *            m_adsp_data_memory;
53   UINT32 *            m_adsp_pgm_memory;
61   optional_shared_ptr<UINT16> m_adsp_data_memory;
62   optional_shared_ptr<UINT32> m_adsp_pgm_memory;
5463
5564   UINT16 *            m_gsp_protection;
5665
r14939r14940
7079   UINT32               m_msp_speedup_count[4];
7180   UINT32               m_adsp_speedup_count[4];
7281
73   UINT16 *            m_sounddsp_ram;
82   optional_shared_ptr<UINT16> m_sounddsp_ram;
7483
7584   UINT8               m_gsp_multisync;
76   UINT8 *               m_gsp_vram;
77   UINT16 *            m_gsp_control_lo;
78   UINT16 *            m_gsp_control_hi;
79   UINT16 *            m_gsp_paletteram_lo;
80   UINT16 *            m_gsp_paletteram_hi;
81   size_t               m_gsp_vram_size;
85   optional_shared_ptr<UINT8> m_gsp_vram;
86   optional_shared_ptr<UINT16> m_gsp_control_lo;
87   optional_shared_ptr<UINT16> m_gsp_control_hi;
88   optional_shared_ptr<UINT16> m_gsp_paletteram_lo;
89   optional_shared_ptr<UINT16> m_gsp_paletteram_hi;
8290
8391   /* machine state */
8492   UINT8               m_irq_state;
src/mame/includes/fantland.h
r14939r14940
55public:
66   fantland_state(const machine_config &mconfig, device_type type, const char *tag)
77      : driver_device(mconfig, type, tag) ,
8      m_spriteram(*this, "spriteram"),
9      m_spriteram2(*this, "spriteram2"){ }
8      m_spriteram(*this, "spriteram", 16),
9      m_spriteram2(*this, "spriteram2", 16){ }
1010
1111   /* memory pointers */
1212//  UINT8 *    m_spriteram;   // currently directly used in a 16bit map...
src/mame/includes/atarig1.h
r14939r14940
1010{
1111public:
1212   atarig1_state(const machine_config &mconfig, device_type type, const char *tag)
13      : atarigen_state(mconfig, type, tag) { }
13      : atarigen_state(mconfig, type, tag),
14        m_mo_command(*this, "mo_command") { }
1415
1516   UINT8         m_is_pitfight;
1617
1718   UINT8         m_which_input;
18   UINT16 *      m_mo_command;
19   required_shared_ptr<UINT16> m_mo_command;
1920
2021   UINT16 *      m_bslapstic_base;
2122   void *         m_bslapstic_bank0;
src/mame/includes/toobin.h
r14939r14940
1010{
1111public:
1212   toobin_state(const machine_config &mconfig, device_type type, const char *tag)
13      : atarigen_state(mconfig, type, tag) { }
13      : atarigen_state(mconfig, type, tag),
14        m_interrupt_scan(*this, "interrupt_scan") { }
1415
15   UINT16 *      m_interrupt_scan;
16   required_shared_ptr<UINT16> m_interrupt_scan;
1617
1718   double         m_brightness;
1819   bitmap_ind16 m_pfbitmap;
src/mame/includes/xmen.h
r14939r14940
2020   /* for xmen6p */
2121   bitmap_ind16   *m_screen_right;
2222   bitmap_ind16   *m_screen_left;
23   required_shared_ptr<UINT16> m_xmen6p_spriteramleft;
24   required_shared_ptr<UINT16> m_xmen6p_spriteramright;
25   required_shared_ptr<UINT16> m_xmen6p_tilemapleft;
26   required_shared_ptr<UINT16> m_xmen6p_tilemapright;
23   optional_shared_ptr<UINT16> m_xmen6p_spriteramleft;
24   optional_shared_ptr<UINT16> m_xmen6p_spriteramright;
25   optional_shared_ptr<UINT16> m_xmen6p_tilemapleft;
26   optional_shared_ptr<UINT16> m_xmen6p_tilemapright;
2727   UINT16 *   m_k053247_ram;
2828
2929   /* misc */
src/mame/includes/tumbleb.h
r14939r14940
1111      m_control(*this, "control"){ }
1212
1313   /* memory pointers */
14   required_shared_ptr<UINT16> m_mainram;
14   optional_shared_ptr<UINT16> m_mainram;
1515   required_shared_ptr<UINT16> m_spriteram;
1616   required_shared_ptr<UINT16> m_pf1_data;
1717   required_shared_ptr<UINT16> m_pf2_data;
18   required_shared_ptr<UINT16> m_control;
18   optional_shared_ptr<UINT16> m_control;
1919//  UINT16 *    m_paletteram;    // currently this uses generic palette handling
2020
2121   /* misc */
src/mame/includes/superqix.h
r14939r14940
1212   required_device<cpu_device> m_maincpu;
1313   required_shared_ptr<UINT8> m_spriteram;
1414   required_shared_ptr<UINT8> m_videoram;
15   required_shared_ptr<UINT8> m_bitmapram;
16   required_shared_ptr<UINT8> m_bitmapram2;
15   optional_shared_ptr<UINT8> m_bitmapram;
16   optional_shared_ptr<UINT8> m_bitmapram2;
1717
1818   INT16 *m_samplebuf;
1919   UINT8 m_port1;
src/mame/includes/cyberbal.h
r14939r14940
1010{
1111public:
1212   cyberbal_state(const machine_config &mconfig, device_type type, const char *tag)
13      : atarigen_state(mconfig, type, tag) { }
13      : atarigen_state(mconfig, type, tag),
14        m_paletteram_0(*this, "paletteram_0"),
15        m_paletteram_1(*this, "paletteram_1") { }
1416
15   UINT16 *      m_paletteram_0;
16   UINT16 *      m_paletteram_1;
17   optional_shared_ptr<UINT16> m_paletteram_0;
18   optional_shared_ptr<UINT16> m_paletteram_1;
1719   UINT16         m_current_slip[2];
1820   UINT8         m_playfield_palette_bank[2];
1921   UINT16         m_playfield_xscroll[2];
src/mame/includes/slapfght.h
r14939r14940
2929   int m_getstar_id;
3030   required_shared_ptr<UINT8> m_slapfight_videoram;
3131   required_shared_ptr<UINT8> m_slapfight_colorram;
32   required_shared_ptr<UINT8> m_slapfight_fixvideoram;
33   required_shared_ptr<UINT8> m_slapfight_fixcolorram;
34   required_shared_ptr<UINT8> m_slapfight_scrollx_lo;
35   required_shared_ptr<UINT8> m_slapfight_scrollx_hi;
36   required_shared_ptr<UINT8> m_slapfight_scrolly;
32   optional_shared_ptr<UINT8> m_slapfight_fixvideoram;
33   optional_shared_ptr<UINT8> m_slapfight_fixcolorram;
34   optional_shared_ptr<UINT8> m_slapfight_scrollx_lo;
35   optional_shared_ptr<UINT8> m_slapfight_scrollx_hi;
36   optional_shared_ptr<UINT8> m_slapfight_scrolly;
3737   int m_slapfight_status;
3838   int m_getstar_sequence_index;
3939   int m_getstar_sh_intenabled;
src/mame/includes/equites.h
r14939r14940
1919   required_shared_ptr<UINT16> m_bg_videoram;
2020   UINT8  *  m_fg_videoram;   // 8bits
2121   required_shared_ptr<UINT16> m_spriteram;
22   required_shared_ptr<UINT16> m_workram;
23   required_shared_ptr<UINT16> m_spriteram_2;
22   optional_shared_ptr<UINT16> m_workram;
23   optional_shared_ptr<UINT16> m_spriteram_2;
2424   required_shared_ptr<UINT8>  m_mcu_ram;       // 8bits
2525//  UINT16 *  m_nvram;    // currently this uses generic nvram handling
2626
src/mame/includes/mystwarr.h
r14939r14940
33public:
44   mystwarr_state(const machine_config &mconfig, device_type type, const char *tag)
55      : konamigx_state(mconfig, type, tag),
6      m_gx_workram(*this,"gx_workram"),
7      m_spriteram(*this,"spriteram"),
68      m_maincpu(*this,"maincpu")
79      { }
810
9   UINT16 *m_gx_workram;
11   required_shared_ptr<UINT16> m_gx_workram;
1012   UINT8 m_mw_irq_control;
1113   int m_cur_sound_region;
1214   int m_layer_colorbase[6];
r14939r14940
2022   int m_roz_rombank;
2123   tilemap_t *m_ult_936_tilemap;
2224   UINT16 m_clip;
23   UINT16 *m_spriteram;
25   required_shared_ptr<UINT16> m_spriteram;
2426
2527   required_device<cpu_device> m_maincpu;
2628   DECLARE_READ16_MEMBER(eeprom_r);
src/mame/includes/firetrk.h
r14939r14940
5555   required_shared_ptr<UINT8> m_scroll_y;
5656   required_shared_ptr<UINT8> m_scroll_x;
5757   required_shared_ptr<UINT8> m_car_rot;
58   required_shared_ptr<UINT8> m_blink;
59   required_shared_ptr<UINT8> m_drone_x;
60   required_shared_ptr<UINT8> m_drone_y;
61   required_shared_ptr<UINT8> m_drone_rot;
58   optional_shared_ptr<UINT8> m_blink;
59   optional_shared_ptr<UINT8> m_drone_x;
60   optional_shared_ptr<UINT8> m_drone_y;
61   optional_shared_ptr<UINT8> m_drone_rot;
6262   UINT8 m_flash;
6363   UINT8 m_crash[2];
6464   UINT8 m_skid[2];
src/mame/includes/ladybug.h
r14939r14940
1818
1919   /* memory pointers */
2020   required_shared_ptr<UINT8> m_videoram;
21   required_shared_ptr<UINT8> m_colorram;
21   optional_shared_ptr<UINT8> m_colorram;
2222   required_shared_ptr<UINT8> m_spriteram;
23   required_shared_ptr<UINT8> m_grid_data;
23   optional_shared_ptr<UINT8> m_grid_data;
2424
2525   /* video-related */
2626   tilemap_t    *m_bg_tilemap;
src/mame/includes/midxunit.h
r14939r14940
99public:
1010   midxunit_state(const machine_config &mconfig, device_type type, const char *tag)
1111      : midtunit_state(mconfig, type, tag),
12        m_nvram(*this, "nvram") { }
12        m_nvram(*this, "nvram"),
13        m_decode_memory(*this, "decode_memory", 16) { }
1314
1415   required_shared_ptr<UINT16>   m_nvram;
15   UINT8 *m_decode_memory;
16   required_shared_ptr<UINT8> m_decode_memory;
1617   UINT8 m_cmos_write_enable;
1718   UINT16 m_iodata[8];
1819   UINT8 m_ioshuffle[16];
src/mame/includes/taito_f2.h
r14939r14940
2121        m_oki(*this, "oki") { }
2222
2323   /* memory pointers */
24   required_shared_ptr<UINT16> m_sprite_extension;
24   optional_shared_ptr<UINT16> m_sprite_extension;
2525   required_shared_ptr<UINT16> m_spriteram;
2626   UINT16 *        m_spriteram_buffered;
2727   UINT16 *        m_spriteram_delayed;
28   required_shared_ptr<UINT16> m_cchip2_ram;           // for megablst only
28   optional_shared_ptr<UINT16> m_cchip2_ram;           // for megablst only
2929//  UINT16 *        m_paletteram;    // currently this uses generic palette handling
3030
3131
src/mame/includes/ddragon.h
r14939r14940
1919      m_darktowr_mcu_ports(*this, "darktowr_mcu"){ }
2020
2121   /* memory pointers */
22   required_shared_ptr<UINT8> m_rambase;
22   optional_shared_ptr<UINT8> m_rambase;
2323   required_shared_ptr<UINT8> m_bgvideoram;
2424   required_shared_ptr<UINT8> m_fgvideoram;
2525   required_shared_ptr<UINT8> m_spriteram;
2626   required_shared_ptr<UINT8> m_scrollx_lo;
2727   required_shared_ptr<UINT8> m_scrolly_lo;
28   required_shared_ptr<UINT8> m_darktowr_mcu_ports;
28   optional_shared_ptr<UINT8> m_darktowr_mcu_ports;
2929//  UINT8 *        m_paletteram;  // currently this uses generic palette handling
3030//  UINT8 *        m_paletteram_2;    // currently this uses generic palette handling
3131   size_t         m_spriteram_size;   // FIXME: this appears in chinagat.c, but is it really used?
src/mame/includes/tubep.h
r14939r14940
1616   required_shared_ptr<UINT8> m_textram;
1717   required_shared_ptr<UINT8> m_backgroundram;
1818   required_shared_ptr<UINT8> m_sprite_colorsharedram;
19   required_shared_ptr<UINT8> m_rjammer_backgroundram;
19   optional_shared_ptr<UINT8> m_rjammer_backgroundram;
2020   UINT8 *m_spritemap;
2121   UINT8 m_prom2[32];
2222   UINT32 m_romD_addr;
src/mame/includes/homedata.h
r14939r14940
88      m_videoram(*this, "videoram"){ }
99
1010   /* memory pointers */
11   required_shared_ptr<UINT8> m_vreg;
11   optional_shared_ptr<UINT8> m_vreg;
1212   required_shared_ptr<UINT8> m_videoram;
1313
1414   /* video-related */
src/mame/includes/pktgaldx.h
r14939r14940
2121   required_shared_ptr<UINT16> m_spriteram;
2222//  UINT16 *  paletteram;    // currently this uses generic palette handling (in decocomn.c)
2323
24   required_shared_ptr<UINT16> m_pktgaldb_fgram;
25   required_shared_ptr<UINT16> m_pktgaldb_sprites;
24   optional_shared_ptr<UINT16> m_pktgaldb_fgram;
25   optional_shared_ptr<UINT16> m_pktgaldb_sprites;
2626
2727   /* devices */
2828   device_t *m_maincpu;
src/mame/includes/atarigx2.h
r14939r14940
1010{
1111public:
1212   atarigx2_state(const machine_config &mconfig, device_type type, const char *tag)
13      : atarigen_state(mconfig, type, tag) { }
13      : atarigen_state(mconfig, type, tag),
14        m_mo_command(*this, "mo_command"),
15        m_protection_base(*this, "protection_base") { }
1416
1517   UINT16         m_playfield_base;
1618
17   UINT32 *      m_mo_command;
18   UINT32 *      m_protection_base;
19   required_shared_ptr<UINT32> m_mo_command;
20   required_shared_ptr<UINT32> m_protection_base;
1921
2022   UINT16         m_current_control;
2123   UINT8         m_playfield_tile_bank;
src/mame/includes/twin16.h
r14939r14940
1414   required_device<buffered_spriteram16_device> m_spriteram;
1515   required_shared_ptr<UINT16> m_text_ram;
1616   required_shared_ptr<UINT16> m_videoram;
17   required_shared_ptr<UINT16> m_tile_gfx_ram;
18   required_shared_ptr<UINT16> m_sprite_gfx_ram;
17   optional_shared_ptr<UINT16> m_tile_gfx_ram;
18   optional_shared_ptr<UINT16> m_sprite_gfx_ram;
1919   
2020   UINT16 m_CPUA_register;
2121   UINT16 m_CPUB_register;
src/mame/includes/pacman.h
r14939r14940
2121   optional_shared_ptr<UINT8> m_spriteram2;
2222   optional_shared_ptr<UINT8> m_s2650_spriteram;
2323   required_shared_ptr<UINT8> m_videoram;
24   required_shared_ptr<UINT8> m_colorram;
24   optional_shared_ptr<UINT8> m_colorram;
2525   optional_shared_ptr<UINT8> m_s2650games_tileram;
2626   optional_shared_ptr<UINT8> m_rocktrv2_prot_data;
2727
src/mame/includes/cave.h
r14939r14940
4040   optional_shared_ptr_array<UINT16, 4> m_vram;
4141   optional_shared_ptr_array<UINT16, 4> m_vctrl;
4242   required_shared_ptr<UINT16> m_spriteram;
43   required_shared_ptr<UINT16> m_spriteram_2;
43   optional_shared_ptr<UINT16> m_spriteram_2;
4444   required_shared_ptr<UINT16> m_paletteram;
4545
4646   /* video-related */
r14939r14940
104104   /* game specific */
105105   // sailormn
106106   int          m_sailormn_tilebank;
107   required_shared_ptr<UINT8> m_mirror_ram;
107   optional_shared_ptr<UINT8> m_mirror_ram;
108108   // korokoro
109109   UINT16       m_leds[2];
110110   int          m_hopper;
src/mame/includes/dooyong.h
r14939r14940
1313   optional_device<buffered_spriteram8_device> m_spriteram;
1414   optional_device<buffered_spriteram16_device> m_spriteram16;
1515   required_shared_ptr<UINT8> m_txvideoram;
16   required_shared_ptr<UINT8> m_paletteram_flytiger;
16   optional_shared_ptr<UINT8> m_paletteram_flytiger;
1717   UINT8 m_sprites_disabled;
1818   UINT8 m_flytiger_palette_bank;
1919   UINT8 m_flytiger_pri;
src/mame/includes/dec8.h
r14939r14940
1818
1919   /* memory pointers */
2020   required_shared_ptr<UINT8> m_videoram;
21   required_shared_ptr<UINT8> m_bg_data;
21   optional_shared_ptr<UINT8> m_bg_data;
2222   UINT8 *  m_pf1_data;
2323   UINT8 *  m_row;
2424//  UINT8 *  m_paletteram;    // currently this uses generic palette handling
src/mame/video/mcr3.c
r14939r14940
210210   machine.priority_bitmap.fill(1, cliprect);
211211
212212   /* loop over sprite RAM */
213   for (offs = state->m_spriteram_size - 4; offs >= 0; offs -= 4)
213   for (offs = state->m_spriteram.bytes() - 4; offs >= 0; offs -= 4)
214214   {
215215      int code, color, flipx, flipy, sx, sy, flags;
216216
src/mame/video/itech8.c
r14939r14940
305305   if (FULL_LOGGING)
306306      logerror("Blit: scan=%d  src=%06x @ (%05x) for %dx%d ... flags=%02x\n",
307307            space->machine().primary_screen->vpos(),
308            (*state->m_grom_bank << 16) | (BLITTER_ADDRHI << 8) | BLITTER_ADDRLO,
308            (state->m_grom_bank << 16) | (BLITTER_ADDRHI << 8) | BLITTER_ADDRLO,
309309            tms_state.regs[TMS34061_XYADDRESS] | ((tms_state.regs[TMS34061_XYOFFSET] & 0x300) << 8),
310310            BLITTER_WIDTH, BLITTER_HEIGHT, BLITTER_FLAGS);
311311
312312   /* initialize the fetcher */
313   state->m_fetch_offset = (*state->m_grom_bank << 16) | (BLITTER_ADDRHI << 8) | BLITTER_ADDRLO;
313   state->m_fetch_offset = (state->m_grom_bank << 16) | (BLITTER_ADDRHI << 8) | BLITTER_ADDRLO;
314314   state->m_fetch_rle_count = 0;
315315
316316   /* RLE starts with a couple of extra 0's */
r14939r14940
484484      {
485485         logerror("Blit: XY=%1X%04X SRC=%02X%02X%02X SIZE=%3dx%3d FLAGS=%02x",
486486                  (tms_state.regs[TMS34061_XYOFFSET] >> 8) & 0x0f, tms_state.regs[TMS34061_XYADDRESS],
487                  *m_grom_bank, blitter_data[0], blitter_data[1],
487                  m_grom_bank, blitter_data[0], blitter_data[1],
488488                  blitter_data[4], blitter_data[5],
489489                  blitter_data[2]);
490490         logerror("   %02X %02X %02X [%02X] %02X %02X %02X [%02X]-%02X %02X %02X %02X [%02X %02X %02X %02X]\n",
src/mame/video/beathead.c
r14939r14940
156156
157157UINT32 beathead_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
158158{
159   UINT8 *videoram = reinterpret_cast<UINT8 *>(m_videoram);
159   UINT8 *videoram = reinterpret_cast<UINT8 *>(m_videoram.target());
160160   int x, y;
161161
162162   /* generate the final screen */
src/mame/video/harddriv.c
r14939r14940
8585      }
8686
8787   /* init VRAM pointers */
88   state->m_vram_mask = state->m_gsp_vram_size - 1;
88   state->m_vram_mask = state->m_gsp_vram.bytes() - 1;
8989}
9090
9191
src/mame/drivers/hornet.c
r14939r14940
329329   hornet_state(const machine_config &mconfig, device_type type, const char *tag)
330330      : driver_device(mconfig, type, tag),
331331        m_workram(*this, "workram"),
332        m_sharc_dataram0(*this, "share_dataram0"),
333        m_sharc_dataram1(*this, "share_dataram1") { }
332        m_sharc_dataram0(*this, "sharc_dataram0"),
333        m_sharc_dataram1(*this, "sharc_dataram1") { }
334334
335335   UINT8 m_led_reg0;
336336   UINT8 m_led_reg1;
src/mame/drivers/photon2.c
r14939r14940
2222      m_spectrum_video_ram(*this, "spectruvideo_ram"){ }
2323
2424   required_device<cpu_device> m_maincpu;
25   required_shared_ptr<UINT8> m_spectrum_video_ram;
25   optional_shared_ptr<UINT8> m_spectrum_video_ram;
2626   int m_spectrum_frame_number;
2727   int m_spectrum_flash_invert;
2828   UINT8 m_spectrum_port_fe;
src/mame/drivers/gstriker.c
r14939r14940
315315
316316static ADDRESS_MAP_START( vgoal_map, AS_PROGRAM, 16, gstriker_state )
317317   AM_RANGE(0x000000, 0x0fffff) AM_ROM
318   AM_RANGE(0x100000, 0x103fff) AM_RAM_WRITE(MB60553_0_vram_w) AM_SHARE("mb60553.vram")
319   AM_RANGE(0x140000, 0x141fff) AM_RAM AM_SHARE("cg10103.vram")
320   AM_RANGE(0x180000, 0x180fff) AM_RAM_WRITE(VS920A_0_vram_w) AM_SHARE("vs920a.vram")
318   AM_RANGE(0x100000, 0x103fff) AM_RAM_WRITE(MB60553_0_vram_w) AM_SHARE("mb60553_vram")
319   AM_RANGE(0x140000, 0x141fff) AM_RAM AM_SHARE("cg10103_vram")
320   AM_RANGE(0x180000, 0x180fff) AM_RAM_WRITE(VS920A_0_vram_w) AM_SHARE("vs920a_vram")
321321   AM_RANGE(0x181000, 0x181fff) AM_RAM AM_SHARE("lineram")
322322   AM_RANGE(0x1c0000, 0x1c4fff) AM_RAM_WRITE(paletteram_xRRRRRGGGGGBBBBB_word_w) AM_SHARE("paletteram")
323323   AM_RANGE(0x200000, 0x20000f) AM_RAM_WRITE(MB60553_0_regs_w)
src/mame/drivers/igs017.c
r14939r14940
6262
6363   int m_input_addr;
6464   required_device<cpu_device> m_maincpu;
65   required_shared_ptr<UINT8> m_spriteram;
66   required_shared_ptr<UINT8> m_fg_videoram;
67   required_shared_ptr<UINT8> m_bg_videoram;
65   optional_shared_ptr<UINT8> m_spriteram;
66   optional_shared_ptr<UINT8> m_fg_videoram;
67   optional_shared_ptr<UINT8> m_bg_videoram;
6868
6969   int m_toggle;
7070   int m_debug_addr;
src/mame/drivers/vamphalf.c
r14939r14940
7474         m_has_extra_gfx = 0;
7575      }
7676
77   required_shared_ptr<UINT16> m_tiles;
78   required_shared_ptr<UINT16> m_wram;
79   required_shared_ptr<UINT32> m_tiles32;
80   required_shared_ptr<UINT32> m_wram32;
77   optional_shared_ptr<UINT16> m_tiles;
78   optional_shared_ptr<UINT16> m_wram;
79   optional_shared_ptr<UINT32> m_tiles32;
80   optional_shared_ptr<UINT32> m_wram32;
8181   int m_flip_bit;
8282   int m_flipscreen;
8383   int m_palshift;
src/mame/drivers/subsino2.c
r14939r14940
9595   int m_hm86171_offs;
9696   UINT8 m_dsw_mask;
9797   required_shared_ptr<UINT16> m_outputs16;
98   required_shared_ptr<UINT8> m_outputs;
99   required_shared_ptr<UINT8> m_am188em_regs;
98   optional_shared_ptr<UINT8> m_outputs;
99   optional_shared_ptr<UINT8> m_am188em_regs;
100100   UINT16 m_bishjan_sel;
101101   UINT16 m_bishjan_input;
102102   DECLARE_WRITE8_MEMBER(ss9601_byte_lo_w);
src/mame/drivers/mpu4vid.c
r14939r14940
19831983   AM_RANGE(0xa00000, 0xa00003) AM_READWRITE_LEGACY(ef9369_r, ef9369_w)
19841984/*  AM_RANGE(0xa00004, 0xa0000f) AM_READWRITE_LEGACY(mpu4_vid_unmap_r, mpu4_vid_unmap_w) */
19851985   AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE_LEGACY(mpu4_vid_scn2674_r, mpu4_vid_scn2674_w)
1986   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w)
1986   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w) AM_SHARE("vid_vidram")
19871987   AM_RANGE(0xff8000, 0xff8001) AM_DEVREADWRITE8("acia6850_1", acia6850_device, status_read, control_write, 0xff)
19881988   AM_RANGE(0xff8002, 0xff8003) AM_DEVREADWRITE8("acia6850_1", acia6850_device, data_read, data_write, 0xff)
19891989   AM_RANGE(0xff9000, 0xff900f) AM_DEVREADWRITE8("6840ptm_68k", ptm6840_device, read, write, 0xff)
r14939r14940
19991999   AM_RANGE(0x900002, 0x900003) AM_DEVWRITE8_LEGACY("saa", saa1099_control_w, 0x00ff)
20002000   AM_RANGE(0xa00000, 0xa00003) AM_READWRITE_LEGACY(ef9369_r, ef9369_w)
20012001   AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE_LEGACY(mpu4_vid_scn2674_r, mpu4_vid_scn2674_w)
2002   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w)
2002   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w) AM_SHARE("vid_vidram")
20032003   AM_RANGE(0xff8000, 0xff8001) AM_DEVREADWRITE8("acia6850_1", acia6850_device, status_read, control_write, 0xff)
20042004   AM_RANGE(0xff8002, 0xff8003) AM_DEVREADWRITE8("acia6850_1", acia6850_device, data_read, data_write, 0xff)
20052005   AM_RANGE(0xff9000, 0xff900f) AM_DEVREADWRITE8("6840ptm_68k", ptm6840_device, read, write, 0xff)
r14939r14940
20382038//  AM_RANGE(0xa00000, 0xa0000f) AM_READWRITE_LEGACY(bt471_r,bt471_w) //Some games use this
20392039/*  AM_RANGE(0xa00004, 0xa0000f) AM_READWRITE_LEGACY(mpu4_vid_unmap_r, mpu4_vid_unmap_w) */
20402040   AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE_LEGACY(mpu4_vid_scn2674_r, mpu4_vid_scn2674_w)
2041   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w)
2041   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w) AM_SHARE("vid_vidram")
20422042   AM_RANGE(0xe00000, 0xe00001) AM_DEVREADWRITE8("acia6850_1", acia6850_device, status_read, control_write, 0xff)
20432043   AM_RANGE(0xe00002, 0xe00003) AM_DEVREADWRITE8("acia6850_1", acia6850_device, data_read, data_write, 0xff)
20442044   AM_RANGE(0xe01000, 0xe0100f) AM_DEVREADWRITE8("6840ptm_68k", ptm6840_device, read, write, 0xff)
r14939r14940
20552055   //AM_RANGE(0xa00000, 0xa00003) AM_READWRITE_LEGACY(bt471_r,bt471_w) Some games use this
20562056/*  AM_RANGE(0xa00004, 0xa0000f) AM_READWRITE_LEGACY(mpu4_vid_unmap_r, mpu4_vid_unmap_w) */
20572057   AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE_LEGACY(mpu4_vid_scn2674_r, mpu4_vid_scn2674_w)
2058   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w)
2058   AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE_LEGACY(mpu4_vid_vidram_r, mpu4_vid_vidram_w) AM_SHARE("vid_vidram")
20592059   AM_RANGE(0xe00000, 0xe00001) AM_DEVREADWRITE8("acia6850_1", acia6850_device, status_read, control_write, 0xff)
20602060   AM_RANGE(0xe00002, 0xe00003) AM_DEVREADWRITE8("acia6850_1", acia6850_device, data_read, data_write, 0xff)
20612061   AM_RANGE(0xe01000, 0xe0100f) AM_DEVREADWRITE8("6840ptm_68k", ptm6840_device, read, write, 0x00ff)
src/mame/drivers/rungun.c
r14939r14940
380380
381381   state->save_item(NAME(state->m_z80_control));
382382   state->save_item(NAME(state->m_sound_status));
383   state->save_item(NAME(state->m_sysreg));
384383   state->save_item(NAME(state->m_ttl_vram));
385384}
386385
src/mame/drivers/igspoker.c
r14939r14940
8282      m_fg_color_ram(*this, "fg_color_ram"){ }
8383
8484   required_device<cpu_device> m_maincpu;
85   required_shared_ptr<UINT8> m_bg_tile_ram;
85   optional_shared_ptr<UINT8> m_bg_tile_ram;
8686   required_shared_ptr<UINT8> m_fg_tile_ram;
8787   required_shared_ptr<UINT8> m_fg_color_ram;
8888   int m_nmi_enable;
src/mame/drivers/scobra.c
r14939r14940
4747      : scramble_state(mconfig, type, tag),
4848        m_soundram(*this, "soundram") { }
4949
50   required_shared_ptr<UINT8> m_soundram;
50   optional_shared_ptr<UINT8> m_soundram;
5151   DECLARE_READ8_MEMBER(scobra_soundram_r);
5252   DECLARE_WRITE8_MEMBER(scobra_soundram_w);
5353   DECLARE_CUSTOM_INPUT_MEMBER(stratgyx_coinage_r);
src/mame/drivers/itech8.c
r14939r14940
814814}
815815
816816
817WRITE8_MEMBER(itech8_state::grom_bank_w)
818{
819   m_grom_bank = data;
820}
817821
822
823
818824/*************************************
819825 *
820826 *  16-bit-specific handlers
r14939r14940
824830WRITE16_MEMBER(itech8_state::grom_bank16_w)
825831{
826832   if (ACCESSING_BITS_8_15)
827      *m_grom_bank = data >> 8;
833      m_grom_bank = data >> 8;
828834}
829835
830836
r14939r14940
854860   AM_RANGE(0x0000, 0x0fff) AM_READWRITE(itech8_tms34061_r, itech8_tms34061_w)
855861   AM_RANGE(0x1100, 0x1100) AM_WRITENOP
856862   AM_RANGE(0x1120, 0x1120) AM_WRITE(sound_data_w)
857   AM_RANGE(0x1140, 0x1140) AM_READ_PORT("40") AM_WRITEONLY AM_SHARE("grom_bank")
863   AM_RANGE(0x1140, 0x1140) AM_READ_PORT("40") AM_WRITE(grom_bank_w)
858864   AM_RANGE(0x1160, 0x1160) AM_READ_PORT("60") AM_WRITE(itech8_page_w)
859865   AM_RANGE(0x1180, 0x1180) AM_READ_PORT("80") AM_WRITE_LEGACY(tms34061_latch_w)
860866   AM_RANGE(0x11a0, 0x11a0) AM_WRITE(itech8_nmi_ack_w)
r14939r14940
870876   AM_RANGE(0x1000, 0x1fff) AM_READWRITE(itech8_tms34061_r, itech8_tms34061_w)
871877   AM_RANGE(0x0100, 0x0100) AM_WRITENOP
872878   AM_RANGE(0x0120, 0x0120) AM_WRITE(sound_data_w)
873   AM_RANGE(0x0140, 0x0140) AM_READ_PORT("40") AM_WRITEONLY AM_SHARE("grom_bank")
879   AM_RANGE(0x0140, 0x0140) AM_READ_PORT("40") AM_WRITE(grom_bank_w)
874880   AM_RANGE(0x0160, 0x0160) AM_READ_PORT("60") AM_WRITE(itech8_page_w)
875881   AM_RANGE(0x0180, 0x0180) AM_READ_PORT("80") AM_WRITE_LEGACY(tms34061_latch_w)
876882   AM_RANGE(0x01a0, 0x01a0) AM_WRITE(itech8_nmi_ack_w)
r14939r14940
887893   AM_RANGE(0x0120, 0x0120) AM_READ_PORT("60") AM_WRITE(itech8_page_w)
888894   AM_RANGE(0x0140, 0x015f) AM_WRITE(itech8_palette_w)
889895   AM_RANGE(0x0140, 0x0140) AM_READ_PORT("80")
890   AM_RANGE(0x0160, 0x0160) AM_WRITEONLY AM_SHARE("grom_bank")
896   AM_RANGE(0x0160, 0x0160) AM_WRITE(grom_bank_w)
891897   AM_RANGE(0x0180, 0x019f) AM_READ(itech8_blitter_r) AM_WRITE(blitter_w)
892898   AM_RANGE(0x01c0, 0x01c0) AM_WRITE(gtg2_sound_data_w)
893899   AM_RANGE(0x01e0, 0x01e0) AM_WRITE_LEGACY(tms34061_latch_w)
r14939r14940
903909   AM_RANGE(0x000080, 0x003fff) AM_RAM AM_SHARE("nvram")
904910   AM_RANGE(0x004000, 0x07ffff) AM_ROM
905911   AM_RANGE(0x100080, 0x100081) AM_WRITE8(sound_data_w, 0xff00)
906   AM_RANGE(0x100100, 0x100101) AM_READ_PORT("40") AM_WRITE(grom_bank16_w) AM_SHARE("grom_bank")
912   AM_RANGE(0x100100, 0x100101) AM_READ_PORT("40") AM_WRITE(grom_bank16_w)
907913   AM_RANGE(0x100180, 0x100181) AM_READ_PORT("60") AM_WRITE(display_page16_w)
908914   AM_RANGE(0x100240, 0x100241) AM_WRITE8_LEGACY(tms34061_latch_w, 0xff00)
909915   AM_RANGE(0x100280, 0x100281) AM_READ_PORT("80") AM_WRITENOP
src/mame/drivers/bmcbowl.c
r14939r14940
116116      m_vid1(*this, "vid1"),
117117      m_vid2(*this, "vid2"){ }
118118
119   required_shared_ptr<UINT16> m_stats_ram;
119   optional_shared_ptr<UINT8> m_stats_ram;
120120   required_shared_ptr<UINT16> m_vid1;
121121   required_shared_ptr<UINT16> m_vid2;
122122   UINT8 *m_bmc_colorram;
src/mame/drivers/blitz68k.c
r14939r14940
5858
5959   optional_shared_ptr<UINT16>   m_nvram;
6060   UINT8 *m_blit_buffer;
61   required_shared_ptr<UINT16> m_frame_buffer;
62   required_shared_ptr<UINT16> m_blit_romaddr;
63   required_shared_ptr<UINT16> m_blit_attr1_ram;
64   required_shared_ptr<UINT16> m_blit_dst_ram_loword;
65   required_shared_ptr<UINT16> m_blit_attr2_ram;
66   required_shared_ptr<UINT16> m_blit_dst_ram_hiword;
67   required_shared_ptr<UINT16> m_blit_vregs;
68   required_shared_ptr<UINT16> m_blit_transpen;
61   optional_shared_ptr<UINT16> m_frame_buffer;
62   optional_shared_ptr<UINT16> m_blit_romaddr;
63   optional_shared_ptr<UINT16> m_blit_attr1_ram;
64   optional_shared_ptr<UINT16> m_blit_dst_ram_loword;
65   optional_shared_ptr<UINT16> m_blit_attr2_ram;
66   optional_shared_ptr<UINT16> m_blit_dst_ram_hiword;
67   optional_shared_ptr<UINT16> m_blit_vregs;
68   optional_shared_ptr<UINT16> m_blit_transpen;
6969   optional_shared_ptr<UINT16> m_leds0;
7070   optional_shared_ptr<UINT16> m_leds1;
7171   optional_shared_ptr<UINT16> m_leds2;
src/mame/drivers/subsino.c
r14939r14940
244244
245245   required_shared_ptr<UINT8> m_colorram;
246246   required_shared_ptr<UINT8> m_videoram;
247   required_shared_ptr<UINT8> m_reel3_scroll;
248   required_shared_ptr<UINT8> m_reel2_scroll;
249   required_shared_ptr<UINT8> m_reel1_scroll;
250   required_shared_ptr<UINT8> m_reel1_ram;
251   required_shared_ptr<UINT8> m_reel2_ram;
252   required_shared_ptr<UINT8> m_reel3_ram;
247   optional_shared_ptr<UINT8> m_reel3_scroll;
248   optional_shared_ptr<UINT8> m_reel2_scroll;
249   optional_shared_ptr<UINT8> m_reel1_scroll;
250   optional_shared_ptr<UINT8> m_reel1_ram;
251   optional_shared_ptr<UINT8> m_reel2_ram;
252   optional_shared_ptr<UINT8> m_reel3_ram;
253253
254254   tilemap_t *m_tmap;
255255   tilemap_t *m_reel1_tilemap;
src/mame/drivers/tmaster.c
r14939r14940
129129   required_device<cpu_device> m_maincpu;
130130   optional_device<microtouch_device> m_microtouch;
131131   required_shared_ptr<UINT16> m_regs;
132   required_shared_ptr<UINT16> m_galgames_ram;
132   optional_shared_ptr<UINT16> m_galgames_ram;
133133
134134   int m_okibank;
135135   UINT8 m_rtc_ram[8];
src/mame/drivers/jalmah.c
r14939r14940
142142   tilemap_t *m_sc3_tilemap_2;
143143   tilemap_t *m_sc3_tilemap_3;
144144   required_shared_ptr<UINT16> m_sc0_vram;
145   required_shared_ptr<UINT16> m_sc1_vram;
146   required_shared_ptr<UINT16> m_sc2_vram;
145   optional_shared_ptr<UINT16> m_sc1_vram;
146   optional_shared_ptr<UINT16> m_sc2_vram;
147147   required_shared_ptr<UINT16> m_sc3_vram;
148148   UINT16 *m_jm_scrollram;
149149   UINT16 *m_jm_vregs;
src/mame/drivers/zr107.c
r14939r14940
188188   UINT8 m_led_reg1;
189189   int m_ccu_vcth;
190190   int m_ccu_vctl;
191   required_shared_ptr<UINT32> m_workram;
191   optional_shared_ptr<UINT32> m_workram;
192192   UINT32 *m_sharc_dataram;
193193   DECLARE_WRITE32_MEMBER(paletteram32_w);
194194   DECLARE_READ8_MEMBER(sysreg_r);
src/mame/drivers/jollyjgr.c
r14939r14940
118118   required_shared_ptr<UINT8> m_colorram;
119119   required_shared_ptr<UINT8> m_spriteram;
120120   required_shared_ptr<UINT8> m_bitmap;
121   required_shared_ptr<UINT8> m_bulletram;
121   optional_shared_ptr<UINT8> m_bulletram;
122122
123123   /* video-related */
124124   tilemap_t  *m_bg_tilemap;
src/mame/drivers/splus.c
r14939r14940
6262   required_shared_ptr<UINT8> m_cmosh_ram;
6363
6464   // Program and Reel Data
65   required_shared_ptr<UINT8> m_program_ram;
65   optional_shared_ptr<UINT8> m_program_ram;
6666   required_shared_ptr<UINT8> m_reel_ram;
6767
6868   // IO Ports
src/mame/drivers/igs011.c
r14939r14940
9191
9292   required_device<cpu_device> m_maincpu;
9393   required_shared_ptr<UINT16> m_priority_ram;
94   required_shared_ptr<UINT16> m_vbowl_trackball;
94   optional_shared_ptr<UINT16> m_vbowl_trackball;
9595   UINT8 *m_layer[8];
9696   UINT16 m_priority;
9797   UINT8 m_lhb2_pen_hi;
src/mame/drivers/srmp6.c
r14939r14940
8383   UINT16* m_tileram;
8484   required_shared_ptr<UINT16> m_sprram;
8585   required_shared_ptr<UINT16> m_chrram;
86   required_shared_ptr<UINT16> m_dmaram;
86   optional_shared_ptr<UINT16> m_dmaram;
8787   required_shared_ptr<UINT16> m_video_regs;
8888
8989   UINT16 *m_sprram_old;
src/emu/device.c
r14939r14940
877877         mame_printf_error("Shared ptr '%s' not found\n", m_tag);
878878      return NULL;
879879   }
880   if (share->width() != width)
880   if (width != 0 && share->width() != width)
881881   {
882882      if (required)
883883         mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width);
src/emu/device.h
r14939r14940
411411{
412412public:
413413   // construction/destruction
414   shared_ptr_finder(device_t &base, const char *tag, UINT8 width = 0)
414   shared_ptr_finder(device_t &base, const char *tag, UINT8 width = sizeof(_PointerType) * 8)
415415      : finder_base(base, tag),
416416        m_target(0),
417417        m_bytes(0),
418418        m_allocated(false),
419        m_width((width != 0) ? width : sizeof(_PointerType) * 8) { }
419        m_width(width) { }
420420
421421   virtual ~shared_ptr_finder() { if (m_allocated) global_free(m_target); }
422422
r14939r14940
459459class device_t::optional_shared_ptr : public device_t::shared_ptr_finder<_PointerType, false>
460460{
461461public:
462   optional_shared_ptr(device_t &base, const char *tag, UINT8 width = 0) : shared_ptr_finder<_PointerType, false>(base, tag, width) { }
462   optional_shared_ptr(device_t &base, const char *tag, UINT8 width = sizeof(_PointerType) * 8) : shared_ptr_finder<_PointerType, false>(base, tag, width) { }
463463};
464464
465465// required shared pointer finder
r14939r14940
467467class device_t::required_shared_ptr : public device_t::shared_ptr_finder<_PointerType, true>
468468{
469469public:
470   required_shared_ptr(device_t &base, const char *tag, UINT8 width = 0) : shared_ptr_finder<_PointerType, true>(base, tag, width) { }
470   required_shared_ptr(device_t &base, const char *tag, UINT8 width = sizeof(_PointerType) * 8) : shared_ptr_finder<_PointerType, true>(base, tag, width) { }
471471};
472472
473473
r14939r14940
481481   
482482public:
483483   // construction/destruction
484   shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = 0)
484   shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = sizeof(_PointerType) * 8)
485485   {
486486      for (int index = 0; index < _Count; index++)
487487         m_array[index] = global_alloc(shared_ptr_type(base, m_tag[index].format("%s.%d", basetag, index), width));
r14939r14940
508508class device_t::optional_shared_ptr_array : public device_t::shared_ptr_array_finder<_PointerType, _Count, false>
509509{
510510public:
511   optional_shared_ptr_array(device_t &base, const char *tag, UINT8 width = 0) : shared_ptr_array_finder<_PointerType, _Count, false>(base, tag, width) { }
511   optional_shared_ptr_array(device_t &base, const char *tag, UINT8 width = sizeof(_PointerType) * 8) : shared_ptr_array_finder<_PointerType, _Count, false>(base, tag, width) { }
512512};
513513
514514// required shared pointer array finder
r14939r14940
516516class device_t::required_shared_ptr_array : public device_t::shared_ptr_array_finder<_PointerType, _Count, true>
517517{
518518public:
519   required_shared_ptr_array(device_t &base, const char *tag, UINT8 width = 0) : shared_ptr_array_finder<_PointerType, _Count, true>(base, tag, width) { }
519   required_shared_ptr_array(device_t &base, const char *tag, UINT8 width = sizeof(_PointerType) * 8) : shared_ptr_array_finder<_PointerType, _Count, true>(base, tag, width) { }
520520};
521521
522522

Previous 15994 Revisions Next


© 1998-2018 The MESS Team