1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

provide CLK_TCK and CLOCKS_PER_SEC values for atari5200

This commit is contained in:
Christian Groessler 2014-05-29 13:23:45 +02:00
parent 4286e55453
commit f54ef4efe4
2 changed files with 4 additions and 10 deletions

View 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 */

View File

@ -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