Fix some drivers/a* warnings

This commit is contained in:
Couriersud 2008-11-14 20:44:31 +00:00
parent 89258aca9d
commit 39c1409ac6
4 changed files with 9 additions and 7 deletions

View File

@ -116,7 +116,8 @@ static WRITE8_HANDLER( aerofgt_sh_bankswitch_w )
static MACHINE_RESET( aerofgt )
{
aerofgt_sh_bankswitch_w(machine,0,0); /* needed by spinlbrk */
address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
aerofgt_sh_bankswitch_w(space,0,0); /* needed by spinlbrk */
}

View File

@ -591,12 +591,13 @@ static INTERRUPT_GEN( slave_interrupt )
static MACHINE_RESET( airbustr )
{
address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
soundlatch_status = soundlatch2_status = 0;
master_addr = 0xff;
slave_addr = 0xfd;
master_bankswitch_w(machine, 0, 0x02);
slave_bankswitch_w(machine, 0, 0x02);
sound_bankswitch_w(machine, 0, 0x02);
master_bankswitch_w(space, 0, 0x02);
slave_bankswitch_w(space, 0, 0x02);
sound_bankswitch_w(space, 0, 0x02);
}
/* Machine Driver */

View File

@ -131,7 +131,7 @@ static READ8_HANDLER( aquarium_oki_r )
static WRITE8_HANDLER( aquarium_oki_w )
{
logerror("Z80-PC:%04x Writing %04x to the OKI M6295\n",cpu_get_previouspc(space->cpu),aquarium_snd_bitswap(data));
okim6295_data_0_w( space->machine, 0, (aquarium_snd_bitswap(data)) );
okim6295_data_0_w( space, 0, (aquarium_snd_bitswap(data)) );
}
@ -317,7 +317,7 @@ static DRIVER_INIT( aquarium )
}
/* reset the sound bank */
aquarium_z80_bank_w(machine, 0, 0);
aquarium_z80_bank_w(cpu_get_address_space(machine->cpu[1], ADDRESS_SPACE_IO), 0, 0);
}

View File

@ -81,7 +81,7 @@ static MACHINE_RESET( atarig1 )
static WRITE16_HANDLER( mo_control_w )
{
if (ACCESSING_BITS_0_7)
atarirle_control_w(space, 0, data & 7);
atarirle_control_w(space->machine, 0, data & 7);
}