mirror of
https://github.com/cc65/cc65.git
synced 2024-12-21 20:29:24 +00:00
added sleep() implementation
git-svn-id: svn://svn.cc65.org/cc65/trunk@2324 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b499757ee4
commit
bc6dadb3db
@ -10,7 +10,7 @@
|
||||
%.o: %.s
|
||||
@$(AS) -o $@ $(AFLAGS) $<
|
||||
|
||||
C_OBJS = _afailed.o abort.o perror.o
|
||||
C_OBJS = _afailed.o abort.o perror.o sleep.o
|
||||
S_OBJS = copydata.o memcpy.o memset.o zerobss.o
|
||||
|
||||
all: $(C_OBJS) $(S_OBJS)
|
||||
|
23
libsrc/geos/common/sleep.c
Normal file
23
libsrc/geos/common/sleep.c
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* sleep.c
|
||||
*
|
||||
* Maciej 'YTM/Elysium' Witkowiak, 15.08.2003
|
||||
*
|
||||
*/
|
||||
|
||||
#include <geos.h>
|
||||
|
||||
unsigned __fastcall__ sleep (unsigned wait)
|
||||
{
|
||||
char typ;
|
||||
|
||||
if ( (get_tv()) & TV_NTSC ) {
|
||||
typ = 60;
|
||||
} else {
|
||||
typ = 50;
|
||||
}
|
||||
|
||||
Sleep(wait*typ);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user