mirror of
https://github.com/holub/mame
synced 2025-05-20 12:48:53 +03:00
address space compilation fixes.
This commit is contained in:
parent
4d78362d45
commit
e926e13aa3
@ -510,13 +510,13 @@ static READ32_HANDLER( cage_io_status_r )
|
||||
}
|
||||
|
||||
|
||||
UINT16 main_from_cage_r(void)
|
||||
UINT16 main_from_cage_r(const address_space *space)
|
||||
{
|
||||
if (LOG_COMM)
|
||||
logerror("%06X:main read data = %04X\n", cpu_get_pc(Machine->activecpu), soundlatch_word_r(Machine, 0, 0));
|
||||
logerror("%06X:main read data = %04X\n", cpu_get_pc(Machine->activecpu), soundlatch_word_r(space, 0, 0));
|
||||
cage_to_cpu_ready = 0;
|
||||
update_control_lines(Machine);
|
||||
return soundlatch_word_r(Machine, 0, 0xffff);
|
||||
return soundlatch_word_r(space, 0, 0xffff);
|
||||
}
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ void cage_init(running_machine *machine, offs_t speedup);
|
||||
void cage_set_irq_handler(void (*irqhandler)(running_machine *, int));
|
||||
void cage_reset_w(int state);
|
||||
|
||||
UINT16 main_from_cage_r(void);
|
||||
UINT16 main_from_cage_r(const address_space *space);
|
||||
UINT16 cage_control_r(void);
|
||||
void main_to_cage_w(UINT16 data);
|
||||
void cage_control_w(running_machine *machine, UINT16 data);
|
||||
|
@ -234,7 +234,7 @@ static READ32_HANDLER( sound_data_r )
|
||||
if (ACCESSING_BITS_0_15)
|
||||
result |= cage_control_r();
|
||||
if (ACCESSING_BITS_16_31)
|
||||
result |= main_from_cage_r() << 16;
|
||||
result |= main_from_cage_r(space) << 16;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -916,7 +916,7 @@ READ32_HANDLER( midway_ioasic_r )
|
||||
dcs_ack_w();
|
||||
}
|
||||
else if (ioasic.has_cage)
|
||||
result = main_from_cage_r();
|
||||
result = main_from_cage_r(space);
|
||||
else
|
||||
{
|
||||
static UINT16 val = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user