mirror of
https://github.com/cc65/cc65.git
synced 2024-06-15 02:29:32 +00:00
use __clocks_per_sec instead of _clocks_per_sec
This commit is contained in:
parent
f70020a2b8
commit
6ba3deffa4
|
@ -89,8 +89,8 @@ struct tm {
|
||||||
# define CLOCKS_PER_SEC 10
|
# define CLOCKS_PER_SEC 10
|
||||||
#elif defined(__ATARI__) || defined (__LYNX__)
|
#elif defined(__ATARI__) || defined (__LYNX__)
|
||||||
/* Read the clock rate at runtime */
|
/* Read the clock rate at runtime */
|
||||||
clock_t _clocks_per_sec (void);
|
clock_t __clocks_per_sec (void);
|
||||||
# define CLOCKS_PER_SEC _clocks_per_sec()
|
# define CLOCKS_PER_SEC __clocks_per_sec()
|
||||||
#endif
|
#endif
|
||||||
#define CLOCK_REALTIME 0
|
#define CLOCK_REALTIME 0
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
; originally by Ullrich von Bassewitz and Sidney Cadot
|
; originally by Ullrich von Bassewitz and Sidney Cadot
|
||||||
;
|
;
|
||||||
; clock_t clock (void);
|
; clock_t clock (void);
|
||||||
; clock_t _clocks_per_sec (void);
|
; clock_t __clocks_per_sec (void);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _clock, __clocks_per_sec
|
.export _clock, ___clocks_per_sec
|
||||||
.importzp sreg
|
.importzp sreg
|
||||||
|
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
.proc __clocks_per_sec
|
.proc ___clocks_per_sec
|
||||||
|
|
||||||
ldx #$00 ; Clear byte 1 of return value
|
ldx #$00 ; Clear byte 1 of return value
|
||||||
stx sreg ; Clear byte 2 of return value
|
stx sreg ; Clear byte 2 of return value
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
;
|
;
|
||||||
; 2022-03-15, Karri Kaksonen
|
; 2022-03-15, Karri Kaksonen
|
||||||
;
|
;
|
||||||
; clock_t _clocks_per_sec (void);
|
; clock_t __clocks_per_sec (void);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export __clocks_per_sec
|
.export ___clocks_per_sec
|
||||||
|
|
||||||
.import sreg: zp
|
.import sreg: zp
|
||||||
.import _paldetected
|
.import _paldetected
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
; Return the number of clock ticks in one second.
|
; Return the number of clock ticks in one second.
|
||||||
;
|
;
|
||||||
.proc __clocks_per_sec
|
.proc ___clocks_per_sec
|
||||||
|
|
||||||
lda #0
|
lda #0
|
||||||
tax
|
tax
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
; 2012-02-06, Greg King
|
; 2012-02-06, Greg King
|
||||||
;
|
;
|
||||||
; clock_t clock (void);
|
; clock_t clock (void);
|
||||||
; clock_t _clocks_per_sec (void);
|
; clock_t __clocks_per_sec (void);
|
||||||
;
|
;
|
||||||
; clocks_per_sec()'s test-values are based on the numbers in "set_tv.s".
|
; clocks_per_sec()'s test-values are based on the numbers in "set_tv.s".
|
||||||
; If you change the numbers there, then change them here, too.
|
; If you change the numbers there, then change them here, too.
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _clock, __clocks_per_sec, clock_count
|
.export _clock, ___clocks_per_sec, clock_count
|
||||||
.interruptor update_clock, 2 ; (low priority)
|
.interruptor update_clock, 2 ; (low priority)
|
||||||
.constructor init_clock
|
.constructor init_clock
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
; Return the number of clock ticks in one second.
|
; Return the number of clock ticks in one second.
|
||||||
;
|
;
|
||||||
__clocks_per_sec:
|
___clocks_per_sec:
|
||||||
ldx #$00 ; >50, >60, >75
|
ldx #$00 ; >50, >60, >75
|
||||||
ldy PBKUP
|
ldy PBKUP
|
||||||
lda #<75
|
lda #<75
|
||||||
|
|
Loading…
Reference in New Issue
Block a user