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

« back to all changes in this revision

Viewing changes to src/mame/includes/tmnt.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 "sound/samples.h"
1
2
 
2
3
class tmnt_state : public driver_device
3
4
{
4
5
public:
5
6
        tmnt_state(const machine_config &mconfig, device_type type, const char *tag)
6
 
                : driver_device(mconfig, type, tag) { }
 
7
                : driver_device(mconfig, type, tag) ,
 
8
                m_spriteram(*this, "spriteram"),
 
9
                m_tmnt2_rom(*this, "tmnt2_rom"),
 
10
                m_sunset_104000(*this, "sunset_104000"),
 
11
                m_tmnt2_1c0800(*this, "tmnt2_1c0800"){ }
7
12
 
8
13
        /* memory pointers */
9
 
        UINT16 *   m_tmnt2_1c0800;
10
 
        UINT16 *   m_sunset_104000;
11
 
        UINT16 *   m_tmnt2_rom;
 
14
        optional_shared_ptr<UINT16> m_spriteram;
 
15
        optional_shared_ptr<UINT16> m_tmnt2_rom;
 
16
        optional_shared_ptr<UINT16> m_sunset_104000;
 
17
        optional_shared_ptr<UINT16> m_tmnt2_1c0800;
12
18
//  UINT16 *    m_paletteram;    // currently this uses generic palette handling
13
19
//  UINT8 *     m_nvram;    // currently cuebrick uses generic nvram handling
14
20
//  UINT8 *     m_cuebrick_nvram;
15
 
        UINT16 *m_spriteram;
16
21
 
17
22
        /* video-related */
18
23
        int        m_layer_colorbase[3];
54
59
        device_t *m_k053936;
55
60
        device_t *m_k054000;
56
61
        device_t *m_upd;
57
 
        device_t *m_samples;
 
62
        samples_device *m_samples;
58
63
 
59
64
        /* memory buffers */
60
65
        INT16      m_sampledata[0x40000];
61
66
 
62
67
        UINT8      m_irq5_mask;
 
68
        DECLARE_READ16_MEMBER(k052109_word_noA12_r);
 
69
        DECLARE_WRITE16_MEMBER(k052109_word_noA12_w);
 
70
        DECLARE_WRITE16_MEMBER(punkshot_k052109_word_w);
 
71
        DECLARE_WRITE16_MEMBER(punkshot_k052109_word_noA12_w);
 
72
        DECLARE_READ16_MEMBER(k053245_scattered_word_r);
 
73
        DECLARE_WRITE16_MEMBER(k053245_scattered_word_w);
 
74
        DECLARE_READ16_MEMBER(k053244_word_noA1_r);
 
75
        DECLARE_WRITE16_MEMBER(k053244_word_noA1_w);
 
76
        DECLARE_WRITE16_MEMBER(tmnt_sound_command_w);
 
77
        DECLARE_READ16_MEMBER(prmrsocr_sound_r);
 
78
        DECLARE_WRITE16_MEMBER(prmrsocr_sound_cmd_w);
 
79
        DECLARE_WRITE16_MEMBER(prmrsocr_sound_irq_w);
 
80
        DECLARE_WRITE8_MEMBER(prmrsocr_audio_bankswitch_w);
 
81
        DECLARE_READ8_MEMBER(tmnt_sres_r);
 
82
        DECLARE_WRITE8_MEMBER(tmnt_sres_w);
 
83
        DECLARE_WRITE8_MEMBER(sound_arm_nmi_w);
 
84
        DECLARE_READ16_MEMBER(punkshot_kludge_r);
 
85
        DECLARE_READ16_MEMBER(ssriders_protection_r);
 
86
        DECLARE_WRITE16_MEMBER(ssriders_protection_w);
 
87
        DECLARE_READ16_MEMBER(blswhstl_coin_r);
 
88
        DECLARE_READ16_MEMBER(ssriders_eeprom_r);
 
89
        DECLARE_READ16_MEMBER(sunsetbl_eeprom_r);
 
90
        DECLARE_WRITE16_MEMBER(blswhstl_eeprom_w);
 
91
        DECLARE_READ16_MEMBER(thndrx2_eeprom_r);
 
92
        DECLARE_WRITE16_MEMBER(thndrx2_eeprom_w);
 
93
        DECLARE_WRITE16_MEMBER(prmrsocr_eeprom_w);
 
94
        DECLARE_READ16_MEMBER(cuebrick_nv_r);
 
95
        DECLARE_WRITE16_MEMBER(cuebrick_nv_w);
 
96
        DECLARE_WRITE16_MEMBER(cuebrick_nvbank_w);
 
97
        DECLARE_WRITE16_MEMBER(ssriders_soundkludge_w);
 
98
        DECLARE_WRITE16_MEMBER(k053251_glfgreat_w);
 
99
        DECLARE_WRITE16_MEMBER(tmnt2_1c0800_w);
 
100
        DECLARE_READ8_MEMBER(k054539_ctrl_r);
 
101
        DECLARE_WRITE8_MEMBER(k054539_ctrl_w);
 
102
        DECLARE_WRITE16_MEMBER(tmnt_paletteram_word_w);
 
103
        DECLARE_WRITE16_MEMBER(tmnt_0a0000_w);
 
104
        DECLARE_WRITE16_MEMBER(punkshot_0a0020_w);
 
105
        DECLARE_WRITE16_MEMBER(lgtnfght_0a0018_w);
 
106
        DECLARE_WRITE16_MEMBER(blswhstl_700300_w);
 
107
        DECLARE_READ16_MEMBER(glfgreat_rom_r);
 
108
        DECLARE_WRITE16_MEMBER(glfgreat_122000_w);
 
109
        DECLARE_WRITE16_MEMBER(ssriders_eeprom_w);
 
110
        DECLARE_WRITE16_MEMBER(ssriders_1c0300_w);
 
111
        DECLARE_WRITE16_MEMBER(prmrsocr_122000_w);
 
112
        DECLARE_READ16_MEMBER(prmrsocr_rom_r);
 
113
        DECLARE_WRITE16_MEMBER(tmnt_priority_w);
 
114
        DECLARE_READ16_MEMBER(glfgreat_ball_r);
63
115
};
64
116
 
65
117
 
78
130
extern void blswhstl_sprite_callback(running_machine &machine, int *code,int *color,int *priority_mask);
79
131
extern void prmrsocr_sprite_callback(running_machine &machine, int *code,int *color,int *priority_mask);
80
132
 
81
 
WRITE16_HANDLER( tmnt_paletteram_word_w );
82
 
WRITE16_HANDLER( tmnt_0a0000_w );
83
 
WRITE16_HANDLER( punkshot_0a0020_w );
84
 
WRITE16_HANDLER( lgtnfght_0a0018_w );
85
 
WRITE16_HANDLER( blswhstl_700300_w );
86
 
READ16_HANDLER( glfgreat_rom_r );
87
 
WRITE16_HANDLER( glfgreat_122000_w );
88
 
WRITE16_HANDLER( ssriders_eeprom_w );
89
 
WRITE16_HANDLER( ssriders_1c0300_w );
90
 
WRITE16_HANDLER( prmrsocr_122000_w );
91
 
WRITE16_HANDLER( tmnt_priority_w );
92
 
READ16_HANDLER( glfgreat_ball_r );
93
 
READ16_HANDLER( prmrsocr_rom_r );
94
133
 
95
134
VIDEO_START( cuebrick );
96
135
VIDEO_START( mia );