3.12.12. SVC

Supervisor Call.

Syntax

SVC{cond} #imm

Where:

cond

Is an optional condition code. See Conditional execution.

imm

Is an expression evaluating to an integer in the range 0‑255 (8‑bit value).

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.

Condition flags

This instruction does not change the flags.

Examples

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

Copyright © 2015, 2018 Arm. All rights reserved.ARM DUI 0646C
Non-ConfidentialID121118