|
Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Go to the documentation of this file.
36 # define __JO_TIME_H__
38 # define JO_TIME_CKS_32_MODE (1)
39 # define JO_TIME_M_CKS (3)
55 (*(
volatile unsigned char *)(addr)) = data;
60 return (*(
volatile unsigned char *)(addr));
65 (*(
volatile unsigned int *)(addr)) = data;
70 return (*(
volatile unsigned int *)(addr));
@ RegisterTCR
Time Control Register (TCR)
Definition: time.h:48
@ RegisterHighFRC
High Free Running Counter Register (FCR), counts up to 255, then iterates FCR Low.
Definition: time.h:44
jo_fixed time_in_seconds
Will increment fixed-point 1 every second since starting jo_fixed_point_time()
static __jo_force_inline unsigned int jo_time_peek_int(jo_time_memory_address addr)
Definition: time.h:68
static __jo_force_inline unsigned char jo_time_peek_byte(jo_time_memory_address addr)
Definition: time.h:58
static __jo_force_inline void jo_time_poke_byte(jo_time_memory_address addr, unsigned char data)
Definition: time.h:53
#define __jo_force_inline
force inline attribute (and prevent Doxygen prototype parsing bug)
Definition: types.h:39
int jo_fixed
Fixed point Q16.16 number.
Definition: types.h:49
static __jo_force_inline void jo_time_set_frc(unsigned char reg)
Definition: time.h:79
jo_time_memory_address
Definition: time.h:42
void jo_fixed_point_time(void)
get ticks count
@ RegisterLowFRC
Low Free Running Counter Register (FCR), increases every time FCR high reaches 256.
Definition: time.h:46
@ RegisterSysClock
System clock register.
Definition: time.h:50
jo_fixed delta_time
Represent the delta time (in fixed-point seconds) between each frame.
static __jo_force_inline int jo_time_get_frc(void)
Get Free Running Counter value.
Definition: time.h:74
static __jo_force_inline void jo_time_poke_int(jo_time_memory_address addr, unsigned int data)
Definition: time.h:63
unsigned int jo_get_ticks(void)
get ticks count