Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

What is the preferred personality?

Answered: 1 week ago