Data types and functions for accessing banked memory.
uint32_t bmemptr_t
Type of an address of banked memory.
void bmem_open(bmemptr_t loc)
MSX Open Banked Memory accessor.
void bmem_next_segment(void)
Switch to next segment.
const uint8_t * bmem_ptr(void)
Get the internal pointer value of Banked Memory accessor.
bool bmem_is_opened(void)
MSX Tests whether Banked Memory accessor is opened or not.
void bmem_skip(size_t len)
Advance the current position of Banked Memory accessor.
void bmem_ensure(void)
Ensure the internal pointer points the current position.
uint8_t bmem_read_byte(void)
Read an octet from Banked Memory.
size_t bmem_avail(void)
Return the size of remaining bytes in the current segment.
void bmem_close(void)
MSX Close Banked Memory accessor.
void bmem_read_chunk(uint8_t *dst, size_t len)
Read a chunk from Banked Memory.