diff options
author | 2012-09-24 14:43:01 +0000 | |
---|---|---|
committer | 2012-09-24 14:43:01 +0000 | |
commit | 3679f744c291a75d83085fe049f91ddc94b1419a (patch) | |
tree | a6938e296a70ab61e00fbf787dbdc6ebc358c903 /src/mess/machine/pc1251.c | |
parent | ef6f5d0a52b1cbbc1418a248da72122e6958a958 (diff) |
modernization or timer callbacks part 2 (no whatsnew)
Diffstat (limited to 'src/mess/machine/pc1251.c')
-rw-r--r-- | src/mess/machine/pc1251.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mess/machine/pc1251.c b/src/mess/machine/pc1251.c index 7d7841d6ec3..aa7dcace9fa 100644 --- a/src/mess/machine/pc1251.c +++ b/src/mess/machine/pc1251.c @@ -100,10 +100,9 @@ MACHINE_START( pc1251 ) machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x4800); } -static TIMER_CALLBACK(pc1251_power_up) +TIMER_CALLBACK_MEMBER(pc1251_state::pc1251_power_up) { - pc1251_state *state = machine.driver_data<pc1251_state>(); - state->m_power = 0; + m_power = 0; } DRIVER_INIT_MEMBER(pc1251_state,pc1251) @@ -113,6 +112,6 @@ DRIVER_INIT_MEMBER(pc1251_state,pc1251) for (i=0; i<128; i++) gfx[i]=i; m_power = 1; - machine().scheduler().timer_set(attotime::from_seconds(1), FUNC(pc1251_power_up)); + machine().scheduler().timer_set(attotime::from_seconds(1), timer_expired_delegate(FUNC(pc1251_state::pc1251_power_up),this)); } |