libmsx
C library for MSX
Loading...
Searching...
No Matches

C language I/F for MSX BIOS routines. More...

#include <stdint.h>
#include "bios_const.h"
#include "bios_entry.h"
+ Include dependency graph for bios.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BIOS_H
 
#define PAGE_SIZE   (uint16_t)(0x4000)
 MSX Size of a page (16KiB) in bytes.
 
#define PAGE_ADDR(p)   ((void *)(PAGE_SIZE * (p)))
 MSX Constructs base address of the specified page.
 
#define CARTRIDGE_SLOT   (libmsx_initial_slots[1])
 MSX The cartrige slot address.
 

Functions

uint8_t msx_get_version (void)
 MSX Returns MSX system version code.
 
uint8_t msx_get_vsync_frequency (void)
 MSX Returns VSYNC frequency in Hz.
 
uint8_t msx_RDSLT (uint8_t slot, void *addr)
 MSX BIOS : RDSLT (000CH / MAIN).
 
void msx_WRSLT (uint8_t slot, void *addr, uint8_t value) __sdcccall(0)
 MSX BIOS : WRSLT (0014H / MAIN).
 
void msx_ENASLT (uint8_t slot, void *addr)
 MSX BIOS : ENASLT (0024H / MAIN).
 
uint8_t msx_get_slot (void *addr)
 MSX Get the current slot of a 16KiB page that including the given address.
 
uint8_t msx_RSLREG (void)
 MSX BIOS : RSLREG (0138H / MAIN).
 
void msx_WSLREG (uint8_t value)
 MSX BIOS : WSLREG (013BH / MAIN).
 
uint8_t msx_GTSTCK (const uint8_t a)
 MSX BIOS : GTSTCK (00D5H / MAIN)
 
uint8_t msx_GTTRIG (const uint8_t a)
 MSX BIOS : GTTRIG (00D8H / MAIN)
 
void msx_CHGCPU (const uint8_t mode)
 MSXturboR BIOS : CHGCPU (0180H/MAIN)
 
void msx_set_cpu_mode (const uint8_t mode)
 MSX Change the CPU mode.
 
uint8_t msx_GETCPU (void)
 MSXturboR BIOS : GETCPU (0183H/MAIN)
 
uint8_t msx_get_cpu_mode (void)
 MSX Get the CPU mode.
 

Variables

const uint8_t libmsx_initial_slots [4]
 MSX Initial slot addresses for each page.
 

Detailed Description

C language I/F for MSX BIOS routines.

Definition in file bios.h.

Macro Definition Documentation

◆ BIOS_H

#define BIOS_H

Definition at line 24 of file bios.h.