Cortex-M0+ Devices Generic User Guide - Keil
Cortex-M0+ Devices Generic User Guide - Keil
Cortex-M0+ Devices Generic User Guide - Keil
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The <strong>Cortex</strong>-<strong>M0+</strong> Instruction Set3.7.10 SVCSupervisor Call.SyntaxSVC #immwhere:imm Is an integer in the range 0-255.OperationThe SVC instruction causes the SVC exception.imm is ignored by the processor. If required, it can be retrieved by the exception handler todetermine what service is being requested.RestrictionsExecuting the SVC instruction, while the current execution priority level is greater than or equalto that of the SVCall handler, results in a fault being generated.Condition flagsThis instruction does not change the flags.ExamplesSVC#0x32 ; Supervisor Call (SVC handler can extract the immediate value; by locating it through EXC_RETURN to identify the correct stack; and thence the stacked PC)ARM DUI 0662A Copyright © 2012 ARM. All rights reserved. 3-46ID041812Non-Confidential