Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11. You are your current self, working on this exam for a microprocessors class and are being asked to write a procedure for a halfword

image text in transcribed
11. You are your current self, working on this exam for a microprocessors class and are being asked to write a procedure for a halfword calculator. There is a label in the .data section called PTRPTR. This address holds another address which does not have a label, but that doesn't matter. Read the data from this second address and do two things. First, extract the upper and lower halfwords and compare them. If the upper half word (bits 31 to 16) is larger, then the procedure should return 1. If the lower halfword is larger, then the procedure should return O. If they are equal, the procedure should sum together all the bytes in both halfwords and return the sum. You must use R4 as a destination register at some point in your procedure. This memory system has little endian organization. Write an algorithm and the ARM code to perform this task. (40 points)

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago