Download Cortex-M3/M4F Instruction Set Technical User`s Manual (Rev. A)
Transcript
Miscellaneous Instructions
10.10
SVC
Supervisor Call.
Applies to...
10.10.1
M3
M4
M4F
✓
✓
✓
Syntax
SVC{cond} #imm
where:
cond
Is an optional condition code. See Table 1-2 on page 33.
imm
Is an expression evaluating to an integer in the range 0-255 (8-bit value).
10.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.10.3
Condition Flags
This instruction does not change the flags.
10.10.4
Examples
SVC
0x32
; Supervisor Call (SVC handler can extract the immediate value
; by locating it via the stacked PC).
218
November 04, 2011
Texas Instruments Incorporated