libmsx
C library for MSX
Loading...
Searching...
No Matches
+ Collaboration diagram for Open LA0 file image.:

Functions

int la0_open_mem (MemFile *mf, const uint8_t *loc, size_t size)
 MSX Open LA0 file stored in ROM / RAM.
 
int la0_open_bmem (MemFile *mf, bmemptr_t loc, uint32_t size)
 MSX Open LA0 file stored in banked memory (MegaROM).
 
int la0_open_resource (MemFile *mf, const char *path)
 MSX Open LA0 file stored as named resources in banked memory (MegaROM).
 

Detailed Description

Function Documentation

◆ la0_open_mem()

int la0_open_mem ( MemFile mf,
const uint8_t *  loc,
size_t  size 
)

MSX Open LA0 file stored in ROM / RAM.

Parameters
mfPointer to a memory-file pointer to be initialized.
locLocation of the LA0 file image.
sizeFile size in bytes.
Returns
Number of songs contained in the LA0 file.

◆ la0_open_bmem()

int la0_open_bmem ( MemFile mf,
bmemptr_t  loc,
uint32_t  size 
)

MSX Open LA0 file stored in banked memory (MegaROM).

Parameters
mfPointer to a memory-file pointer to be initialized.
locLocation of the LA0 file image in banked memory.
sizeFile size in bytes.
Returns
Number of songs contained in the LA0 file.

◆ la0_open_resource()

int la0_open_resource ( MemFile mf,
const char *  path 
)

MSX Open LA0 file stored as named resources in banked memory (MegaROM).

Parameters
mfPointer to a memory-file pointer to be initialized.
pathPath/File name of the resource.
Returns
Number of songs contained in the LA0 file.