Programmer’s Model
ARM DDI 0210C
Copyright © 2001, 2004 ARM Limited. All rights reserved.
2-15
Mode bits
Bits M[4:0] determine the processor operating mode as shown in Table 2-2. Not all
combinations of the mode bits define a valid processor mode, so take care to use only
the bit combinations shown.
An illegal value programmed into M[4:0] causes the processor to enter an
unrecoverable state. If this occurs, apply reset.
2.7.3
Reserved bits
The remaining bits in the PSRs are unused, but are reserved. When changing a PSR flag
or control bits, make sure that these reserved bits are not altered. Also, make sure that
your program does not rely on reserved bits containing specific values because future
processors might have these bits set to 1 or 0.
Table 2-2 PSR mode bit values
M[4:0]
Mode
Visible Thumb-state registers
Visible ARM-state registers
10000
User
r0–r7, SP, LR, PC, CPSR
r0–r14, PC, CPSR
10001
FIQ
r0–r7, SP_fiq, LR_fiq, PC, CPSR,
SPSR_fiq
r0–r7, r8_fiq–r14_fiq, PC, CPSR,
SPSR_fiq
10010
IRQ
r0–r7, SP_irq, LR_irq, PC, CPSR,
SPSR_irq
r0–r12, r13_irq, r14_irq, PC, CPSR,
SPSR_irq
10011
Supervisor
r0–r7, SP_svc, LR_svc, PC, CPSR,
SPSR_svc
r0–r12, r13_svc, r14_svc, PC, CPSR,
SPSR_svc
10111
Abort
r0–r7, SP_abt, LR_abt, PC, CPSR,
SPSR_abt
r0–r12, r13_abt, r14_abt, PC, CPSR,
SPSR_abt
11011
Undefined
r0–r7, SP_und, LR_und, PC, CPSR,
SPSR_und
r0–r12, r13_und, r14_und, PC, CPSR,
SPSR_und
11111
System
r0–r7, SP, LR, PC, CPSR
r0–r14, PC, CPSR
Содержание ARM7TDMI
Страница 6: ...Contents vi Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 10: ...List of Tables x Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 14: ...List of Figures xiv Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 46: ...Introduction 1 26 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 120: ...Coprocessor Interface 4 18 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 142: ...Debug Interface 5 22 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 276: ...Differences Between Rev 3a and Rev 4 C 6 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Страница 282: ...Glossary Glossary 6 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...