Anonymous user
ARM System Calls: Difference between revisions
Jump to navigation
Jump to search
no edit summary
[unchecked revision] | [unchecked revision] |
m (ARM System Calss moved to ARM System Calls) |
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">
asm volatile ("ldr %0, [lr, #-8]" : "=r" (int_vector));
int_vector &= 0xFFFFFF;
|