The Cortex-M4 Instruction Set
ARM DUI 0553A
Copyright © 2010 ARM. All rights reserved.
3-167
ID121610
Non-Confidential
3.12.10 SVC
Supervisor Call.
Syntax
SVC{
cond
} #
imm
where:
cond
Is an optional condition code, see
.
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)