mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 04:36:01 +00:00
8f88d8fb4d
exitspawn, set_fork and salamander.
32 lines
519 B
ArmAsm
32 lines
519 B
ArmAsm
/*#define IMPORT(name) \
|
|
.global name; \
|
|
name: \
|
|
lis %r11, addr_##name@h; \
|
|
lwz %r11, addr_##name@l(%r11); \
|
|
mtctr %r11; \
|
|
bctr*/
|
|
|
|
#define IMPORT(name) \
|
|
.global name; \
|
|
name: \
|
|
lis %r11, addr_##name@h; \
|
|
ori %r11, %r11, addr_##name@l; \
|
|
lwz %r11, 0(%r11); \
|
|
mtctr %r11; \
|
|
bctr
|
|
|
|
#define IMPORT_BEGIN(lib)
|
|
#define IMPORT_END()
|
|
|
|
.align 2;
|
|
.section ".text";
|
|
|
|
#include "imports.h"
|
|
|
|
.section ".text"
|
|
.globl SC0x25_KernelCopyData
|
|
SC0x25_KernelCopyData:
|
|
li r0, 0x2500
|
|
sc
|
|
blr
|