|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for loading and executing overlays More...
Files | |
| file | exec.h |
| Program execution. | |
Functions | |
| void | arch_exec_at (const void *image, uint32_t length, uint32_t address) __noreturn |
| Replace the currently running binary. | |
| void | arch_exec (const void *image, uint32_t length) __noreturn |
| Replace the currently running binary at the default address. | |
API for loading and executing overlays
| void arch_exec | ( | const void * | image, |
| uint32_t | length ) |
Replace the currently running binary at the default address.
This is a convenience function for arch_exec_at() that assumes that the binary has been set up with its starting point at the standard location. In the case of the Dreamcast, this is 0xAC010000 (or 0x8C010000, in P1).
| image | The binary to run (already loaded into RAM). |
| length | The length of the binary. |
| void arch_exec_at | ( | const void * | image, |
| uint32_t | length, | ||
| uint32_t | address ) |
Replace the currently running binary.
This function will replace the currently running binary with whatever is at the specified address. This function does not return.
| image | The binary to run (already loaded into RAM). |
| length | The length of the binary. |
| address | The address of the binary's starting point. |