Subversion Repositories Kolibri OS

Rev

Rev 9097 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9097 Rev 9123
Line 15... Line 15...
15
        "int $0x40" 
15
        "int $0x40" 
16
        :"=a"(__curtime) 
16
        :"=a"(__curtime) 
17
        :"a"(26),"b"(9)
17
        :"a"(26),"b"(9)
18
        :"memory"
18
        :"memory"
19
    );
19
    );
20
    return (__curtime-__starttime);
20
    return (__curtime-__starttime)*10;
21
}
21
}
Line 22... Line 22...
22
 
22
 
23
void uSDL_Delay(unsigned time){
23
void uSDL_Delay(unsigned ms){
24
    __asm__ __volatile__(
24
  unsigned start = uSDL_GetTicks();
25
        "int $0x40"
25
  do{
26
        ::"a"(5), "b"(time/3)
26
    __asm__("int $0x40" :: "a"(68),"b"(1));
27
        :"memory"
-
 
28
    );
27
  }while (uSDL_GetTicks()-start < ms);