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

« back to all changes in this revision

Viewing changes to src/mame/includes/blktiger.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
***************************************************************************/
6
6
 
 
7
#include "video/bufsprite.h"
 
8
 
7
9
class blktiger_state : public driver_device
8
10
{
9
11
public:
10
12
        blktiger_state(const machine_config &mconfig, device_type type, const char *tag)
11
 
                : driver_device(mconfig, type, tag) { }
 
13
                : driver_device(mconfig, type, tag),
 
14
                  m_spriteram(*this, "spriteram") ,
 
15
                m_txvideoram(*this, "txvideoram"){ }
12
16
 
13
17
        /* memory pointers */
14
 
        UINT8 * m_txvideoram;
15
 
//  UINT8 * m_spriteram;  // currently this uses generic buffer_spriteram_w
 
18
        required_device<buffered_spriteram8_device> m_spriteram;
 
19
        required_shared_ptr<UINT8> m_txvideoram;
16
20
//  UINT8 * m_paletteram; // currently this uses generic palette handling
17
21
//  UINT8 * m_paletteram2;    // currently this uses generic palette handling
18
22
 
36
40
        /* devices */
37
41
        device_t *m_mcu;
38
42
        device_t *m_audiocpu;
 
43
        DECLARE_READ8_MEMBER(blktiger_from_mcu_r);
 
44
        DECLARE_WRITE8_MEMBER(blktiger_to_mcu_w);
 
45
        DECLARE_READ8_MEMBER(blktiger_from_main_r);
 
46
        DECLARE_WRITE8_MEMBER(blktiger_to_main_w);
 
47
        DECLARE_WRITE8_MEMBER(blktiger_bankswitch_w);
 
48
        DECLARE_WRITE8_MEMBER(blktiger_coinlockout_w);
 
49
        DECLARE_WRITE8_MEMBER(blktiger_txvideoram_w);
 
50
        DECLARE_READ8_MEMBER(blktiger_bgvideoram_r);
 
51
        DECLARE_WRITE8_MEMBER(blktiger_bgvideoram_w);
 
52
        DECLARE_WRITE8_MEMBER(blktiger_bgvideoram_bank_w);
 
53
        DECLARE_WRITE8_MEMBER(blktiger_scrolly_w);
 
54
        DECLARE_WRITE8_MEMBER(blktiger_scrollx_w);
 
55
        DECLARE_WRITE8_MEMBER(blktiger_video_control_w);
 
56
        DECLARE_WRITE8_MEMBER(blktiger_video_enable_w);
 
57
        DECLARE_WRITE8_MEMBER(blktiger_screen_layout_w);
39
58
};
40
59
 
41
60
 
42
61
/*----------- defined in video/blktiger.c -----------*/
43
62
 
44
 
WRITE8_HANDLER( blktiger_screen_layout_w );
45
63
 
46
 
READ8_HANDLER( blktiger_bgvideoram_r );
47
 
WRITE8_HANDLER( blktiger_bgvideoram_w );
48
 
WRITE8_HANDLER( blktiger_txvideoram_w );
49
 
WRITE8_HANDLER( blktiger_video_control_w );
50
 
WRITE8_HANDLER( blktiger_video_enable_w );
51
 
WRITE8_HANDLER( blktiger_bgvideoram_bank_w );
52
 
WRITE8_HANDLER( blktiger_scrollx_w );
53
 
WRITE8_HANDLER( blktiger_scrolly_w );
54
64
 
55
65
VIDEO_START( blktiger );
56
66
SCREEN_UPDATE_IND16( blktiger );
57
 
SCREEN_VBLANK( blktiger );