#include #include TIMER timers = {0}; void sleep(unsigned long ms) { timers.time = (ms + 9)/10; while(timers.time) asm("incl %0; decl %0" : "+m" (timers.time)); }