~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/includes/galaga.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
{
5
5
public:
6
6
        galaga_state(const machine_config &mconfig, device_type type, const char *tag)
7
 
                : driver_device(mconfig, type, tag) { }
 
7
                : driver_device(mconfig, type, tag) ,
 
8
                m_videoram(*this, "videoram"),
 
9
                m_galaga_ram1(*this, "galaga_ram1"),
 
10
                m_galaga_ram2(*this, "galaga_ram2"),
 
11
                m_galaga_ram3(*this, "galaga_ram3"),
 
12
                m_galaga_starcontrol(*this, "starcontrol")
 
13
                { }
8
14
 
9
15
        /* memory pointers */
10
 
        UINT8 *m_galaga_ram1;
11
 
        UINT8 *m_galaga_ram2;
12
 
        UINT8 *m_galaga_ram3;
13
 
        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
14
21
        emu_timer *m_cpu3_interrupt_timer;
15
22
        UINT8 m_custom_mod;
16
23
 
25
32
        /* bank support */
26
33
 
27
34
        /* shared */
28
 
        UINT8 *m_videoram;
29
35
        tilemap_t *m_fg_tilemap;
30
36
        tilemap_t *m_bg_tilemap;
31
37
 
32
38
        UINT8 m_main_irq_mask;
33
39
        UINT8 m_sub_irq_mask;
34
40
        UINT8 m_sub2_nmi_mask;
 
41
        DECLARE_READ8_MEMBER(bosco_dsw_r);
 
42
        DECLARE_WRITE8_MEMBER(galaga_flip_screen_w);
 
43
        DECLARE_WRITE8_MEMBER(bosco_latch_w);
 
44
        DECLARE_WRITE8_MEMBER(galaga_videoram_w);
 
45
        DECLARE_WRITE8_MEMBER(gatsbee_bank_w);
35
46
};
36
47
 
37
48
class xevious_state : public galaga_state
38
49
{
39
50
public:
40
51
        xevious_state(const machine_config &mconfig, device_type type, const char *tag)
41
 
                : galaga_state(mconfig, type, tag) { }
 
52
                : galaga_state(mconfig, type, tag),
 
53
                m_xevious_sr1(*this, "xevious_sr1"),
 
54
                m_xevious_sr2(*this, "xevious_sr2"),
 
55
                m_xevious_sr3(*this, "xevious_sr3"),
 
56
                m_xevious_fg_colorram(*this, "fg_colorram"),
 
57
                m_xevious_bg_colorram(*this, "bg_colorram"),
 
58
                m_xevious_fg_videoram(*this, "fg_videoram"),
 
59
                m_xevious_bg_videoram(*this, "bg_videoram") { }
42
60
 
43
 
        UINT8 *m_xevious_fg_videoram;
44
 
        UINT8 *m_xevious_fg_colorram;
45
 
        UINT8 *m_xevious_bg_videoram;
46
 
        UINT8 *m_xevious_bg_colorram;
47
 
        UINT8 *m_xevious_sr1;
48
 
        UINT8 *m_xevious_sr2;
49
 
        UINT8 *m_xevious_sr3;
 
61
        required_shared_ptr<UINT8> m_xevious_sr1;
 
62
        required_shared_ptr<UINT8> m_xevious_sr2;
 
63
        required_shared_ptr<UINT8> m_xevious_sr3;
 
64
        required_shared_ptr<UINT8> m_xevious_fg_colorram;
 
65
        required_shared_ptr<UINT8> m_xevious_bg_colorram;
 
66
        required_shared_ptr<UINT8> m_xevious_fg_videoram;
 
67
        required_shared_ptr<UINT8> m_xevious_bg_videoram;
50
68
 
51
69
        INT32 m_xevious_bs[2];
52
70
};
56
74
{
57
75
public:
58
76
        bosco_state(const machine_config &mconfig, device_type type, const char *tag)
59
 
                : galaga_state(mconfig, type, tag) { }
60
 
 
61
 
        UINT8 *m_bosco_radarattr;
62
 
 
63
 
        UINT8 *m_bosco_starcontrol;
64
 
        UINT8 *m_bosco_starblink;
 
77
                : galaga_state(mconfig, type, tag),
 
78
                  m_bosco_radarattr(*this, "bosco_radarattr"),
 
79
                  m_bosco_starcontrol(*this, "starcontrol"),
 
80
                  m_bosco_starblink(*this, "bosco_starblink") { }
 
81
 
 
82
        required_shared_ptr<UINT8> m_bosco_radarattr;
 
83
 
 
84
        required_shared_ptr<UINT8> m_bosco_starcontrol;
 
85
        required_shared_ptr<UINT8> m_bosco_starblink;
65
86
 
66
87
        UINT8 *m_bosco_radarx;
67
88
        UINT8 *m_bosco_radary;
 
89
 
 
90
        UINT8 *m_spriteram;
 
91
        UINT8 *m_spriteram2;
 
92
        UINT32 m_spriteram_size;
 
93
        DECLARE_WRITE8_MEMBER(bosco_flip_screen_w);
68
94
};
69
95
 
70
96
class digdug_state : public galaga_state
71
97
{
72
98
public:
73
99
        digdug_state(const machine_config &mconfig, device_type type, const char *tag)
74
 
                : galaga_state(mconfig, type, tag) { }
 
100
                : galaga_state(mconfig, type, tag),
 
101
                m_digdug_objram(*this, "digdug_objram"),
 
102
                m_digdug_posram(*this, "digdug_posram"),
 
103
                m_digdug_flpram(*this, "digdug_flpram")         { }
75
104
 
76
 
        UINT8 *m_digdug_objram;
77
 
        UINT8 *m_digdug_posram;
78
 
        UINT8 *m_digdug_flpram;
 
105
        required_shared_ptr<UINT8> m_digdug_objram;
 
106
        required_shared_ptr<UINT8> m_digdug_posram;
 
107
        required_shared_ptr<UINT8> m_digdug_flpram;
79
108
 
80
109
        UINT8 m_bg_select;
81
110
        UINT8 m_tx_color_mode;
82
111
        UINT8 m_bg_disable;
83
112
        UINT8 m_bg_color_bank;
 
113
        DECLARE_CUSTOM_INPUT_MEMBER(shifted_port_r);
84
114
};
85
115
 
86
116
 
113
143
extern const struct star star_seed_tab[];
114
144
 
115
145
PALETTE_INIT( galaga );
116
 
WRITE8_HANDLER( galaga_videoram_w );
117
 
WRITE8_HANDLER( gatsbee_bank_w );
118
146
VIDEO_START( galaga );
119
147
SCREEN_UPDATE_IND16( galaga );
120
148
SCREEN_VBLANK( galaga );        /* update starfield */