Professional Documents
Culture Documents
Programming The ARM Microprocessor For Embedded Systems: Ajay Dudani
Programming The ARM Microprocessor For Embedded Systems: Ajay Dudani
Ajay Dudani
ajaydudani@gmail.com
Version 0.1
Copyrights
• This document is available under the
terms of Creative Commons Attribution-
NonCommercial-NoDerivs 2.5 License
• In simpler terms, you may
– Reproduce and redistribute this document as-
is for non-commercial use
Source: Wikipedia
• Example:
int a = 10, b;
__asm__ (“mov %0, %1” :
“=r”(b) :
“=r”(a));
Exception
Vector Table SWI Handler
Application 0x00
Reset_Handler
MOV r0, r1 0x04 Undef_Handler
SWI 0x1D 0x08 SWI_Handler ...
ADD r0,r2,r0 0x0c PAbt_Handler ...
DAbt_Handler ...
0x10
0x14 ...
IRQ_Handler MOV PC, R14_svc
0x18 FIQ_Handler
0x1c
RW Data
Application Code
Stack
Heap RAM
ZI data
Initialized RW data
Code aliased
from Code (RO+RW)
0x24000000
Vector table
Registers
Caches
RAM Memory
Hard disk