diff options
author | 2012-09-21 08:25:27 +0000 | |
---|---|---|
committer | 2012-09-21 08:25:27 +0000 | |
commit | 1f9d1cd62092e47bdda6868f6f865ef092656742 (patch) | |
tree | 7dfd5e67f785ac1e612c38804ee868e9ef2290d0 /src/mess/drivers/ami1200.c | |
parent | 81f215089087327e3738b6e9eac2d5ee07b0e6c6 (diff) |
change from device->machine() to space.machine() in device handlers in order to make next changes easier (no whatsnew)
Diffstat (limited to 'src/mess/drivers/ami1200.c')
-rw-r--r-- | src/mess/drivers/ami1200.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mess/drivers/ami1200.c b/src/mess/drivers/ami1200.c index 4b489aecb9e..3435cd5ed41 100644 --- a/src/mess/drivers/ami1200.c +++ b/src/mess/drivers/ami1200.c @@ -85,10 +85,10 @@ WRITE32_MEMBER(ami1200_state::aga_overlay_w) static WRITE8_DEVICE_HANDLER( ami1200_cia_0_porta_w ) { - ami1200_state *state = device->machine().driver_data<ami1200_state>(); + ami1200_state *state = space.machine().driver_data<ami1200_state>(); /* bit 2 = Power Led on Amiga */ - set_led_status(device->machine(), 0, !BIT(data, 1)); + set_led_status(space.machine(), 0, !BIT(data, 1)); handle_cd32_joystick_cia(state, data, mos6526_r(device, space, 2)); } @@ -111,14 +111,14 @@ static WRITE8_DEVICE_HANDLER( ami1200_cia_0_porta_w ) static READ8_DEVICE_HANDLER( ami1200_cia_0_portb_r ) { /* parallel port */ - logerror("%s:CIA0_portb_r\n", device->machine().describe_context()); + logerror("%s:CIA0_portb_r\n", space.machine().describe_context()); return 0xff; } static WRITE8_DEVICE_HANDLER( ami1200_cia_0_portb_w ) { /* parallel port */ - logerror("%s:CIA0_portb_w(%02x)\n", device->machine().describe_context(), data); + logerror("%s:CIA0_portb_w(%02x)\n", space.machine().describe_context(), data); } static ADDRESS_MAP_START( a1200_map, AS_PROGRAM, 32, ami1200_state ) @@ -246,8 +246,8 @@ INPUT_PORTS_END static READ8_DEVICE_HANDLER( a1200_cia_0_portA_r ) { - UINT8 ret = device->machine().root_device().ioport("CIA0PORTA")->read() & 0xc0; /* Gameport 1 and 0 buttons */ - ret |= device->machine().device<amiga_fdc>("fdc")->ciaapra_r(); + UINT8 ret = space.machine().root_device().ioport("CIA0PORTA")->read() & 0xc0; /* Gameport 1 and 0 buttons */ + ret |= space.machine().device<amiga_fdc>("fdc")->ciaapra_r(); return ret; } |