Previous 199869 Revisions Next

r34010 Monday 22nd December, 2014 at 12:22:25 UTC by Osso
video/galaxold.c: added a missing save state, improves but doesn't totally fix starfield save problems in the following games - drivers (nw)
tazzmang2, 4in1, hunchbkg - galaxold.c
800fath, mariner - scramble.c
[src/mame/includes]galaxold.h
[src/mame/video]galaxold.c

trunk/src/mame/includes/galaxold.h
r242521r242522
2727public:
2828   galaxold_state(const machine_config &mconfig, device_type type, const char *tag)
2929      : driver_device(mconfig, type, tag),
30         m_maincpu(*this, "maincpu"),
31         m_audiocpu(*this, "audiocpu"),
32         m_7474_9m_1(*this, "7474_9m_1"),
33         m_7474_9m_2(*this, "7474_9m_2"),
34         m_gfxdecode(*this, "gfxdecode"),
35         m_screen(*this, "screen"),
36         m_palette(*this, "palette"),
3037         m_videoram(*this,"videoram"),
3138         m_spriteram(*this,"spriteram"),
3239         m_spriteram2(*this,"spriteram2"),
3340         m_attributesram(*this,"attributesram"),
3441         m_bulletsram(*this,"bulletsram"),
3542         m_rockclim_videoram(*this,"rockclim_vram"),
36         m_racknrol_tiles_bank(*this,"racknrol_tbank"),
37         m_maincpu(*this, "maincpu"),
38         m_audiocpu(*this, "audiocpu"),
39         m_7474_9m_1(*this, "7474_9m_1"),
40         m_7474_9m_2(*this, "7474_9m_2"),
41         m_gfxdecode(*this, "gfxdecode"),
42         m_screen(*this, "screen"),
43         m_palette(*this, "palette")
43         m_racknrol_tiles_bank(*this,"racknrol_tbank")
4444   {
4545   }
4646
47   /* devices */
48   required_device<cpu_device> m_maincpu;
49   optional_device<cpu_device> m_audiocpu;
50   optional_device<ttl7474_device> m_7474_9m_1;
51   optional_device<ttl7474_device> m_7474_9m_2;
52   required_device<gfxdecode_device> m_gfxdecode;
53   required_device<screen_device> m_screen;
54   required_device<palette_device> m_palette;
55   
56   /* memory pointers */
4757   required_shared_ptr<UINT8> m_videoram;
4858   required_shared_ptr<UINT8> m_spriteram;
4959   optional_shared_ptr<UINT8> m_spriteram2;
r242521r242522
6474   UINT8 m_color_mask;
6575   tilemap_t *m_dambustr_tilemap2;
6676   UINT8 *m_dambustr_videoram2;
77   
6778   void (galaxold_state::*m_modify_charcode)(UINT16 *code, UINT8 x);     /* function to call to do character banking */
6879   void (galaxold_state::*m_modify_spritecode)(UINT8 *spriteram, int*, int*, int*, int); /* function to call to do sprite banking */
6980   void (galaxold_state::*m_modify_color)(UINT8 *color);   /* function to call to do modify how the color codes map to the PROM */
r242521r242522
132143   DECLARE_WRITE8_MEMBER(rockclim_videoram_w);
133144   DECLARE_WRITE8_MEMBER(rockclim_scroll_w);
134145   DECLARE_WRITE8_MEMBER(guttang_rombank_w);
135
136
137
138146   DECLARE_READ8_MEMBER(rockclim_videoram_r);
139147   DECLARE_WRITE8_MEMBER(dambustr_bg_split_line_w);
140148   DECLARE_WRITE8_MEMBER(dambustr_bg_color_w);
149   DECLARE_WRITE_LINE_MEMBER(galaxold_7474_9m_2_q_callback);
150   DECLARE_WRITE_LINE_MEMBER(galaxold_7474_9m_1_callback);   
151   
141152   DECLARE_CUSTOM_INPUT_MEMBER(_4in1_fake_port_r);
142153   DECLARE_CUSTOM_INPUT_MEMBER(vpool_lives_r);
143154   DECLARE_CUSTOM_INPUT_MEMBER(ckongg_coinage_r);
144155   DECLARE_CUSTOM_INPUT_MEMBER(dkongjrm_coinage_r);
156   
145157   DECLARE_DRIVER_INIT(bullsdrtg);
146158   DECLARE_DRIVER_INIT(ladybugg);
147159   DECLARE_DRIVER_INIT(4in1);
148160   DECLARE_DRIVER_INIT(guttangt);
149161   DECLARE_DRIVER_INIT(ckonggx);
162   
150163   TILE_GET_INFO_MEMBER(drivfrcg_get_tile_info);
151164   TILE_GET_INFO_MEMBER(racknrol_get_tile_info);
152165   TILE_GET_INFO_MEMBER(dambustr_get_tile_info2);
153166   TILE_GET_INFO_MEMBER(get_tile_info);
154167   TILE_GET_INFO_MEMBER(rockclim_get_tile_info);
155168   TILE_GET_INFO_MEMBER(harem_get_tile_info);
169   
156170   DECLARE_MACHINE_RESET(galaxold);
171   DECLARE_MACHINE_RESET(devilfsg);
172   DECLARE_MACHINE_RESET(hunchbkg);
173   
174   DECLARE_PALETTE_INIT(galaxold);
175   DECLARE_PALETTE_INIT(rockclim);
176   DECLARE_PALETTE_INIT(scrambold);
177   DECLARE_PALETTE_INIT(stratgyx);
178   DECLARE_PALETTE_INIT(darkplnt);
179   DECLARE_PALETTE_INIT(minefld);
180   DECLARE_PALETTE_INIT(rescue);
181   DECLARE_PALETTE_INIT(mariner);
182   DECLARE_PALETTE_INIT(dambustr);
183   DECLARE_PALETTE_INIT(turtles);
184   
157185   DECLARE_VIDEO_START(galaxold);
158   DECLARE_PALETTE_INIT(galaxold);
159186   DECLARE_VIDEO_START(drivfrcg);
160   DECLARE_PALETTE_INIT(rockclim);
161187   DECLARE_VIDEO_START(racknrol);
162188   DECLARE_VIDEO_START(batman2);
163189   DECLARE_VIDEO_START(mooncrst);
164190   DECLARE_VIDEO_START(scrambold);
165   DECLARE_PALETTE_INIT(scrambold);
166191   DECLARE_VIDEO_START(pisces);
167   DECLARE_MACHINE_RESET(devilfsg);
168192   DECLARE_VIDEO_START(dkongjrm);
169193   DECLARE_VIDEO_START(rockclim);
170194   DECLARE_VIDEO_START(galaxold_plain);
171195   DECLARE_VIDEO_START(ozon1);
172196   DECLARE_VIDEO_START(bongo);
173   DECLARE_MACHINE_RESET(hunchbkg);
174197   DECLARE_VIDEO_START(ckongs);
175   DECLARE_PALETTE_INIT(stratgyx);
176   DECLARE_PALETTE_INIT(darkplnt);
177   DECLARE_PALETTE_INIT(minefld);
178   DECLARE_PALETTE_INIT(rescue);
179   DECLARE_PALETTE_INIT(mariner);
180   DECLARE_PALETTE_INIT(dambustr);
181   DECLARE_PALETTE_INIT(turtles);
182198   DECLARE_VIDEO_START(darkplnt);
183199   DECLARE_VIDEO_START(rescue);
184200   DECLARE_VIDEO_START(minefld);
r242521r242522
189205   DECLARE_VIDEO_START(ad2083);
190206   DECLARE_VIDEO_START(dambustr);
191207   DECLARE_VIDEO_START(harem);
208   DECLARE_VIDEO_START(bagmanmc);
209   
192210   UINT32 screen_update_galaxold(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
193211   UINT32 screen_update_dambustr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
212   
194213   INTERRUPT_GEN_MEMBER(hunchbks_vh_interrupt);
195214   TIMER_CALLBACK_MEMBER(stars_blink_callback);
196215   TIMER_CALLBACK_MEMBER(stars_scroll_callback);
197216   TIMER_DEVICE_CALLBACK_MEMBER(galaxold_interrupt_timer);
198   DECLARE_WRITE_LINE_MEMBER(galaxold_7474_9m_2_q_callback);
199   DECLARE_WRITE_LINE_MEMBER(galaxold_7474_9m_1_callback);
200   DECLARE_VIDEO_START(bagmanmc);
201217   IRQ_CALLBACK_MEMBER(hunchbkg_irq_callback);
218   
202219   void state_save_register();
203220   void video_start_common();
204221   void pisces_modify_spritecode(UINT8 *spriteram, int *code, int *flipx, int *flipy, int offs);
r242521r242522
247264   void bagmanmc_modify_charcode(UINT16 *code, UINT8 x);
248265   void bagmanmc_modify_spritecode(UINT8 *spriteram, int *code, int *flipx, int *flipy, int offs);
249266   void machine_reset_common(int line);
250   required_device<cpu_device> m_maincpu;
251   optional_device<cpu_device> m_audiocpu;
252   optional_device<ttl7474_device> m_7474_9m_1;
253   optional_device<ttl7474_device> m_7474_9m_2;
254   required_device<gfxdecode_device> m_gfxdecode;
255   required_device<screen_device> m_screen;
256   required_device<palette_device> m_palette;
257267};
258268
259269#define galaxold_coin_counter_0_w galaxold_coin_counter_w
trunk/src/mame/video/galaxold.c
r242521r242522
387387   save_item(NAME(m_stars_on));
388388   save_item(NAME(m_stars_scrollpos));
389389   save_item(NAME(m_stars_blink_state));
390   save_item(NAME(m_timer_adjusted));
390391
391392   save_item(NAME(m_darkplnt_bullet_color));
392393


Previous 199869 Revisions Next


© 1997-2024 The MAME Team