From caae1567b659e5b8abdf72f393276259d44a3dbf Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Sun, 9 Feb 2014 21:15:33 +0000 Subject: [PATCH] (MESS) apple3: a little more cleanup (nw) --- src/mess/includes/apple3.h | 2 -- src/mess/machine/apple3.c | 33 +-------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/src/mess/includes/apple3.h b/src/mess/includes/apple3.h index 3e20b6ead4f..3a6cdde7b5a 100644 --- a/src/mess/includes/apple3.h +++ b/src/mess/includes/apple3.h @@ -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); diff --git a/src/mess/machine/apple3.c b/src/mess/machine/apple3.c index da660643df5..154875cd6be 100644 --- a/src/mess/machine/apple3.c +++ b/src/mess/machine/apple3.c @@ -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();