mirror of
https://github.com/holub/mame
synced 2025-04-26 02:07:14 +03:00
(MESS) apple3: a little more cleanup (nw)
This commit is contained in:
parent
513072dd46
commit
caae1567b6
@ -80,8 +80,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER(apple3_c0xx_w);
|
||||
DECLARE_READ8_MEMBER(apple3_00xx_r);
|
||||
DECLARE_WRITE8_MEMBER(apple3_00xx_w);
|
||||
DECLARE_READ8_MEMBER(apple3_indexed_read);
|
||||
DECLARE_WRITE8_MEMBER(apple3_indexed_write);
|
||||
DECLARE_DRIVER_INIT(apple3);
|
||||
DECLARE_MACHINE_RESET(apple3);
|
||||
DECLARE_VIDEO_START(apple3);
|
||||
|
@ -99,7 +99,7 @@ READ8_MEMBER(apple3_state::apple3_c0xx_r)
|
||||
result &= ~0x20;
|
||||
}
|
||||
}
|
||||
printf("modifier = %02x\n", result);
|
||||
// printf("modifier = %02x\n", result);
|
||||
break;
|
||||
|
||||
case 0x10: case 0x11: case 0x12: case 0x13:
|
||||
@ -504,37 +504,6 @@ UINT8 *apple3_state::apple3_get_indexed_addr(offs_t offset)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
READ8_MEMBER(apple3_state::apple3_indexed_read)
|
||||
{
|
||||
UINT8 result;
|
||||
UINT8 *addr;
|
||||
address_space& prog_space = m_maincpu->space(AS_PROGRAM);
|
||||
addr = apple3_get_indexed_addr(offset);
|
||||
if (!addr)
|
||||
result = prog_space.read_byte(offset);
|
||||
else if (addr != (UINT8 *) ~0)
|
||||
result = *addr;
|
||||
else
|
||||
result = memregion("maincpu")->base()[offset % memregion("maincpu")->bytes()];
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
WRITE8_MEMBER(apple3_state::apple3_indexed_write)
|
||||
{
|
||||
UINT8 *addr;
|
||||
address_space& prog_space = m_maincpu->space(AS_PROGRAM);
|
||||
addr = apple3_get_indexed_addr(offset);
|
||||
if (!addr)
|
||||
prog_space.write_byte(offset, data);
|
||||
else if (addr != (UINT8 *) ~0)
|
||||
*addr = data;
|
||||
}
|
||||
|
||||
|
||||
static void apple3_update_drives(device_t *device)
|
||||
{
|
||||
apple3_state *state = device->machine().driver_data<apple3_state>();
|
||||
|
Loading…
Reference in New Issue
Block a user