Skip to content

Instantly share code, notes, and snippets.

@173210
Last active June 25, 2016 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 173210/dc5a2475b24204751f8c70e7084dbfc9 to your computer and use it in GitHub Desktop.
Save 173210/dc5a2475b24204751f8c70e7084dbfc9 to your computer and use it in GitHub Desktop.
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