1 swi – ARM VERSION 1.2 User Manual

Page 182

Advertising
background image

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

Advertising