mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
A few more compile fixups.
This commit is contained in:
parent
20ffe03685
commit
fb3b4622d9
@ -79,10 +79,12 @@ static MACHINE_RESET( atarigt )
|
||||
|
||||
static void cage_irq_callback(running_machine *machine, int reason)
|
||||
{
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
if (reason)
|
||||
atarigen_sound_int_gen(machine->cpu[0]);
|
||||
else
|
||||
atarigen_sound_int_ack_w(machine,0,0,0xffff);
|
||||
atarigen_sound_int_ack_w(space,0,0,0xffff);
|
||||
}
|
||||
|
||||
|
||||
@ -192,7 +194,7 @@ static WRITE32_HANDLER( latch_w )
|
||||
if (ACCESSING_BITS_24_31)
|
||||
{
|
||||
/* bits 13-11 are the MO control bits */
|
||||
atarirle_control_w(space, 0, (data >> 27) & 7);
|
||||
atarirle_control_w(space->machine, 0, (data >> 27) & 7);
|
||||
}
|
||||
|
||||
if (ACCESSING_BITS_16_23)
|
||||
@ -240,7 +242,7 @@ static READ32_HANDLER( sound_data_r )
|
||||
static WRITE32_HANDLER( sound_data_w )
|
||||
{
|
||||
if (ACCESSING_BITS_0_15)
|
||||
cage_control_w(space, data);
|
||||
cage_control_w(space->machine, data);
|
||||
if (ACCESSING_BITS_16_31)
|
||||
main_to_cage_w(data >> 16);
|
||||
}
|
||||
|
@ -360,8 +360,10 @@ static WRITE16_HANDLER( bankselect_w )
|
||||
|
||||
static STATE_POSTLOAD( bankselect_postload )
|
||||
{
|
||||
bankselect_w(machine, 0, bankselect[0], 0xffff);
|
||||
bankselect_w(machine, 1, bankselect[1], 0xffff);
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
bankselect_w(space, 0, bankselect[0], 0xffff);
|
||||
bankselect_w(space, 1, bankselect[1], 0xffff);
|
||||
}
|
||||
|
||||
|
||||
|
@ -127,9 +127,11 @@ static void update_interrupts(running_machine *machine)
|
||||
|
||||
static void scanline_update(const device_config *screen, int scanline)
|
||||
{
|
||||
const address_space *space = cpu_get_address_space(screen->machine->cpu[1], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
/* sound IRQ is on 32V */
|
||||
if (scanline & 32)
|
||||
atarigen_6502_irq_ack_r(screen->machine, 0);
|
||||
atarigen_6502_irq_ack_r(space, 0);
|
||||
else if (!(input_port_read(screen->machine, "FE4000") & 0x40))
|
||||
atarigen_6502_irq_gen(screen->machine->cpu[1]);
|
||||
}
|
||||
|
@ -405,8 +405,10 @@ WRITE16_HANDLER( atarisy1_spriteram_w )
|
||||
|
||||
static TIMER_CALLBACK( int3off_callback )
|
||||
{
|
||||
const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
|
||||
|
||||
/* clear the state */
|
||||
atarigen_scanline_int_ack_w(machine, 0, 0, 0xffff);
|
||||
atarigen_scanline_int_ack_w(space, 0, 0, 0xffff);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user