]> git.sur5r.net Git - cc65/commitdiff
provide CLK_TCK and CLOCKS_PER_SEC values for atari5200
authorChristian Groessler <chris@groessler.org>
Thu, 29 May 2014 11:23:45 +0000 (13:23 +0200)
committerChristian Groessler <chris@groessler.org>
Thu, 29 May 2014 11:23:45 +0000 (13:23 +0200)
include/time.h
libsrc/atari5200/clock.s

index 507d7e29a34828f37ef18926980a602efe593076..3566cb7b5f2a62db5dc31761663479db0a0a9907 100644 (file)
@@ -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 */
index d70794b8d07090f5300b66fa92812b9a51c23cf1..f2ef85b0bece37b7556c82f9765e402c5501decd 100644 (file)
@@ -5,7 +5,7 @@
 ; unsigned _clocks_per_sec (void);
 ;
 
-        .export         _clock, __clocks_per_sec
+        .export         _clock
         .importzp       sreg
 
         .include        "atari5200.inc"
         rts
 
 .endproc
-
-
-.proc   __clocks_per_sec
-
-        ldx     #$00            ; Clear high byte of return value
-        lda     #60
-        rts
-
-.endproc