1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
/*************************************************************************
Zero Hour / Red Clash
*************************************************************************/
#include "includes/ladybug.h"
class redclash_state : public ladybug_state
{
public:
redclash_state(const machine_config &mconfig, device_type type, const char *tag)
: ladybug_state(mconfig, type, tag), m_sub(*this, "sub") { }
optional_device<cpu_device> m_sub;
tilemap_t *m_fg_tilemap; // redclash
int m_gfxbank; // redclash only
/* misc */
uint8_t m_sraider_0x30;
uint8_t m_sraider_0x38;
DECLARE_READ8_MEMBER(sraider_sound_low_r);
DECLARE_READ8_MEMBER(sraider_sound_high_r);
DECLARE_WRITE8_MEMBER(sraider_sound_low_w);
DECLARE_WRITE8_MEMBER(sraider_sound_high_w);
DECLARE_READ8_MEMBER(sraider_8005_r);
DECLARE_WRITE8_MEMBER(sraider_misc_w);
DECLARE_WRITE8_MEMBER(sraider_io_w);
DECLARE_INPUT_CHANGED_MEMBER(left_coin_inserted);
DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted);
DECLARE_DRIVER_INIT(redclash);
DECLARE_MACHINE_START(sraider);
DECLARE_MACHINE_RESET(sraider);
DECLARE_VIDEO_START(sraider);
DECLARE_PALETTE_INIT(sraider);
DECLARE_MACHINE_START(redclash);
DECLARE_MACHINE_RESET(redclash);
DECLARE_VIDEO_START(redclash);
DECLARE_PALETTE_INIT(redclash);
uint32_t screen_update_sraider(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_redclash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(screen_vblank_sraider);
DECLARE_WRITE_LINE_MEMBER(screen_vblank_redclash);
DECLARE_WRITE8_MEMBER( redclash_videoram_w );
DECLARE_WRITE8_MEMBER( redclash_gfxbank_w );
DECLARE_WRITE8_MEMBER( redclash_flipscreen_w );
TILE_GET_INFO_MEMBER(get_fg_tile_info);
DECLARE_WRITE8_MEMBER( redclash_star0_w );
DECLARE_WRITE8_MEMBER( redclash_star1_w );
DECLARE_WRITE8_MEMBER( redclash_star2_w );
DECLARE_WRITE8_MEMBER( redclash_star_reset_w );
DECLARE_WRITE8_MEMBER( irqack_w );
/* sraider uses the zerohour star generator board */
void redclash_set_stars_enable(uint8_t on);
void redclash_update_stars_state();
void redclash_set_stars_speed(uint8_t speed);
void redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t palette_offset, uint8_t sraider, uint8_t firstx, uint8_t lastx);
void redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
void redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect );
};
|