summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/backfire.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-12 06:07:51 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-12 06:07:51 +0000
commit17e66e39fd2aeb6e083a8567d281df9235b9f2f4 (patch)
treea34dfe5941829bc939167c207f65b5cf7f57078f /src/mame/drivers/backfire.c
parent0ef1e6deb4923b27f4c1d95825e453f565b129a3 (diff)
Clear out remaining global inlines in diexec.h.
Diffstat (limited to 'src/mame/drivers/backfire.c')
-rw-r--r--src/mame/drivers/backfire.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/backfire.c b/src/mame/drivers/backfire.c
index 8ee18b28898..c86f3e6cb7d 100644
--- a/src/mame/drivers/backfire.c
+++ b/src/mame/drivers/backfire.c
@@ -42,7 +42,7 @@ public:
bitmap_ind16 *m_right;
/* devices */
- device_t *m_maincpu;
+ cpu_device *m_maincpu;
device_t *m_deco_tilegen1;
device_t *m_deco_tilegen2;
@@ -433,7 +433,7 @@ static const ymz280b_interface ymz280b_intf =
static INTERRUPT_GEN( deco32_vbl_interrupt )
{
- device_set_input_line(device, ARM_IRQ_LINE, HOLD_LINE);
+ device->execute().set_input_line(ARM_IRQ_LINE, HOLD_LINE);
}
@@ -475,7 +475,7 @@ static MACHINE_START( backfire )
{
backfire_state *state = machine.driver_data<backfire_state>();
- state->m_maincpu = machine.device("maincpu");
+ state->m_maincpu = machine.device<cpu_device>("maincpu");
state->m_deco_tilegen1 = machine.device("tilegen1");
state->m_deco_tilegen2 = machine.device("tilegen2");
state->m_lscreen = machine.device("lscreen");
@@ -701,8 +701,8 @@ READ32_MEMBER(backfire_state::backfire_speedup_r)
//mame_printf_debug( "%08x\n",space.device().safe_pc());
- if (space.device() .safe_pc()== 0xce44) device_spin_until_time(&space.device(), attotime::from_usec(400)); // backfire
- if (space.device().safe_pc() == 0xcee4) device_spin_until_time(&space.device(), attotime::from_usec(400)); // backfirea
+ if (space.device() .safe_pc()== 0xce44) space.device().execute().spin_until_time(attotime::from_usec(400)); // backfire
+ if (space.device().safe_pc() == 0xcee4) space.device().execute().spin_until_time(attotime::from_usec(400)); // backfirea
return m_mainram[0x18/4];
}