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

« back to all changes in this revision

Viewing changes to src/mame/includes/gunsmoke.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
        gunsmoke_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_videoram(*this, "videoram"),
 
13
                m_colorram(*this, "colorram"),
 
14
                m_scrollx(*this, "scrollx"),
 
15
                m_scrolly(*this, "scrolly"),
 
16
                m_spriteram(*this, "spriteram"){ }
12
17
 
13
18
        /* memory pointers */
14
 
        UINT8 *    m_videoram;
15
 
        UINT8 *    m_colorram;
16
 
        UINT8 *    m_spriteram;
17
 
        UINT8 *    m_scrollx;
18
 
        UINT8 *    m_scrolly;
19
 
        size_t     m_spriteram_size;
 
19
        required_shared_ptr<UINT8> m_videoram;
 
20
        required_shared_ptr<UINT8> m_colorram;
 
21
        required_shared_ptr<UINT8> m_scrollx;
 
22
        required_shared_ptr<UINT8> m_scrolly;
 
23
        required_shared_ptr<UINT8> m_spriteram;
20
24
 
21
25
        /* video-related */
22
26
        tilemap_t    *m_bg_tilemap;
25
29
        UINT8      m_objon;
26
30
        UINT8      m_bgon;
27
31
        UINT8      m_sprite3bank;
 
32
        DECLARE_READ8_MEMBER(gunsmoke_protection_r);
 
33
        DECLARE_WRITE8_MEMBER(gunsmoke_videoram_w);
 
34
        DECLARE_WRITE8_MEMBER(gunsmoke_colorram_w);
 
35
        DECLARE_WRITE8_MEMBER(gunsmoke_c804_w);
 
36
        DECLARE_WRITE8_MEMBER(gunsmoke_d806_w);
28
37
};
29
38
 
30
39
 
31
40
/*----------- defined in video/gunsmoke.c -----------*/
32
41
 
33
 
WRITE8_HANDLER( gunsmoke_c804_w );
34
 
WRITE8_HANDLER( gunsmoke_d806_w );
35
 
WRITE8_HANDLER( gunsmoke_videoram_w );
36
 
WRITE8_HANDLER( gunsmoke_colorram_w );
37
42
 
38
43
PALETTE_INIT( gunsmoke );
39
44
VIDEO_START( gunsmoke );