libmsx
C library for MSX
|
APIs for indirect access to banked memory by name. More...
Functions | |
void | resource_copy_to_vmem (const char *path, vmemptr_t dst) |
Copy a resource in banked memory to VRAM. | |
void | resource_bload_s (const char *path) |
Load a BSAVE formatted binary resource in banked memory into VRAM. | |
void | resource_bload (const char *path, void *buf, size_t buf_size) |
Load a BSAVE formatted binary resource in banked memory into RAM. | |
APIs for indirect access to banked memory by name.
Banked memory is treated as a ROM with one large address space, and as storage of named embedded resources.
void resource_copy_to_vmem | ( | const char * | path, |
vmemptr_t | dst ) |
Copy a resource in banked memory to VRAM.
Searches for an embedded resource in banked memory by name and copy it into the specified address in VRAM. If the resource is not found, do nothing.
This function is same as the following code:
path | path/file name of the resource. |
dst | destination address of VRAM. |
void resource_bload_s | ( | const char * | path | ) |
Load a BSAVE
formatted binary resource in banked memory into VRAM.
Searches for embedded resources in banked memory by name and loads them into VRAM as binaries in BSAVE
format.
Do nothing in the following cases
BSAVE
formatted binary.This function is same as the following code:
path | path/file name of the resource. |
void resource_bload | ( | const char * | path, |
void * | buf, | ||
size_t | buf_size ) |
Load a BSAVE
formatted binary resource in banked memory into RAM.
Searches for embedded resources in banked memory by name and loads them into RAM as binaries in BSAVE
format.
Do nothing in the following cases
BSAVE
formatted binary.This function is same as the following code:
path | path/file name of the resource. |
buf | Pointer to the RAM buffer. |
buf_size | Buffer size (i.e., capacity) in bytes. |