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

« back to all changes in this revision

Viewing changes to src/mame/includes/contra.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:
8
8
{
9
9
public:
10
10
        contra_state(const machine_config &mconfig, device_type type, const char *tag)
11
 
                : driver_device(mconfig, type, tag) { }
 
11
                : driver_device(mconfig, type, tag) ,
 
12
                m_paletteram(*this, "paletteram"),
 
13
                m_fg_cram(*this, "fg_cram"),
 
14
                m_fg_vram(*this, "fg_vram"),
 
15
                m_tx_cram(*this, "tx_cram"),
 
16
                m_tx_vram(*this, "tx_vram"),
 
17
                m_spriteram(*this, "spriteram"),
 
18
                m_bg_cram(*this, "bg_cram"),
 
19
                m_bg_vram(*this, "bg_vram"){ }
12
20
 
13
21
        /* memory pointers */
14
 
        UINT8 *        m_spriteram;
15
22
        UINT8 *        m_buffered_spriteram;
16
23
        UINT8 *        m_buffered_spriteram_2;
17
 
        UINT8 *        m_paletteram;
18
 
        UINT8 *        m_bg_vram;
19
 
        UINT8 *        m_bg_cram;
20
 
        UINT8 *        m_fg_vram;
21
 
        UINT8 *        m_fg_cram;
22
 
        UINT8 *        m_tx_vram;
23
 
        UINT8 *        m_tx_cram;
24
 
        // this driver also uses a large generic spriteram region...
 
24
        required_shared_ptr<UINT8> m_paletteram;
 
25
        required_shared_ptr<UINT8> m_fg_cram;
 
26
        required_shared_ptr<UINT8> m_fg_vram;
 
27
        required_shared_ptr<UINT8> m_tx_cram;
 
28
        required_shared_ptr<UINT8> m_tx_vram;
 
29
        required_shared_ptr<UINT8> m_spriteram;
 
30
        required_shared_ptr<UINT8> m_bg_cram;
 
31
        required_shared_ptr<UINT8> m_bg_vram;
25
32
 
26
33
        /* video-related */
27
34
        tilemap_t *m_bg_tilemap;
35
42
        device_t *m_audiocpu;
36
43
        device_t *m_k007121_1;
37
44
        device_t *m_k007121_2;
 
45
        DECLARE_WRITE8_MEMBER(contra_bankswitch_w);
 
46
        DECLARE_WRITE8_MEMBER(contra_sh_irqtrigger_w);
 
47
        DECLARE_WRITE8_MEMBER(contra_coin_counter_w);
 
48
        DECLARE_WRITE8_MEMBER(cpu_sound_command_w);
 
49
        DECLARE_WRITE8_MEMBER(contra_fg_vram_w);
 
50
        DECLARE_WRITE8_MEMBER(contra_fg_cram_w);
 
51
        DECLARE_WRITE8_MEMBER(contra_bg_vram_w);
 
52
        DECLARE_WRITE8_MEMBER(contra_bg_cram_w);
 
53
        DECLARE_WRITE8_MEMBER(contra_text_vram_w);
 
54
        DECLARE_WRITE8_MEMBER(contra_text_cram_w);
 
55
        DECLARE_WRITE8_MEMBER(contra_K007121_ctrl_0_w);
 
56
        DECLARE_WRITE8_MEMBER(contra_K007121_ctrl_1_w);
38
57
};
39
58
 
40
59
 
42
61
 
43
62
PALETTE_INIT( contra );
44
63
 
45
 
WRITE8_HANDLER( contra_fg_vram_w );
46
 
WRITE8_HANDLER( contra_fg_cram_w );
47
 
WRITE8_HANDLER( contra_bg_vram_w );
48
 
WRITE8_HANDLER( contra_bg_cram_w );
49
 
WRITE8_HANDLER( contra_text_vram_w );
50
 
WRITE8_HANDLER( contra_text_cram_w );
51
64
 
52
 
WRITE8_HANDLER( contra_K007121_ctrl_0_w );
53
 
WRITE8_HANDLER( contra_K007121_ctrl_1_w );
54
65
 
55
66
SCREEN_UPDATE_IND16( contra );
56
67
VIDEO_START( contra );