~ubuntu-branches/debian/wheezy/mame/wheezy

« back to all changes in this revision

Viewing changes to src/mame/includes/neogeo.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
//  UINT16     *save_ram;       // this currently uses generic handlers
40
40
 
41
41
        /* video-related */
42
 
        UINT8      *sprite_gfx;
43
 
        UINT32     sprite_gfx_address_mask;
44
 
        UINT16     *videoram;
45
 
        UINT16     *palettes[2]; /* 0x100*16 2 byte palette entries */
46
 
        pen_t      *pens;
47
 
        UINT8      palette_bank;
48
 
        UINT8      screen_dark;
49
 
        UINT16     videoram_read_buffer;
50
 
        UINT16     videoram_modulo;
51
 
        UINT16     videoram_offset;
52
 
 
53
 
        UINT8      fixed_layer_source;
54
 
 
55
 
        UINT8      auto_animation_speed;
56
 
        UINT8      auto_animation_disabled;
57
 
        UINT8      auto_animation_counter;
58
 
        UINT8      auto_animation_frame_counter;
59
 
 
60
 
        const UINT8 *region_zoomy;
 
42
        UINT8      *m_sprite_gfx;
 
43
        UINT32     m_sprite_gfx_address_mask;
 
44
        UINT16     *m_videoram;
 
45
        UINT16     *m_palettes[2]; /* 0x100*16 2 byte palette entries */
 
46
        pen_t      *m_pens;
 
47
        UINT8      m_palette_bank;
 
48
        UINT8      m_screen_dark;
 
49
        UINT16     m_videoram_read_buffer;
 
50
        UINT16     m_videoram_modulo;
 
51
        UINT16     m_videoram_offset;
 
52
 
 
53
        UINT8      m_fixed_layer_source;
 
54
 
 
55
        UINT8      m_auto_animation_speed;
 
56
        UINT8      m_auto_animation_disabled;
 
57
        UINT8      m_auto_animation_counter;
 
58
        UINT8      m_auto_animation_frame_counter;
 
59
 
 
60
        const UINT8 *m_region_zoomy;
61
61
 
62
62
 
63
63
        /* palette */
64
 
        double     rgb_weights_normal[5];
65
 
        double     rgb_weights_normal_bit15[5];
66
 
        double     rgb_weights_dark[5];
67
 
        double     rgb_weights_dark_bit15[5];
 
64
        double     m_rgb_weights_normal[5];
 
65
        double     m_rgb_weights_normal_bit15[5];
 
66
        double     m_rgb_weights_dark[5];
 
67
        double     m_rgb_weights_dark_bit15[5];
68
68
 
69
69
        /* timers */
70
 
        emu_timer  *display_position_interrupt_timer;
71
 
        emu_timer  *display_position_vblank_timer;
72
 
        emu_timer  *vblank_interrupt_timer;
73
 
        emu_timer  *auto_animation_timer;
74
 
        emu_timer  *sprite_line_timer;
75
 
        UINT8      display_position_interrupt_control;
76
 
        UINT32     display_counter;
77
 
        UINT32     vblank_interrupt_pending;
78
 
        UINT32     display_position_interrupt_pending;
79
 
        UINT32     irq3_pending;
 
70
        emu_timer  *m_display_position_interrupt_timer;
 
71
        emu_timer  *m_display_position_vblank_timer;
 
72
        emu_timer  *m_vblank_interrupt_timer;
 
73
        emu_timer  *m_auto_animation_timer;
 
74
        emu_timer  *m_sprite_line_timer;
 
75
        UINT8      m_display_position_interrupt_control;
 
76
        UINT32     m_display_counter;
 
77
        UINT32     m_vblank_interrupt_pending;
 
78
        UINT32     m_display_position_interrupt_pending;
 
79
        UINT32     m_irq3_pending;
80
80
 
81
81
        /* misc */
82
 
        UINT8      controller_select;
83
 
 
84
 
        UINT32     main_cpu_bank_address;
85
 
        UINT8      main_cpu_vector_table_source;
86
 
 
87
 
        UINT8      audio_result;
88
 
        UINT8      audio_cpu_banks[4];
89
 
        UINT8      audio_cpu_rom_source;
90
 
        UINT8      audio_cpu_rom_source_last;
91
 
 
92
 
        UINT8      save_ram_unlocked;
93
 
 
94
 
        UINT8      output_data;
95
 
        UINT8      output_latch;
96
 
        UINT8      el_value;
97
 
        UINT8      led1_value;
98
 
        UINT8      led2_value;
99
 
        UINT8      recurse;
 
82
        UINT8      m_controller_select;
 
83
 
 
84
        UINT32     m_main_cpu_bank_address;
 
85
        UINT8      m_main_cpu_vector_table_source;
 
86
 
 
87
        UINT8      m_audio_result;
 
88
        UINT8      m_audio_cpu_banks[4];
 
89
        UINT8      m_audio_cpu_rom_source;
 
90
        UINT8      m_audio_cpu_rom_source_last;
 
91
 
 
92
        UINT8      m_save_ram_unlocked;
 
93
 
 
94
        UINT8      m_output_data;
 
95
        UINT8      m_output_latch;
 
96
        UINT8      m_el_value;
 
97
        UINT8      m_led1_value;
 
98
        UINT8      m_led2_value;
 
99
        UINT8      m_recurse;
100
100
 
101
101
        /* protection */
102
 
        UINT32     fatfury2_prot_data;
103
 
        UINT16     neogeo_rng;
104
 
        UINT16     *pvc_cartridge_ram;
105
 
        int        fixed_layer_bank_type;
 
102
        UINT32     m_fatfury2_prot_data;
 
103
        UINT16     m_neogeo_rng;
 
104
        UINT16     *m_pvc_cartridge_ram;
 
105
        int        m_fixed_layer_bank_type;
106
106
 
107
107
        /* devices */
108
 
        device_t *maincpu;
109
 
        device_t *audiocpu;
110
 
        device_t *upd4990a;
 
108
        device_t *m_maincpu;
 
109
        device_t *m_audiocpu;
 
110
        device_t *m_upd4990a;
111
111
};
112
112
 
113
113
 
114
114
/*----------- defined in drivers/neogeo.c -----------*/
115
115
 
116
 
void neogeo_set_display_position_interrupt_control(running_machine *machine, UINT16 data);
 
116
void neogeo_set_display_position_interrupt_control(running_machine &machine, UINT16 data);
117
117
void neogeo_set_display_counter_msb(address_space *space, UINT16 data);
118
118
void neogeo_set_display_counter_lsb(address_space *space, UINT16 data);
119
 
void neogeo_acknowledge_interrupt(running_machine *machine, UINT16 data);
 
119
void neogeo_acknowledge_interrupt(running_machine &machine, UINT16 data);
120
120
void neogeo_set_main_cpu_bank_address(address_space *space, UINT32 bank_address);
121
121
READ16_HANDLER( neogeo_unmapped_r );
122
122
 
123
123
 
124
124
/*----------- defined in machine/neocrypt.c -----------*/
125
125
 
126
 
void kof99_neogeo_gfx_decrypt(running_machine *machine, int extra_xor);
127
 
void kof2000_neogeo_gfx_decrypt(running_machine *machine, int extra_xor);
128
 
void cmc42_neogeo_gfx_decrypt(running_machine *machine, int extra_xor);
129
 
void cmc50_neogeo_gfx_decrypt(running_machine *machine, int extra_xor);
130
 
void neogeo_cmc50_m1_decrypt(running_machine *machine);
131
 
void neo_pcm2_snk_1999(running_machine *machine, int value);
132
 
void neo_pcm2_swap(running_machine *machine, int value);
133
 
void neogeo_sfix_decrypt(running_machine *machine);
134
 
void kof99_decrypt_68k(running_machine *machine);
135
 
void garou_decrypt_68k(running_machine *machine);
136
 
void garouo_decrypt_68k(running_machine *machine);
137
 
void mslug3_decrypt_68k(running_machine *machine);
138
 
void kof2000_decrypt_68k(running_machine *machine);
139
 
void kof98_decrypt_68k(running_machine *machine);
140
 
void kof2002_decrypt_68k(running_machine *machine);
141
 
void matrim_decrypt_68k(running_machine *machine);
142
 
void mslug5_decrypt_68k(running_machine *machine);
143
 
void svc_px_decrypt(running_machine *machine);
144
 
void svcpcb_gfx_decrypt(running_machine *machine);
145
 
void svcpcb_s1data_decrypt(running_machine *machine);
146
 
void samsho5_decrypt_68k(running_machine *machine);
147
 
void kf2k3pcb_gfx_decrypt(running_machine *machine);
148
 
void kf2k3pcb_decrypt_68k(running_machine *machine);
149
 
void kf2k3pcb_decrypt_s1data(running_machine *machine);
150
 
void kof2003_decrypt_68k(running_machine *machine);
151
 
void kof2003h_decrypt_68k(running_machine *machine);
152
 
void kof2003biosdecode(running_machine *machine);
153
 
void samsh5sp_decrypt_68k(running_machine *machine);
 
126
void kof99_neogeo_gfx_decrypt(running_machine &machine, int extra_xor);
 
127
void kof2000_neogeo_gfx_decrypt(running_machine &machine, int extra_xor);
 
128
void cmc42_neogeo_gfx_decrypt(running_machine &machine, int extra_xor);
 
129
void cmc50_neogeo_gfx_decrypt(running_machine &machine, int extra_xor);
 
130
void neogeo_cmc50_m1_decrypt(running_machine &machine);
 
131
void neo_pcm2_snk_1999(running_machine &machine, int value);
 
132
void neo_pcm2_swap(running_machine &machine, int value);
 
133
void neogeo_sfix_decrypt(running_machine &machine);
 
134
void kof99_decrypt_68k(running_machine &machine);
 
135
void garou_decrypt_68k(running_machine &machine);
 
136
void garouo_decrypt_68k(running_machine &machine);
 
137
void mslug3_decrypt_68k(running_machine &machine);
 
138
void kof2000_decrypt_68k(running_machine &machine);
 
139
void kof98_decrypt_68k(running_machine &machine);
 
140
void kof2002_decrypt_68k(running_machine &machine);
 
141
void matrim_decrypt_68k(running_machine &machine);
 
142
void mslug5_decrypt_68k(running_machine &machine);
 
143
void svc_px_decrypt(running_machine &machine);
 
144
void svcpcb_gfx_decrypt(running_machine &machine);
 
145
void svcpcb_s1data_decrypt(running_machine &machine);
 
146
void samsho5_decrypt_68k(running_machine &machine);
 
147
void kf2k3pcb_gfx_decrypt(running_machine &machine);
 
148
void kf2k3pcb_decrypt_68k(running_machine &machine);
 
149
void kf2k3pcb_decrypt_s1data(running_machine &machine);
 
150
void kof2003_decrypt_68k(running_machine &machine);
 
151
void kof2003h_decrypt_68k(running_machine &machine);
 
152
void kof2003biosdecode(running_machine &machine);
 
153
void samsh5sp_decrypt_68k(running_machine &machine);
154
154
 
155
155
 
156
156
/*----------- defined in machine/neoprot.c -----------*/
157
157
 
158
 
void neogeo_reset_rng(running_machine *machine);
159
 
void fatfury2_install_protection(running_machine *machine);
160
 
void mslugx_install_protection(running_machine *machine);
161
 
void kof99_install_protection(running_machine *machine);
162
 
void garou_install_protection(running_machine *machine);
163
 
void garouo_install_protection(running_machine *machine);
164
 
void mslug3_install_protection(running_machine *machine);
165
 
void kof2000_install_protection(running_machine *machine);
166
 
void install_kof98_protection(running_machine *machine);
167
 
void install_pvc_protection(running_machine *machine);
 
158
void neogeo_reset_rng(running_machine &machine);
 
159
void fatfury2_install_protection(running_machine &machine);
 
160
void mslugx_install_protection(running_machine &machine);
 
161
void kof99_install_protection(running_machine &machine);
 
162
void garou_install_protection(running_machine &machine);
 
163
void garouo_install_protection(running_machine &machine);
 
164
void mslug3_install_protection(running_machine &machine);
 
165
void kof2000_install_protection(running_machine &machine);
 
166
void install_kof98_protection(running_machine &machine);
 
167
void install_pvc_protection(running_machine &machine);
168
168
 
169
169
 
170
170
/*----------- defined in machine/neoboot.c -----------*/
171
171
 
172
 
void kog_px_decrypt(running_machine *machine);
173
 
void neogeo_bootleg_cx_decrypt(running_machine *machine);
174
 
void install_kof10th_protection(running_machine *machine);
175
 
void decrypt_kof10th(running_machine *machine);
176
 
void decrypt_kf10thep(running_machine *machine);
177
 
void decrypt_kf2k5uni(running_machine *machine);
178
 
void neogeo_bootleg_sx_decrypt(running_machine *machine, int value);
179
 
void kof2002b_gfx_decrypt(running_machine *machine, UINT8 *src, int size);
180
 
void kf2k2mp_decrypt(running_machine *machine);
181
 
void kf2k2mp2_px_decrypt(running_machine *machine);
182
 
void decrypt_cthd2003(running_machine *machine);
183
 
void patch_cthd2003(running_machine *machine);
184
 
void decrypt_ct2k3sp(running_machine *machine);
185
 
void decrypt_ct2k3sa(running_machine *machine);
186
 
void patch_ct2k3sa(running_machine *machine);
187
 
void decrypt_kof2k4se_68k(running_machine *machine);
188
 
void lans2004_decrypt_68k(running_machine *machine);
189
 
void lans2004_vx_decrypt(running_machine *machine);
190
 
void install_ms5plus_protection(running_machine *machine);
191
 
void svcboot_px_decrypt(running_machine *machine);
192
 
void svcboot_cx_decrypt(running_machine *machine);
193
 
void svcplus_px_decrypt(running_machine *machine);
194
 
void svcplus_px_hack(running_machine *machine);
195
 
void svcplusa_px_decrypt(running_machine *machine);
196
 
void svcsplus_px_decrypt(running_machine *machine);
197
 
void svcsplus_px_hack(running_machine *machine);
198
 
void kf2k3bl_px_decrypt(running_machine *machine);
199
 
void kf2k3bl_install_protection(running_machine *machine);
200
 
void kf2k3pl_px_decrypt(running_machine *machine);
201
 
void kf2k3upl_px_decrypt(running_machine *machine);
202
 
void kf2k3upl_install_protection(running_machine *machine);
203
 
void kf2k3pl_install_protection(running_machine *machine);
204
 
void samsho5b_px_decrypt(running_machine *machine);
205
 
void samsho5b_vx_decrypt(running_machine *machine);
206
 
void matrimbl_decrypt(running_machine *machine);
 
172
void kog_px_decrypt(running_machine &machine);
 
173
void neogeo_bootleg_cx_decrypt(running_machine &machine);
 
174
void install_kof10th_protection(running_machine &machine);
 
175
void decrypt_kof10th(running_machine &machine);
 
176
void decrypt_kf10thep(running_machine &machine);
 
177
void decrypt_kf2k5uni(running_machine &machine);
 
178
void neogeo_bootleg_sx_decrypt(running_machine &machine, int value);
 
179
void kof2002b_gfx_decrypt(running_machine &machine, UINT8 *src, int size);
 
180
void kf2k2mp_decrypt(running_machine &machine);
 
181
void kf2k2mp2_px_decrypt(running_machine &machine);
 
182
void decrypt_cthd2003(running_machine &machine);
 
183
void patch_cthd2003(running_machine &machine);
 
184
void decrypt_ct2k3sp(running_machine &machine);
 
185
void decrypt_ct2k3sa(running_machine &machine);
 
186
void patch_ct2k3sa(running_machine &machine);
 
187
void decrypt_kof2k4se_68k(running_machine &machine);
 
188
void lans2004_decrypt_68k(running_machine &machine);
 
189
void lans2004_vx_decrypt(running_machine &machine);
 
190
void install_ms5plus_protection(running_machine &machine);
 
191
void svcboot_px_decrypt(running_machine &machine);
 
192
void svcboot_cx_decrypt(running_machine &machine);
 
193
void svcplus_px_decrypt(running_machine &machine);
 
194
void svcplus_px_hack(running_machine &machine);
 
195
void svcplusa_px_decrypt(running_machine &machine);
 
196
void svcsplus_px_decrypt(running_machine &machine);
 
197
void svcsplus_px_hack(running_machine &machine);
 
198
void kf2k3bl_px_decrypt(running_machine &machine);
 
199
void kf2k3bl_install_protection(running_machine &machine);
 
200
void kf2k3pl_px_decrypt(running_machine &machine);
 
201
void kf2k3upl_px_decrypt(running_machine &machine);
 
202
void kf2k3upl_install_protection(running_machine &machine);
 
203
void kf2k3pl_install_protection(running_machine &machine);
 
204
void samsho5b_px_decrypt(running_machine &machine);
 
205
void samsho5b_vx_decrypt(running_machine &machine);
 
206
void matrimbl_decrypt(running_machine &machine);
207
207
 
208
208
 
209
209
/*----------- defined in video/neogeo.c -----------*/
210
210
 
211
211
VIDEO_START( neogeo );
212
212
VIDEO_RESET( neogeo );
213
 
VIDEO_UPDATE( neogeo );
 
213
SCREEN_UPDATE( neogeo );
214
214
 
215
215
READ16_HANDLER( neogeo_video_register_r );
216
216
WRITE16_HANDLER( neogeo_video_register_w );
217
217
 
218
 
void neogeo_set_palette_bank(running_machine *machine, UINT8 data);
219
 
void neogeo_set_screen_dark(running_machine *machine, UINT8 data);
 
218
void neogeo_set_palette_bank(running_machine &machine, UINT8 data);
 
219
void neogeo_set_screen_dark(running_machine &machine, UINT8 data);
220
220
READ16_HANDLER( neogeo_paletteram_r );
221
221
WRITE16_HANDLER( neogeo_paletteram_w );
222
222
 
223
 
void neogeo_set_fixed_layer_source(running_machine *machine, UINT8 data);
 
223
void neogeo_set_fixed_layer_source(running_machine &machine, UINT8 data);
224
224
 
225
 
UINT8 neogeo_get_auto_animation_counter(running_machine *machine);
 
225
UINT8 neogeo_get_auto_animation_counter(running_machine &machine);