Question: 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 answers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
