Answered step by step
Verified Expert Solution
Question
1 Approved Answer
undefined Lab Assignment Write your first ARM assembly language program MyFirstARM.s. The program will execute the following instructions. You will run the program step by
undefined
Lab Assignment Write your first ARM assembly language program MyFirstARM.s. The program will execute the following instructions. You will run the program step by step, observe and answer the question after each statement. R2, MOV MOV #Ox01 #Ox02 R3, ; R2 = ? ; R3 = ? ; Other examples to move immediate values MOV R5, #0x3210 ; R5 = ? MOVT R5, #Ox7654 ; R5 = ? MOV32 R6, #0x87654321 ; R6 = ? LDR R7, = 0x87654321 ; R7 = ? ADD MOV32 ADDS R1, R2, R3 #OxFFFFFFFF R1, R2, R3 R3, ; R1 = ? ; R3 = ? ; R1 = ? ; specify Condition Code updates ; R1 = ? ; specify Condition Code updates SUBS R1, R2, R3 MOV ADD R4, #OxFFFFFFFF ; R4 = ? R1, R2, R4 ; R1 = ? ; How did that operation affect the flags in CPSR? R1, R2, R4 ; R1 = ? ; Please specify Condition Code updates ; and now what happened to the flags in the CPSR? ADDS MOV ADDS R2, #Ox00000002 R1, R2, R4 MOV MOV ADDS R2, #Ox00000001 R3, #Ox00000002 R1, R2, R3 ; R2 = ? ; R1 = ? ; again, what happened to the flags? ; R2 = ? ; R3 = ? ; R1 = ? ; Add some small numbers again ; and check the flags again...... ; and check the flags again...... ; Add numbers that will create an overflow MOV R2, #OxFFFFFFF ; R2 = ? MOV R3, #Ox7FFFFFFF ; R3 = ? ADDS R1, R2, R3 ; R1 = ? ; Check the flags in the CPSR? You will hand in the following: 1. The screenshot of the program succefully built in Keil uVision. 2. The source code in the file My FirstARM.s with the answersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started