The STM32 Cortex-M4 instruction set PM0214
190/262 PM0214 Rev 9
3.11.10 SVC
Supervisor Call.
Syntax
SVC{cond} #imm
Where:
• ‘cond’ is an optional condition code, see Conditional execution on page 65.
• ‘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 (SVC handler can extract the immediate
value
; by locating it via the stacked PC)