libmsx
C library for MSX
|
Inter-slot Read / Write / Call interface. More...
Functions | |
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). | |
Inter-slot Read / Write / Call interface.
uint8_t msx_RDSLT | ( | uint8_t | slot, |
void * | addr | ||
) |
MSX
BIOS : RDSLT (000CH / MAIN).
Read value from the given address of the given slot.
slot | the slot |
addr | the address to read |
void msx_WRSLT | ( | uint8_t | slot, |
void * | addr, | ||
uint8_t | value | ||
) |
MSX
BIOS : WRSLT (0014H / MAIN).
Write a value to the given address of the given slot.
slot | the slot |
addr | the address to write |
value | a value to be written |
void msx_ENASLT | ( | uint8_t | slot, |
void * | addr | ||
) |
MSX
BIOS : ENASLT (0024H / MAIN).
Switch the page including the given address to the given slot's corresponding page.
slot | the slot |
addr | an address in the page |
uint8_t msx_get_slot | ( | void * | addr | ) |
MSX
Get the current slot of a 16KiB page that including the given address.
addr | the address |
uint8_t msx_RSLREG | ( | void | ) |
MSX
BIOS : RSLREG (0138H / MAIN).
Read value from the primary slot select register.
void msx_WSLREG | ( | uint8_t | value | ) |
MSX
BIOS : WSLREG (013BH / MAIN).
Write a value to the primary slot select register.
value | a value to be written to the primary slot select register. |