blob: 847cfb094aab32bb6234b57450933160b9734ed6 (
plain)
1
2
3
4
5
6
7
8
9
|
#include <timer.h>
#include <system.h>
TIMER timers = {0};
void sleep(unsigned long ms) {
timers.time = (ms + 9)/10;
while(timers.time) asm("incl %0; decl %0" : "+m" (timers.time));
}
|