-
-
Save 173210/dc5a2475b24204751f8c70e7084dbfc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline void f(type a0, void *p) | |
{ | |
register type r0 __asm__("r0"); | |
register void *r1 __asm__("r1"); | |
r0 = a0; | |
r1 = p; | |
__asm__ volatile ("blx %0\n" | |
:: "r"(0xC14), "r"(r0), "r"(r1) | |
: "r0", "r1", "r2", "r3", | |
"r4", "r5", "r6", "r7, "r8", "r9", "r10", "lr"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment