Question: ARM ASSEMBLY Assignment (ARM7TDMI) Consider the operations described by if (RO is less than Rl) begin swap(RO,R1) end else if (RO equals R1) begin R1
ARM ASSEMBLY Assignment (ARM7TDMI) Consider the operations described by if (RO is less than Rl) begin swap(RO,R1) end else if (RO equals R1) begin R1 = -RO; RO = 0; end else begin R1 = NOT RO; RO=-1; end PROBLEM: Use the following template to solve part 1,2 PART1: The first one is required to use unconditional instructions except branches may be conditional. PART2: Use conditional instructions, but no branches at all. Use the following template. AREA FLASH, CODE, READONLY ARM EXPORT _main ROVAL EQU 0x6 ; different value will be used to test your program RIVAL EQU 0x7 ; assume that numbers are signed numbers __main ; PART 1 MOV RO, #ROVAL ;load test case MOV RI, #RIVAL ... ... endpart1 ; PART 2 MOV RO, #ROVAL ;load test case MOV RI, #RIVAL ... ... endpart2 B endpart2 END ARM ASSEMBLY Assignment (ARM7TDMI) Consider the operations described by if (RO is less than Rl) begin swap(RO,R1) end else if (RO equals R1) begin R1 = -RO; RO = 0; end else begin R1 = NOT RO; RO=-1; end PROBLEM: Use the following template to solve part 1,2 PART1: The first one is required to use unconditional instructions except branches may be conditional. PART2: Use conditional instructions, but no branches at all. Use the following template. AREA FLASH, CODE, READONLY ARM EXPORT _main ROVAL EQU 0x6 ; different value will be used to test your program RIVAL EQU 0x7 ; assume that numbers are signed numbers __main ; PART 1 MOV RO, #ROVAL ;load test case MOV RI, #RIVAL ... ... endpart1 ; PART 2 MOV RO, #ROVAL ;load test case MOV RI, #RIVAL ... ... endpart2 B endpart2 END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
