3.7.10. SVC

Supervisor Call.

Syntax

SVC #imm

where:

imm

is an integer in the range 0-255.

Operation

The SVC instruction causes the SVC exception.

imm is ignored by the processor. If required, it can be retrieved by the exception handler to determine what service is being requested.

Restrictions

There are no restrictions.

Condition flags

This instruction does not change the flags.

Examples

    SVC  #0x32 ; Supervisor Call (SVC handler can extract the immediate value
               ; by locating it using the stacked PC) 

Copyright © 2009 ARM Limited. All rights reserved.ARM DUI 0497A
Non-Confidential