libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
BIOS - INT 17h - System

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)
 

Detailed Description

Macro Definition Documentation

◆ SYS_INT_CASETTE

#define SYS_INT_CASETTE   0x02

Definition at line 39 of file system.h.

◆ SYS_INT_DISPLINE

#define SYS_INT_DISPLINE   0x04

Definition at line 41 of file system.h.

◆ SYS_INT_HBLANK_COUNTUP

#define SYS_INT_HBLANK_COUNTUP   0x07

Definition at line 44 of file system.h.

◆ SYS_INT_KEY

#define SYS_INT_KEY   0x01

Definition at line 38 of file system.h.

◆ SYS_INT_RECEIVEREADY

#define SYS_INT_RECEIVEREADY   0x03

Definition at line 40 of file system.h.

◆ SYS_INT_SENDREADY

#define SYS_INT_SENDREADY   0x00

Definition at line 37 of file system.h.

◆ SYS_INT_TIMER_COUNTUP

#define SYS_INT_TIMER_COUNTUP   0x05

Definition at line 42 of file system.h.

◆ SYS_INT_VBLANK

#define SYS_INT_VBLANK   0x06

Definition at line 43 of file system.h.

Function Documentation

◆ sys_get_awake_key()

uint16_t sys_get_awake_key ( void )

◆ sys_get_sleep_time()

uint16_t sys_get_sleep_time ( void )

◆ sys_get_tick_count()

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.

Returns
uint32_t The current tick count.

◆ sys_get_version()

uint16_t sys_get_version ( void )

◆ sys_interrupt_reset_hook()

void sys_interrupt_reset_hook ( uint8_t id,
intvector_t * old_vector )

◆ sys_interrupt_set_hook()

void sys_interrupt_set_hook ( uint8_t id,
intvector_t * new_vector,
intvector_t * old_vector )

◆ sys_set_awake_key()

void sys_set_awake_key ( uint16_t key)

◆ sys_set_keepalive_int()

void sys_set_keepalive_int ( uint16_t value)

◆ sys_set_sleep_time()

void sys_set_sleep_time ( uint16_t time)

◆ sys_sleep()

void sys_sleep ( void )

◆ sys_wait()

void sys_wait ( uint16_t v)