trunk/src/mame/includes/galaxold.h
| r242521 | r242522 | |
| 27 | 27 | public: |
| 28 | 28 | galaxold_state(const machine_config &mconfig, device_type type, const char *tag) |
| 29 | 29 | : 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"), |
| 30 | 37 | m_videoram(*this,"videoram"), |
| 31 | 38 | m_spriteram(*this,"spriteram"), |
| 32 | 39 | m_spriteram2(*this,"spriteram2"), |
| 33 | 40 | m_attributesram(*this,"attributesram"), |
| 34 | 41 | m_bulletsram(*this,"bulletsram"), |
| 35 | 42 | 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") |
| 44 | 44 | { |
| 45 | 45 | } |
| 46 | 46 | |
| 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 */ |
| 47 | 57 | required_shared_ptr<UINT8> m_videoram; |
| 48 | 58 | required_shared_ptr<UINT8> m_spriteram; |
| 49 | 59 | optional_shared_ptr<UINT8> m_spriteram2; |
| r242521 | r242522 | |
| 64 | 74 | UINT8 m_color_mask; |
| 65 | 75 | tilemap_t *m_dambustr_tilemap2; |
| 66 | 76 | UINT8 *m_dambustr_videoram2; |
| 77 | |
| 67 | 78 | void (galaxold_state::*m_modify_charcode)(UINT16 *code, UINT8 x); /* function to call to do character banking */ |
| 68 | 79 | void (galaxold_state::*m_modify_spritecode)(UINT8 *spriteram, int*, int*, int*, int); /* function to call to do sprite banking */ |
| 69 | 80 | void (galaxold_state::*m_modify_color)(UINT8 *color); /* function to call to do modify how the color codes map to the PROM */ |
| r242521 | r242522 | |
| 132 | 143 | DECLARE_WRITE8_MEMBER(rockclim_videoram_w); |
| 133 | 144 | DECLARE_WRITE8_MEMBER(rockclim_scroll_w); |
| 134 | 145 | DECLARE_WRITE8_MEMBER(guttang_rombank_w); |
| 135 | | |
| 136 | | |
| 137 | | |
| 138 | 146 | DECLARE_READ8_MEMBER(rockclim_videoram_r); |
| 139 | 147 | DECLARE_WRITE8_MEMBER(dambustr_bg_split_line_w); |
| 140 | 148 | 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 | |
| 141 | 152 | DECLARE_CUSTOM_INPUT_MEMBER(_4in1_fake_port_r); |
| 142 | 153 | DECLARE_CUSTOM_INPUT_MEMBER(vpool_lives_r); |
| 143 | 154 | DECLARE_CUSTOM_INPUT_MEMBER(ckongg_coinage_r); |
| 144 | 155 | DECLARE_CUSTOM_INPUT_MEMBER(dkongjrm_coinage_r); |
| 156 | |
| 145 | 157 | DECLARE_DRIVER_INIT(bullsdrtg); |
| 146 | 158 | DECLARE_DRIVER_INIT(ladybugg); |
| 147 | 159 | DECLARE_DRIVER_INIT(4in1); |
| 148 | 160 | DECLARE_DRIVER_INIT(guttangt); |
| 149 | 161 | DECLARE_DRIVER_INIT(ckonggx); |
| 162 | |
| 150 | 163 | TILE_GET_INFO_MEMBER(drivfrcg_get_tile_info); |
| 151 | 164 | TILE_GET_INFO_MEMBER(racknrol_get_tile_info); |
| 152 | 165 | TILE_GET_INFO_MEMBER(dambustr_get_tile_info2); |
| 153 | 166 | TILE_GET_INFO_MEMBER(get_tile_info); |
| 154 | 167 | TILE_GET_INFO_MEMBER(rockclim_get_tile_info); |
| 155 | 168 | TILE_GET_INFO_MEMBER(harem_get_tile_info); |
| 169 | |
| 156 | 170 | 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 | |
| 157 | 185 | DECLARE_VIDEO_START(galaxold); |
| 158 | | DECLARE_PALETTE_INIT(galaxold); |
| 159 | 186 | DECLARE_VIDEO_START(drivfrcg); |
| 160 | | DECLARE_PALETTE_INIT(rockclim); |
| 161 | 187 | DECLARE_VIDEO_START(racknrol); |
| 162 | 188 | DECLARE_VIDEO_START(batman2); |
| 163 | 189 | DECLARE_VIDEO_START(mooncrst); |
| 164 | 190 | DECLARE_VIDEO_START(scrambold); |
| 165 | | DECLARE_PALETTE_INIT(scrambold); |
| 166 | 191 | DECLARE_VIDEO_START(pisces); |
| 167 | | DECLARE_MACHINE_RESET(devilfsg); |
| 168 | 192 | DECLARE_VIDEO_START(dkongjrm); |
| 169 | 193 | DECLARE_VIDEO_START(rockclim); |
| 170 | 194 | DECLARE_VIDEO_START(galaxold_plain); |
| 171 | 195 | DECLARE_VIDEO_START(ozon1); |
| 172 | 196 | DECLARE_VIDEO_START(bongo); |
| 173 | | DECLARE_MACHINE_RESET(hunchbkg); |
| 174 | 197 | 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); |
| 182 | 198 | DECLARE_VIDEO_START(darkplnt); |
| 183 | 199 | DECLARE_VIDEO_START(rescue); |
| 184 | 200 | DECLARE_VIDEO_START(minefld); |
| r242521 | r242522 | |
| 189 | 205 | DECLARE_VIDEO_START(ad2083); |
| 190 | 206 | DECLARE_VIDEO_START(dambustr); |
| 191 | 207 | DECLARE_VIDEO_START(harem); |
| 208 | DECLARE_VIDEO_START(bagmanmc); |
| 209 | |
| 192 | 210 | UINT32 screen_update_galaxold(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 193 | 211 | UINT32 screen_update_dambustr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 212 | |
| 194 | 213 | INTERRUPT_GEN_MEMBER(hunchbks_vh_interrupt); |
| 195 | 214 | TIMER_CALLBACK_MEMBER(stars_blink_callback); |
| 196 | 215 | TIMER_CALLBACK_MEMBER(stars_scroll_callback); |
| 197 | 216 | 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); |
| 201 | 217 | IRQ_CALLBACK_MEMBER(hunchbkg_irq_callback); |
| 218 | |
| 202 | 219 | void state_save_register(); |
| 203 | 220 | void video_start_common(); |
| 204 | 221 | void pisces_modify_spritecode(UINT8 *spriteram, int *code, int *flipx, int *flipy, int offs); |
| r242521 | r242522 | |
| 247 | 264 | void bagmanmc_modify_charcode(UINT16 *code, UINT8 x); |
| 248 | 265 | void bagmanmc_modify_spritecode(UINT8 *spriteram, int *code, int *flipx, int *flipy, int offs); |
| 249 | 266 | 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; |
| 257 | 267 | }; |
| 258 | 268 | |
| 259 | 269 | #define galaxold_coin_counter_0_w galaxold_coin_counter_w |