44#define PAGE_SIZE (uint16_t)(0x4000)
52#define PAGE_ADDR(p) ((void *)(PAGE_SIZE * (p)))
62#define CARTRIDGE_SLOT (libmsx_initial_slots[1])
116void msx_WRSLT(uint8_t slot,
void * addr, uint8_t value) __sdcccall(0);
Constant variables in the MSX BIOS ROM.
static const uint8_t MSX_SYSTEM_VERSION_CODE
MSX System version code of MSX BIOS (002DH / MAIN).
static const uint8_t INTERNATIONAL_ID_1
MSX International identifier code #1 of MSX BIOS (002BH / MAIN).
Assembler entry points for MSX BIOS 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.
const uint8_t libmsx_initial_slots[4]
MSX Initial slot addresses for each page.
void msx_set_cpu_mode(const uint8_t mode)
MSX Change the CPU mode.
uint8_t msx_get_cpu_mode(void)
MSX Get the CPU mode.
uint8_t msx_GETCPU(void)
MSXturboR BIOS : GETCPU (0183H/MAIN)
void msx_CHGCPU(const uint8_t mode)
MSXturboR BIOS : CHGCPU (0180H/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_ENASLT(uint8_t slot, void *addr)
MSX BIOS : ENASLT (0024H / MAIN).
void msx_WRSLT(uint8_t slot, void *addr, uint8_t value) __sdcccall(0)
MSX BIOS : WRSLT (0014H / MAIN).
void msx_WSLREG(uint8_t value)
MSX BIOS : WSLREG (013BH / 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_RDSLT(uint8_t slot, void *addr)
MSX BIOS : RDSLT (000CH / MAIN).
uint8_t msx_RSLREG(void)
MSX BIOS : RSLREG (0138H / MAIN).