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

« back to all changes in this revision

Viewing changes to src/mame/includes/toki.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:
 
1
#include "video/bufsprite.h"
 
2
 
1
3
class toki_state : public driver_device
2
4
{
3
5
public:
4
6
        toki_state(const machine_config &mconfig, device_type type, const char *tag)
5
 
                : driver_device(mconfig, type, tag) { }
6
 
 
7
 
        UINT16 *m_videoram;
 
7
                : driver_device(mconfig, type, tag),
 
8
                  m_spriteram(*this, "spriteram") ,
 
9
                m_background1_videoram16(*this, "bg1_vram16"),
 
10
                m_background2_videoram16(*this, "bg2_vram16"),
 
11
                m_videoram(*this, "videoram"),
 
12
                m_scrollram16(*this, "scrollram16"){ }
 
13
 
 
14
        required_device<buffered_spriteram16_device> m_spriteram;
 
15
        required_shared_ptr<UINT16> m_background1_videoram16;
 
16
        required_shared_ptr<UINT16> m_background2_videoram16;
 
17
        required_shared_ptr<UINT16> m_videoram;
 
18
        required_shared_ptr<UINT16> m_scrollram16;
 
19
 
8
20
        int m_msm5205next;
9
21
        int m_toggle;
10
 
        UINT16 *m_background1_videoram16;
11
 
        UINT16 *m_background2_videoram16;
12
 
        UINT16 *m_scrollram16;
13
22
        tilemap_t *m_background_layer;
14
23
        tilemap_t *m_foreground_layer;
15
24
        tilemap_t *m_text_layer;
 
25
 
 
26
        DECLARE_WRITE16_MEMBER(tokib_soundcommand16_w);
 
27
        DECLARE_READ16_MEMBER(pip16_r);
 
28
        DECLARE_WRITE8_MEMBER(toki_adpcm_data_w);
 
29
        DECLARE_WRITE16_MEMBER(toki_control_w);
 
30
        DECLARE_WRITE16_MEMBER(toki_foreground_videoram16_w);
 
31
        DECLARE_WRITE16_MEMBER(toki_background1_videoram16_w);
 
32
        DECLARE_WRITE16_MEMBER(toki_background2_videoram16_w);
16
33
};
17
34
 
18
35
 
19
36
/*----------- defined in video/toki.c -----------*/
20
37
 
21
38
VIDEO_START( toki );
22
 
SCREEN_VBLANK( toki );
23
 
SCREEN_VBLANK( tokib );
24
39
SCREEN_UPDATE_IND16( toki );
25
40
SCREEN_UPDATE_IND16( tokib );
26
 
WRITE16_HANDLER( toki_background1_videoram16_w );
27
 
WRITE16_HANDLER( toki_background2_videoram16_w );
28
 
WRITE16_HANDLER( toki_control_w );
29
 
WRITE16_HANDLER( toki_foreground_videoram16_w );