Datasheet

147
11011B–ATARM–21-Feb-12
SAM3N
10.18.10 SVC
Supervisor Call.
10.18.10.1 Syntax
SVC{cond} #imm
where:
cond is an optional condition code, see “Conditional execution” on page 84.
imm is an expression evaluating to an integer in the range 0-255 (8-bit value).
10.18.10.2 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.
10.18.10.3 Condition flags
This instruction does not change the flags.
10.18.10.4 Examples
SVC 0x32 ; Supervisor Call (SVC handler can extract the immediate value
; by locating it via the stacked PC)