libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
|
Macros | |
#define | SYS_INT_SENDREADY 0x00 |
#define | SYS_INT_KEY 0x01 |
#define | SYS_INT_CASETTE 0x02 |
#define | SYS_INT_RECEIVEREADY 0x03 |
#define | SYS_INT_DISPLINE 0x04 |
#define | SYS_INT_TIMER_COUNTUP 0x05 |
#define | SYS_INT_VBLANK 0x06 |
#define | SYS_INT_HBLANK_COUNTUP 0x07 |
Functions | |
void | sys_interrupt_set_hook (uint8_t id, intvector_t *new_vector, intvector_t *old_vector) |
void | sys_interrupt_reset_hook (uint8_t id, intvector_t *old_vector) |
void | sys_wait (uint16_t v) |
uint32_t | sys_get_tick_count (void) |
Read the current tick count. | |
void | sys_sleep (void) |
void | sys_set_sleep_time (uint16_t time) |
uint16_t | sys_get_sleep_time (void) |
void | sys_set_awake_key (uint16_t key) |
uint16_t | sys_get_awake_key (void) |
void | sys_set_keepalive_int (uint16_t value) |
uint16_t | sys_get_version (void) |
uint16_t sys_get_awake_key | ( | void | ) |
uint16_t sys_get_sleep_time | ( | void | ) |
uint32_t sys_get_tick_count | ( | void | ) |
Read the current tick count.
Under FreyaBIOS, one tick equals one frame. Note that the WonderSwan runs at 75Hz.
uint16_t sys_get_version | ( | void | ) |
void sys_interrupt_reset_hook | ( | uint8_t | id, |
intvector_t * | old_vector ) |
void sys_interrupt_set_hook | ( | uint8_t | id, |
intvector_t * | new_vector, | ||
intvector_t * | old_vector ) |
void sys_set_awake_key | ( | uint16_t | key | ) |
void sys_set_keepalive_int | ( | uint16_t | value | ) |
void sys_set_sleep_time | ( | uint16_t | time | ) |
void sys_sleep | ( | void | ) |
void sys_wait | ( | uint16_t | v | ) |