fix for some naming conflicts between mame and mess (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-11-18 10:03:37 +00:00
parent 9063cb221f
commit 75a9904b0e
3 changed files with 35 additions and 8 deletions

View File

@ -368,6 +368,35 @@ static const pokey_interface pokey_config = {
atari_interrupt_cb
};
READ8_DEVICE_HANDLER(maxaflex_atari_pia_pa_r)
{
return atari_input_disabled(device->machine()) ? 0xFF : input_port_read_safe(device->machine(), "djoy_0_1", 0);
}
READ8_DEVICE_HANDLER(maxaflex_atari_pia_pb_r)
{
return atari_input_disabled(device->machine()) ? 0xFF : input_port_read_safe(device->machine(), "djoy_2_3", 0);
}
const pia6821_interface maxaflex_atarixl_pia_interface =
{
DEVCB_HANDLER(maxaflex_atari_pia_pa_r), /* port A in */
DEVCB_HANDLER(maxaflex_atari_pia_pb_r), /* port B in */
DEVCB_NULL, /* line CA1 in */
DEVCB_NULL, /* line CB1 in */
DEVCB_NULL, /* line CA2 in */
DEVCB_NULL, /* line CB2 in */
DEVCB_NULL, /* port A out */
DEVCB_HANDLER(a600xl_pia_pb_w), /* port B out */
DEVCB_NULL, /* line CA2 out */
DEVCB_LINE(atari_pia_cb2_w), /* port CB2 out */
DEVCB_NULL, /* IRQA */
DEVCB_NULL /* IRQB */
};
static MACHINE_CONFIG_START( a600xl, maxaflex_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M6502, FREQ_17_EXACT)
@ -377,7 +406,7 @@ static MACHINE_CONFIG_START( a600xl, maxaflex_state )
MCFG_CPU_ADD("mcu", M68705, 3579545)
MCFG_CPU_PROGRAM_MAP(mcu_mem)
MCFG_PIA6821_ADD("pia", atarixl_pia_interface)
MCFG_PIA6821_ADD("pia", maxaflex_atarixl_pia_interface)
MCFG_TIMER_ADD("mcu_timer", mcu_timer_proc)
/* video hardware */

View File

@ -22,6 +22,8 @@ extern const pia6821_interface atarixl_pia_interface;
READ8_DEVICE_HANDLER(atari_pia_pa_r);
READ8_DEVICE_HANDLER(atari_pia_pb_r);
WRITE8_DEVICE_HANDLER(a600xl_pia_pb_w);
WRITE_LINE_DEVICE_HANDLER(atari_pia_cb2_w);
/* This is needed in MESS as well for Atari 8bit drivers */
void atari_machine_start(running_machine &machine);
@ -595,9 +597,5 @@ INTERRUPT_GEN( a5200_interrupt );
extern PALETTE_INIT( atari );
/*----------- defined in drivers/maxaflex.c -----------*/
int atari_input_disabled(running_machine &machine);
#endif /* ATARI_H */

View File

@ -64,17 +64,17 @@ void atari_interrupt_cb(device_t *device, int mask)
READ8_DEVICE_HANDLER(atari_pia_pa_r)
{
return atari_input_disabled(device->machine()) ? 0xFF : input_port_read_safe(device->machine(), "djoy_0_1", 0);
return input_port_read_safe(device->machine(), "djoy_0_1", 0);
}
READ8_DEVICE_HANDLER(atari_pia_pb_r)
{
return atari_input_disabled(device->machine()) ? 0xFF : input_port_read_safe(device->machine(), "djoy_2_3", 0);
return input_port_read_safe(device->machine(), "djoy_2_3", 0);
}
WRITE8_DEVICE_HANDLER(a600xl_pia_pb_w) { a600xl_mmu(device->machine(), data); }
static WRITE_LINE_DEVICE_HANDLER(atari_pia_cb2_w) { } // This is used by Floppy drive on Atari 8bits Home Computers
WRITE_LINE_DEVICE_HANDLER(atari_pia_cb2_w) { } // This is used by Floppy drive on Atari 8bits Home Computers
const pia6821_interface atarixl_pia_interface =
{