libmsx
C library for MSX
Loading...
Searching...
No Matches
Inter-slot Read / Write / Call

Inter-slot Read / Write / Call interface. More...

+ Collaboration diagram for Inter-slot Read / Write / Call:

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).
 

Detailed Description

Inter-slot Read / Write / Call interface.

Function Documentation

◆ msx_RDSLT()

uint8_t msx_RDSLT ( uint8_t  slot,
void *  addr 
)

MSX BIOS : RDSLT (000CH / MAIN).

Read value from the given address of the given slot.

Parameters
slotthe slot
addrthe address to read
Returns
value of the address of the slot.
Postcondition
Interrupt is disabled.

◆ msx_WRSLT()

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.

Parameters
slotthe slot
addrthe address to write
valuea value to be written
Postcondition
Interrupt is disabled.

◆ msx_ENASLT()

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.

Parameters
slotthe slot
addran address in the page
Postcondition
Interrupt is disabled.

◆ msx_get_slot()

uint8_t msx_get_slot ( void *  addr)

MSX Get the current slot of a 16KiB page that including the given address.

Parameters
addrthe address
Returns
the current slot of that page.

◆ msx_RSLREG()

uint8_t msx_RSLREG ( void  )

MSX BIOS : RSLREG (0138H / MAIN).

Read value from the primary slot select register.

Returns
value read from the primary slot select register.

◆ msx_WSLREG()

void msx_WSLREG ( uint8_t  value)

MSX BIOS : WSLREG (013BH / MAIN).

Write a value to the primary slot select register.

Parameters
valuea value to be written to the primary slot select register.