From: Christian Groessler Date: Thu, 29 May 2014 11:23:45 +0000 (+0200) Subject: provide CLK_TCK and CLOCKS_PER_SEC values for atari5200 X-Git-Tag: V2.15~57^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f54ef4efe489a4ab61cca3dbd4d55ba32914031a;p=cc65 provide CLK_TCK and CLOCKS_PER_SEC values for atari5200 --- diff --git a/include/time.h b/include/time.h index 507d7e29a..3566cb7b5 100644 --- a/include/time.h +++ b/include/time.h @@ -81,6 +81,9 @@ extern struct _timezone { unsigned _clocks_per_sec (void); # define CLK_TCK _clocks_per_sec() # define CLOCKS_PER_SEC _clocks_per_sec() +#elif defined(__ATARI5200__) +# define CLK_TCK 60 /* POSIX */ +# define CLOCKS_PER_SEC 60 /* ANSI */ #elif defined(__ATMOS__) # define CLK_TCK 100 /* POSIX */ # define CLOCKS_PER_SEC 100 /* ANSI */ diff --git a/libsrc/atari5200/clock.s b/libsrc/atari5200/clock.s index d70794b8d..f2ef85b0b 100644 --- a/libsrc/atari5200/clock.s +++ b/libsrc/atari5200/clock.s @@ -5,7 +5,7 @@ ; unsigned _clocks_per_sec (void); ; - .export _clock, __clocks_per_sec + .export _clock .importzp sreg .include "atari5200.inc" @@ -24,12 +24,3 @@ rts .endproc - - -.proc __clocks_per_sec - - ldx #$00 ; Clear high byte of return value - lda #60 - rts - -.endproc