1 |
|
/* |
2 |
|
* timer.cpp - Time Manager emulation |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2001 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
196 |
|
// Find descriptor |
197 |
|
int i = find_desc(tm); |
198 |
|
if (i < 0) { |
199 |
< |
printf("WARNING: RmvTime(%08lx): Descriptor not found\n", tm); |
199 |
> |
printf("WARNING: RmvTime(%08x): Descriptor not found\n", tm); |
200 |
|
return 0; |
201 |
|
} |
202 |
|
|
214 |
|
WriteMacInt32(tm + tmCount, timer_host2mac_time(remaining)); |
215 |
|
} else |
216 |
|
WriteMacInt32(tm + tmCount, 0); |
217 |
< |
D(bug(" tmCount %ld\n", ReadMacInt32(tm + tmCount))); |
217 |
> |
D(bug(" tmCount %d\n", ReadMacInt32(tm + tmCount))); |
218 |
|
|
219 |
|
// Free descriptor |
220 |
|
free_desc(i); |
228 |
|
|
229 |
|
int16 PrimeTime(uint32 tm, int32 time) |
230 |
|
{ |
231 |
< |
D(bug("PrimeTime %08lx, time %ld\n", tm, time)); |
231 |
> |
D(bug("PrimeTime %08x, time %d\n", tm, time)); |
232 |
|
|
233 |
|
// Find descriptor |
234 |
|
int i = find_desc(tm); |