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

« back to all changes in this revision

Viewing changes to src/mame/includes/twin16.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 twin16_state : public driver_device
2
4
{
3
5
public:
4
6
        twin16_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_text_ram(*this, "text_ram"),
 
10
                m_videoram(*this, "videoram"),
 
11
                m_tile_gfx_ram(*this, "tile_gfx_ram"),
 
12
                m_sprite_gfx_ram(*this, "sprite_gfx_ram"){ }
 
13
 
 
14
        required_device<buffered_spriteram16_device> m_spriteram;
 
15
        required_shared_ptr<UINT16> m_text_ram;
 
16
        required_shared_ptr<UINT16> m_videoram;
 
17
        optional_shared_ptr<UINT16> m_tile_gfx_ram;
 
18
        optional_shared_ptr<UINT16> m_sprite_gfx_ram;
 
19
 
8
20
        UINT16 m_CPUA_register;
9
21
        UINT16 m_CPUB_register;
10
22
        UINT16 m_sound_command;
12
24
        UINT16 m_cuebrickj_nvram[0x400*0x20];
13
25
        UINT16 m_custom_video;
14
26
        UINT16 *m_gfx_rom;
15
 
        UINT16 *m_text_ram;
16
 
        UINT16 *m_sprite_gfx_ram;
17
 
        UINT16 *m_tile_gfx_ram;
18
27
        UINT16 m_sprite_buffer[0x800];
19
28
        emu_timer *m_sprite_timer;
20
29
        int m_sprite_busy;
24
33
        UINT16 m_scrolly[3];
25
34
        UINT16 m_video_register;
26
35
        tilemap_t *m_text_tilemap;
 
36
        DECLARE_READ16_MEMBER(videoram16_r);
 
37
        DECLARE_WRITE16_MEMBER(videoram16_w);
 
38
        DECLARE_READ16_MEMBER(extra_rom_r);
 
39
        DECLARE_READ16_MEMBER(twin16_gfx_rom1_r);
 
40
        DECLARE_READ16_MEMBER(twin16_gfx_rom2_r);
 
41
        DECLARE_WRITE16_MEMBER(sound_command_w);
 
42
        DECLARE_WRITE16_MEMBER(twin16_CPUA_register_w);
 
43
        DECLARE_WRITE16_MEMBER(twin16_CPUB_register_w);
 
44
        DECLARE_WRITE16_MEMBER(fround_CPU_register_w);
 
45
        DECLARE_READ16_MEMBER(twin16_input_r);
 
46
        DECLARE_READ16_MEMBER(cuebrickj_nvram_r);
 
47
        DECLARE_WRITE16_MEMBER(cuebrickj_nvram_w);
 
48
        DECLARE_WRITE16_MEMBER(cuebrickj_nvram_bank_w);
 
49
        DECLARE_WRITE16_MEMBER(twin16_text_ram_w);
 
50
        DECLARE_WRITE16_MEMBER(twin16_paletteram_word_w);
 
51
        DECLARE_WRITE16_MEMBER(fround_gfx_bank_w);
 
52
        DECLARE_WRITE16_MEMBER(twin16_video_register_w);
 
53
        DECLARE_READ16_MEMBER(twin16_sprite_status_r);
27
54
};
28
55
 
29
56
 
34
61
 
35
62
/*----------- defined in video/twin16.c -----------*/
36
63
 
37
 
WRITE16_HANDLER( twin16_text_ram_w );
38
 
WRITE16_HANDLER( twin16_paletteram_word_w );
39
 
WRITE16_HANDLER( fround_gfx_bank_w );
40
 
WRITE16_HANDLER( twin16_video_register_w );
41
 
READ16_HANDLER( twin16_sprite_status_r );
42
64
 
43
65
VIDEO_START( twin16 );
44
66
SCREEN_UPDATE_IND16( twin16 );