- Function
Load a relocatable module.
- Header
- Declaration
unsigned char mod_load (struct mod_ctrl* ctrl);
- Description
The function will load a code module into memory and relocate it. The function will return an error code. If
MLOAD_OK
is returned, the outgoing fields in the passedmod_ctrl
struct contain information about the module just loaded. Possible error codes are:
MLOAD_OK
- Module load successfulMLOAD_ERR_READ
- Read errorMLOAD_ERR_HDR
- Header errorMLOAD_ERR_OS
- Wrong operating systemMLOAD_ERR_FMT
- Data format errorMLOAD_ERR_MEM
- Not enough memory- Limits
- The ld65 linker is needed to create relocatable o65 modules for use with this function.
- Availability
cc65
- See also
- Example
None.