ARM System Calls: Difference between revisions

Jump to navigation Jump to search
no edit summary
[unchecked revision][unchecked revision]
No edit summary
Line 40:
You have probably noticed from the first example "swi 42", that the "swi" instruction takes an integer as an argument. To get this argument from the C code, you do:
<source lang="c">
intuint32_t int_vector = 0;
asm volatile ("ldr %0, [lr, #-8]" : "=r" (int_vector));
int_vector &= 0xFFFFFF;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu