Question: . syntax unified . cpu cortex - m 3 . equ SVC _ NUM, 0 0 6 / / 0 0 6 is the last

.syntax unified
.cpu cortex-m3
.equ SVC_NUM, 006//006 is the last 3 digit of BITS ID
.section .text
.thumb
.global SVC_Handler
SVC_Handler
TST LR, #4
ITE EQ
MRSEQ R0, MSP
MRSNE R0, PSP
MOV R1, R0// R1 holds the address of the SVC instruction
LDRB R0,[R1, #-2]// Load the SVC instruction
AND R0, R0, #0xFF // Mask to extract the SVC number
CMP R0, #SVC_NUM
BNE not_matched
// SVC number matches BITS ID, perform addition
LDR R2,=84006// BITS ID last 5 digits
LDR R3,=84006// BITS ID last 5 digits
ADD R0, R2, R3// Perform addition
B svc_done
not_matched
// SVC number doesn't match BITS ID, perform subtraction
LDR R2,=84006// BITS ID last 5 digits
LDR R3,=84006// BITS ID last 5 digits
SUB R0, R2, R3// Perform subtraction
svc_done
// Return from SVC handler, restoring original stack and returning to application
TST LR, #4
ITE EQ
MRSEQ R1, MSP
MRSNE R1, PSP
LDMIA R1!,{R0-R3}// Restore context
MOV LR, R3// Restore LR
BX LR // Return to the application
I am getting 7 errors on Keil V 5 software, can you help me identify the error. Error message is Q3.s(7): error: A1355U: A Label was found which was in no AREA
".\Objects\Q3.axf" -7 Error(s),0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00
 .syntax unified .cpu cortex-m3 .equ SVC_NUM, 006//006 is the last 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!