~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/emu/machine/f3853.c

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
device_t *f3853_device_config::alloc_device(running_machine &machine) const
70
70
{
71
 
    return auto_alloc(&machine, f3853_device(machine, *this));
 
71
    return auto_alloc(machine, f3853_device(machine, *this));
72
72
}
73
73
 
74
74
 
134
134
                }
135
135
        }
136
136
 
137
 
        m_timer = timer_alloc(&m_machine, f3853_timer_callback, (void *)this );
 
137
        m_timer = m_machine.scheduler().timer_alloc(FUNC(f3853_timer_callback), (void *)this );
138
138
 
139
 
        state_save_register_device_item(this, 0, m_high );
140
 
        state_save_register_device_item(this, 0, m_low );
141
 
        state_save_register_device_item(this, 0, m_external_enable );
142
 
        state_save_register_device_item(this, 0, m_timer_enable );
143
 
        state_save_register_device_item(this, 0, m_request_flipflop );
144
 
        state_save_register_device_item(this, 0, m_priority_line );
145
 
        state_save_register_device_item(this, 0, m_external_interrupt_line );
 
139
        save_item(NAME(m_high) );
 
140
        save_item(NAME(m_low) );
 
141
        save_item(NAME(m_external_enable) );
 
142
        save_item(NAME(m_timer_enable) );
 
143
        save_item(NAME(m_request_flipflop) );
 
144
        save_item(NAME(m_priority_line) );
 
145
        save_item(NAME(m_external_interrupt_line) );
146
146
}
147
147
 
148
148
 
160
160
        m_priority_line = FALSE;
161
161
        m_external_interrupt_line = TRUE;
162
162
 
163
 
        timer_enable(m_timer, 0);
 
163
        m_timer->enable(false);
164
164
}
165
165
 
166
166
 
188
188
 
189
189
void f3853_device::f3853_timer_start(UINT8 value)
190
190
{
191
 
        attotime period = (value != 0xff) ? attotime_mul(ATTOTIME_IN_HZ(clock()), m_value_to_cycle[value]*31) : attotime_never;
 
191
        attotime period = (value != 0xff) ? attotime::from_hz(clock()) * (m_value_to_cycle[value]*31) : attotime::never;
192
192
 
193
 
        timer_adjust_oneshot(m_timer, period, 0);
 
193
        m_timer->adjust(period);
194
194
}
195
195
 
196
196