Question: . syntax unified . cpu cortex - m 3 AREA . text, CODE, READONLY . equ SVC _ NUM, 0 0 6 / / 0
syntax unified
cpu cortexm
AREA text, CODE, READONLY
equ SVCNUM, is the last digit of BITS ID
thumb
global SVCHandler
SVCHandler
TST lr #
ITE EQ
MRSEQ r MSP Correct register names
MRSNE r PSP
MOV r r R holds the address of the SVC instruction
LDRB rr # Load the SVC instruction
AND r r #xFF Mask to extract the SVC number
CMP r #SVCNUM
BNE notmatched
SVC number matches BITS ID perform addition
LDR r BITS ID last digits
LDR r BITS ID last digits
ADD r r r Perform addition
B svcdone
notmatched
SVC number doesn't match BITS ID perform subtraction
LDR r BITS ID last digits
LDR r BITS ID last digits
SUB r r r Perform subtraction
svcdone
Return from SVC handler, restoring original stack and returning to application
TST lr #
ITE EQ
MRSEQ r MSP
MRSNE r PSP
LDMIA rrr Restore context, note the use of lowercase registers
MOV lr r Restore LR
BX lr Return to the application
In the above code on ARM keil v i am gettng below errors, Can you please help rectify these errors and provide me a error free code to run
Using Compiler V update build folder: C:KeilvARMARMCCBin
Rebuild target 'Target
assembling Qms
Qms: error: AE: Unexpected characters at end of line
Qms: error: AE: Unexpected characters at end of line
Qms: error: AE: Area name missing
Qms: error: AE: Unexpected characters at end of line
Qms: error: AE: Unexpected characters at end of line
Qms: error: AE: Unexpected characters at end of line
Qms: error: AU: A Label was found which was in no AREA
ObjectsQmaxf" Errors Warnings
Target not created.
Build Time Elapsed: ::
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
