diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2020-09-29 22:55:53 -0400 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2020-09-29 22:55:53 -0400 |
commit | 7c4be3103501672f96191329ae15d899eb1aae4a (patch) | |
tree | a80854618b148babb330a61ad280bfe8c0470745 /src/Runtime/ptmf.c | |
parent | 327f50ac00dd60c264dae63e96ced917d593c651 (diff) | |
parent | 89d7e06a792a5859b3d284257612820feb2980a2 (diff) |
Merge branch 'master' of https://github.com/doldecomp/pokerevo into label_ctors
Diffstat (limited to 'src/Runtime/ptmf.c')
-rw-r--r-- | src/Runtime/ptmf.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Runtime/ptmf.c b/src/Runtime/ptmf.c new file mode 100644 index 0000000..297039c --- /dev/null +++ b/src/Runtime/ptmf.c @@ -0,0 +1,19 @@ +#include "CPlusLib.h" + +#pragma internal on + +asm void __ptmf_scall(...) +{ + nofralloc + lwz r0, 0(r12) + lwz r11, 4(r12) + lwz r12, 8(r12) + add r3, r3, r0 + cmpwi r11, 0 + blt lbl_801C6FF8 + lwzx r12, r3, r12 + lwzx r12, r12, r11 +lbl_801C6FF8: + mtctr r12 + bctr +} |