]> git.sur5r.net Git - cc65/blob - libsrc/geos-cbm/common/sleep.c
b1b3750c1a66bb0c2340c0129363f480b7ec12d3
[cc65] / libsrc / geos-cbm / common / sleep.c
1 /*
2  * sleep.c
3  *
4  * Maciej 'YTM/Elysium' Witkowiak, 16.08.2003
5  *
6  */
7
8 #include <geos.h>
9
10 unsigned __fastcall__ sleep (unsigned wait)
11 {
12     char typ;
13
14     if ( (get_tv()) & TV_NTSC ) {
15         typ = 60;
16     } else {
17         typ = 50;
18     }
19
20     Sleep(wait*typ);
21
22     return 0;
23 }