ARM Instruction Reference
4-72
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
4.8.1
SWI
Software interrupt.
Syntax
SWI{
cond
}
immed_24
where:
cond
is an optional condition code (see
Conditional execution
on page 4-4).
immed_24
is an expression evaluating to an integer in the range 0-2
24
–1 (a 24-bit
integer).
Usage
The
SWI
instruction causes a SWI exception. This means that the processor mode
changes to Supervisor, the CPSR is saved to the Supervisor mode SPSR, and execution
branches to the SWI vector (see the
Handling Processor Exceptions
chapter in
ADS
Developer Guide
).
Condition flags
This instruction does not affect the flags.
Architectures
This instruction is available in all versions of the ARM architecture.
Example
SWI 0x123456
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...