mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 16:33:00 +00:00
provide CLK_TCK and CLOCKS_PER_SEC values for atari5200
This commit is contained in:
parent
4286e55453
commit
f54ef4efe4
@ -81,6 +81,9 @@ extern struct _timezone {
|
|||||||
unsigned _clocks_per_sec (void);
|
unsigned _clocks_per_sec (void);
|
||||||
# define CLK_TCK _clocks_per_sec()
|
# define CLK_TCK _clocks_per_sec()
|
||||||
# define CLOCKS_PER_SEC _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__)
|
#elif defined(__ATMOS__)
|
||||||
# define CLK_TCK 100 /* POSIX */
|
# define CLK_TCK 100 /* POSIX */
|
||||||
# define CLOCKS_PER_SEC 100 /* ANSI */
|
# define CLOCKS_PER_SEC 100 /* ANSI */
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
; unsigned _clocks_per_sec (void);
|
; unsigned _clocks_per_sec (void);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _clock, __clocks_per_sec
|
.export _clock
|
||||||
.importzp sreg
|
.importzp sreg
|
||||||
|
|
||||||
.include "atari5200.inc"
|
.include "atari5200.inc"
|
||||||
@ -24,12 +24,3 @@
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
.proc __clocks_per_sec
|
|
||||||
|
|
||||||
ldx #$00 ; Clear high byte of return value
|
|
||||||
lda #60
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user