From f54ef4efe489a4ab61cca3dbd4d55ba32914031a Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Thu, 29 May 2014 13:23:45 +0200 Subject: [PATCH] provide CLK_TCK and CLOCKS_PER_SEC values for atari5200 --- include/time.h | 3 +++ libsrc/atari5200/clock.s | 11 +---------- 2 files changed, 4 insertions(+), 10 deletions(-) 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 -- 2.39.5