Previous 15994 Revisions Next

r10288 Friday 4th February, 2011 at 18:09:34 UTC by Tafoid
attotime function fix
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r10287r10288
23362336   for(i=0;i<0x10;i++)
23372337      palette_set_color_rgb(machine, i, pal1bit(i >> 1), pal1bit(i >> 2), pal1bit(i >> 0));
23382338
2339   timer_adjust_periodic(state->rtc_timer, attotime_zero, 0, ATTOTIME_IN_SEC(1));
2339   timer_adjust_periodic(state->rtc_timer, attotime::zero, 0, attotime::from_seconds(1));
23402340}
23412341
23422342static MACHINE_START( x1 )
23432343{
23442344   x1_state *state = machine->driver_data<x1_state>();
2345   timer_pulse(machine, ATTOTIME_IN_HZ(240), NULL, 0, keyboard_callback);
2346   timer_pulse(machine, ATTOTIME_IN_HZ(16), NULL, 0, cmt_wind_timer);
2345   timer_pulse(machine, attotime::from_hz(240), NULL, 0, keyboard_callback);
2346   timer_pulse(machine, attotime::from_hz(16), NULL, 0, cmt_wind_timer);
23472347
23482348   /* set up RTC */
23492349   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team