RetroArch/wiiu/system/stubs_elf.S

32 lines
519 B
ArmAsm
Raw Normal View History

2016-11-22 21:48:44 +00:00
/*#define IMPORT(name) \
.global name; \
name: \
lis %r11, addr_##name@h; \
lwz %r11, addr_##name@l(%r11); \
mtctr %r11; \
bctr*/
2016-11-22 21:48:44 +00:00
#define IMPORT(name) \
.global name; \
name: \
lis %r11, addr_##name@h; \
ori %r11, %r11, addr_##name@l; \
lwz %r11, 0(%r11); \
mtctr %r11; \
2016-11-02 21:06:15 +00:00
bctr
2016-11-22 21:48:44 +00:00
#define IMPORT_BEGIN(lib)
#define IMPORT_END()
.align 2;
.section ".text";
2016-11-22 21:48:44 +00:00
#include "imports.h"
2016-11-02 21:06:15 +00:00
.section ".text"
.globl SC0x25_KernelCopyData
SC0x25_KernelCopyData:
li r0, 0x2500
sc
blr