Previous 15994 Revisions Next

r9963 Saturday 8th January, 2011 at 13:52:59 UTC by Miodrag Milanović
Handling global variables shared with MAME.
[src/mess/drivers]dc.c jaguar.c saturn.c

src/mess/drivers/jaguar.c
r9962r9963
9393 *  Global variables
9494 *
9595 *************************************/
96
96#ifdef MESS
9797UINT32 *jaguar_shared_ram;
9898UINT32 *jaguar_gpu_ram;
9999UINT32 *jaguar_gpu_clut;
100100UINT32 *jaguar_dsp_ram;
101101UINT32 *jaguar_wave_rom;
102102UINT8 cojag_is_r3000 = FALSE;
103#else
104extern UINT32 *jaguar_shared_ram;
105extern UINT32 *jaguar_gpu_ram;
106extern UINT32 *jaguar_gpu_clut;
107extern UINT32 *jaguar_dsp_ram;
108extern UINT32 *jaguar_wave_rom;
109extern UINT8 cojag_is_r3000;
110#endif
103111
104112
105113
src/mess/drivers/dc.c
r9962r9963
2929
3030#define CPU_CLOCK (200000000)
3131
32#ifdef MESS
33UINT16 actel_id;
34int jvsboard_type;
35#else
36extern UINT16 actel_id;
37extern int jvsboard_type;
38#endif
39
3240// things from mess/machine/dc.c
3341void dreamcast_atapi_init(running_machine *machine);
3442void dreamcast_atapi_reset(running_machine *machine);
r9962r9963
3947
4048static UINT32 *dc_sound_ram;
4149static UINT64 *dc_ram;
42UINT16 actel_id;
43int jvsboard_type;
4450
4551static READ64_HANDLER( dcus_idle_skip_r )
4652{
src/mess/drivers/saturn.c
r9962r9963
190190
191191/**************************************************************************************/
192192/*to be added into a stv Header file,remember to remove all the static...*/
193#ifdef MESS
194UINT32* stv_workram_l;
195UINT32* stv_workram_h;
196int stv_enable_slave_sh2;
197int minit_boost,sinit_boost;
198attotime minit_boost_timeslice, sinit_boost_timeslice;
199#else
200extern UINT32* stv_workram_l;
201extern UINT32* stv_workram_h;
202extern int stv_enable_slave_sh2;
203extern int minit_boost,sinit_boost;
204extern attotime minit_boost_timeslice, sinit_boost_timeslice;
205#endif
193206
194207static UINT8 *smpc_ram;
195208//static void stv_dump_ram(void);
196209
197UINT32* stv_workram_l;
198UINT32* stv_workram_h;
199210//UINT32* stv_backupram;
200211static UINT16* scsp_regs;
201212static UINT16* sound_ram;
r9962r9963
203214static int saturn_region;
204215
205216extern int stv_vblank,stv_hblank;
206int stv_enable_slave_sh2;
207217/*SMPC stuff*/
208218static UINT8 NMI_reset;
209219static void system_reset(void);
r9962r9963
252262static void dma_indirect_lv1(address_space *space); /*DMA level 1 indirect transfer function*/
253263static void dma_indirect_lv2(address_space *space); /*DMA level 2 indirect transfer function*/
254264
255
256int minit_boost,sinit_boost;
257attotime minit_boost_timeslice, sinit_boost_timeslice;
258
259265//static int scanline;
260266
261267/*A-Bus IRQ checks,where they could be located these?*/

Previous 15994 Revisions Next


© 1998-2018 The MESS Team