| |||
| Home > ARM and Thumb instructions > Miscellaneous instructions > SWI | |||
SoftWare Interrupt.
SWI{cond}immed
where:
condis an optional condition code (see Conditional execution).
immedis an expression evaluating to an integer in the range:
0 to 224–1 (a 24-bit value) in an ARM instruction
0-255 (an 8-bit value) in a 16-bit Thumb instruction.
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.
is
ignored by the processor. However, it can be retrieved by the exception
handler to determine what service is being requested.immed