mirror of
https://github.com/holub/mame
synced 2025-05-22 05:38:52 +03:00
Fix compile errors in Capcom drivers
This commit is contained in:
parent
fb3b4622d9
commit
9e5ad97df1
@ -1638,12 +1638,12 @@ static void cps3_flashmain_w(running_machine *machine, int base, UINT32 offset,
|
||||
|
||||
static WRITE32_HANDLER( cps3_flash1_w )
|
||||
{
|
||||
cps3_flashmain_w(space,0,offset,data,mem_mask);
|
||||
cps3_flashmain_w(space->machine,0,offset,data,mem_mask);
|
||||
}
|
||||
|
||||
static WRITE32_HANDLER( cps3_flash2_w )
|
||||
{
|
||||
cps3_flashmain_w(space,4,offset,data,mem_mask);
|
||||
cps3_flashmain_w(space->machine,4,offset,data,mem_mask);
|
||||
}
|
||||
|
||||
static WRITE32_HANDLER( cram_gfxflash_bank_w )
|
||||
|
@ -145,7 +145,7 @@ static void f1dream_protection_w(const address_space *space)
|
||||
else if ((prevpc == 0x27f8) || (prevpc == 0x511a) || (prevpc == 0x5142) || (prevpc == 0x516a))
|
||||
{
|
||||
/* The main CPU stuffs the byte for the soundlatch into 0xfffffd.*/
|
||||
soundlatch_w(space->machine,2,ram16[0x3ffc/2]);
|
||||
soundlatch_w(space,2,ram16[0x3ffc/2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -243,5 +243,7 @@ VIDEO_UPDATE( bionicc )
|
||||
|
||||
VIDEO_EOF( bionicc )
|
||||
{
|
||||
buffer_spriteram16_w(machine,0,0,0xffff);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram16_w(space,0,0,0xffff);
|
||||
}
|
||||
|
@ -244,5 +244,7 @@ VIDEO_UPDATE( blktiger )
|
||||
|
||||
VIDEO_EOF( blktiger )
|
||||
{
|
||||
buffer_spriteram_w(machine,0,0);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram_w(space, 0, 0);
|
||||
}
|
||||
|
@ -136,5 +136,7 @@ VIDEO_UPDATE( commando )
|
||||
|
||||
VIDEO_EOF( commando )
|
||||
{
|
||||
buffer_spriteram_w(machine, 0, 0);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram_w(space, 0, 0);
|
||||
}
|
||||
|
@ -243,5 +243,7 @@ VIDEO_UPDATE( exedexes )
|
||||
|
||||
VIDEO_EOF( exedexes )
|
||||
{
|
||||
buffer_spriteram_w(machine,0,0);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram_w(space, 0, 0);
|
||||
}
|
||||
|
@ -156,5 +156,7 @@ VIDEO_UPDATE( gng )
|
||||
|
||||
VIDEO_EOF( gng )
|
||||
{
|
||||
buffer_spriteram_w(machine,0,0);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram_w(space,0,0);
|
||||
}
|
||||
|
@ -287,8 +287,10 @@ VIDEO_UPDATE( madgear )
|
||||
|
||||
VIDEO_EOF( lastduel )
|
||||
{
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
/* Spriteram is always 1 frame ahead, suggesting buffering. I can't find
|
||||
a register to control this so I assume it happens automatically
|
||||
every frame at the end of vblank */
|
||||
buffer_spriteram16_w(machine,0,0,0xffff);
|
||||
buffer_spriteram16_w(space,0,0,0xffff);
|
||||
}
|
||||
|
@ -359,5 +359,7 @@ VIDEO_UPDATE( sidearms )
|
||||
|
||||
VIDEO_EOF( sidearms )
|
||||
{
|
||||
buffer_spriteram_w(machine, 0, 0);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram_w(space, 0, 0);
|
||||
}
|
||||
|
@ -170,5 +170,7 @@ VIDEO_UPDATE( srumbler )
|
||||
|
||||
VIDEO_EOF( srumbler )
|
||||
{
|
||||
buffer_spriteram_w(machine,0,0);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram_w(space,0,0);
|
||||
}
|
||||
|
@ -166,5 +166,7 @@ VIDEO_UPDATE( tigeroad )
|
||||
|
||||
VIDEO_EOF( tigeroad )
|
||||
{
|
||||
buffer_spriteram16_w(machine,0,0,0xffff);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
buffer_spriteram16_w(space,0,0,0xffff);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user