mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
Some drivers/c* warning fixes
This commit is contained in:
parent
830b793ad5
commit
96bec61eba
@ -273,8 +273,8 @@ static WRITE16_HANDLER( cave_sound_w )
|
||||
{
|
||||
if (ACCESSING_BITS_0_7)
|
||||
{
|
||||
if (offset) ymz280b_data_0_w (space->machine, offset, data & 0xff);
|
||||
else ymz280b_register_0_w (space->machine, offset, data & 0xff);
|
||||
if (offset) ymz280b_data_0_w (space, offset, data & 0xff);
|
||||
else ymz280b_register_0_w (space, offset, data & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ static WRITE8_HANDLER( chinagat_sub_IRQ_w )
|
||||
|
||||
static WRITE8_HANDLER( chinagat_cpu_sound_cmd_w )
|
||||
{
|
||||
soundlatch_w( space->machine, offset, data );
|
||||
soundlatch_w( space, offset, data );
|
||||
cpu_set_input_line(space->machine->cpu[2], sound_irq, (sound_irq == INPUT_LINE_NMI) ? PULSE_LINE : HOLD_LINE );
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ static INTERRUPT_GEN( panic_interrupt )
|
||||
/* only enabled if game in progress! */
|
||||
|
||||
if ((input_port_read(device->machine, "SYSTEM") & 0xc0) != 0xc0)
|
||||
panic_sound_output_w(device->machine, 17, 1);
|
||||
panic_sound_output_w(cpu_get_address_space(device, ADDRESS_SPACE_PROGRAM), 17, 1);
|
||||
|
||||
cpu_set_input_line_and_vector(device, 0, HOLD_LINE, 0xcf); /* RST 08h */
|
||||
}
|
||||
|
@ -344,9 +344,11 @@ GFXDECODE_END
|
||||
|
||||
static MACHINE_RESET( crballoon )
|
||||
{
|
||||
address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_IO);
|
||||
|
||||
pc3092_reset();
|
||||
port_sound_w(machine, 0, 0);
|
||||
port_music_w(machine, 0, 0);
|
||||
port_sound_w(space, 0, 0);
|
||||
port_music_w(space, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -399,7 +399,7 @@ static READ32_HANDLER(DMA0_r)
|
||||
|
||||
static WRITE32_HANDLER(DMA0_w)
|
||||
{
|
||||
DMA_w(space, 0, data, mem_mask);
|
||||
DMA_w(space->machine, 0, data, mem_mask);
|
||||
}
|
||||
|
||||
static READ32_HANDLER(DMA1_r)
|
||||
@ -409,7 +409,7 @@ static READ32_HANDLER(DMA1_r)
|
||||
|
||||
static WRITE32_HANDLER(DMA1_w)
|
||||
{
|
||||
DMA_w(space, 1, data, mem_mask);
|
||||
DMA_w(space->machine, 1, data, mem_mask);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user