4.8.1. SWI

Software interrupt.

Syntax

SWI{cond} immed_24

where:

cond

is an optional condition code (see Conditional execution).

immed_24

is an expression evaluating to an integer in therange 0-224–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
Copyright © 2000, 2001 ARM Limited. All rights reserved.ARM DUI 0068B
Non-Confidential