ARM Has 7 Operating Modes ARM Has 7 Operating Modes: - Fa F Fa F
ARM Has 7 Operating Modes ARM Has 7 Operating Modes: - Fa F Fa F
ARM Has 7 Operating Modes ARM Has 7 Operating Modes: - Fa F Fa F
|
DES
ñ Modes other than ser mode are called {
|
DES
ñ rocessor enters into rivileged modes nder
specific exception condition
ñ All the exception Modes ses some additional
registers ,to avoid corr pting the ser state
when exception occ rs
ñ SYS ses the same no: of registers as the User
Mode
| |
Ba
ARM 7 ses load and store Architect re.
ñ ÿata has to be moved from memory location to a
central set of registers.
ñ ÿata processing is done and is stored back into
memory.
ñ Register bank contains, general p rpose registers to
hold either data or address.
ñ It is a bank of 16 ser registers R0-
R0-R15 and 2 stat s
registers.
ñ Each of these registers is 32 bit wide.
|
EG STE
S
ñ ARM has 32 bit long registers
|
G
al
ñ uan be divided into three gro ps
Un-banked r0-
Un- r0-r7
Banked r8-
r8-r14
u r15
|
U
--ba
U
ñ Registers to
|
Ba
ñ Registers to
|
Ba
ñ r8 to r12
* two banked physical registers each
*one for FIQ and other for all other modes
*referred to as r8_ sr to r12_ sr & r8_fiq to r12_fiq
ñ r13 & r14
*has six banked registers each
*one in USER & SYS and rest five in each exception modes
*referred to as r13_<mode>/r14_<mode>3for exception modes)
|
G
al
ñ 32 bit registers
32
ñ 15 general p rpose registers are visible at one
time , depending on the c rrent processor mode
,as
ñ
conventionally sed as stack pointer
ñ
conventionally sed as link register to store
the ret rn address for exception/ s b-b-ro tine
call
|
aC
ñ u is accessed as r15
ñ Incremented by 4 bytes for ARM state and 2
bytes for THUMB state
ñ Branch instr ction loads destination address into
the u
ñ uan also be loaded sing data operation
instr ction
|
A
EG STE
S
r0 r0 r0 r0 r0 r0
r1 r1 r1 r1 r1 r1
r2 r2 r2 r2 r2 r2
r3 r3 r3 r3 r3 r3
r4 r4 r4 r4 r4 r4
r5 r5 r5 r5 r5 r5
r6 r6 r6 r6 r6 r6
r7 r7 r7 r7 r7 r7
r8 r8_fiq r8 r8 r8 r8
r9 r9_fiq r9 r9 r9 r9
r10 r10_fiq r10 r10 r10 r10
r11 r11_fiq r11 r11 r11 r11
r12 r12_fiq r12 r12 r12 r12
r13 r13_fiq r13_svc r13_abt r13_irq r13_ nd
r14 r14_fiq r14_svc r14_abt r14_irq r14_ nd
r153u) r153u) r153u) r153u) r153u) r153u)
|
CS
CS
--
a
aa
a
ñ uSR holds
uopies of ALU stat s flags
The c rrent processor mode
Interr pt disable flag
ñ ALU stat s flags are sed to determine whether
conditional instr ctions are exec ted or not
ñ On THUMB capable processors ,the uSR
holds the c rrent processor state
| |
FLAGS
ñ C
la
|
FLAGS
ñ MOÿE BITS 34:0)
(4:0)
10000 User
10001 FIQ
10010 IRQ
10011 S pervisor
10111 Abort
11011 UNÿ
11111 SYS
|
SS
SS
--a
a
a
aa
a
ñ Used to store uSR when an exception is taken
|