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. | |
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 an embedded resource in banked memory by name and loads it into VRAM as a BSAVE
formatted binary. If the resource is not found, or is not a BSAVE
formatted binary, do nothing.
This function is same as the following code:
path | path/file name of the resource. |