Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below is a RISC-style program with a byte-addressable memory. START-0x80 is the starting memory address of ten consecutive 32-bit data words: 88, 53, -3, -216,

image text in transcribed

Below is a RISC-style program with a byte-addressable memory. START-0x80 is the starting memory address of ten consecutive 32-bit data words: 88, 53, -3, -216, 62, -9, -105, 16, -2000, and -96 (all in decimal). What are the contents (in hexadecimal) of R1, R2, R3, and R4 after the execution of this program? Note that the comparisons consider signed numbers. For example 0x06 is greater than 0xFE if they are interpreted as signed numbers. Please assume 2's complement for negative numbers. Show how you get your results for partial credit. (20 pts, 5 each) Move Move Load Add R4. #START R5, #9 R1, (R4) R4, R4, #4 R2, (R4) LOOP: Load Branch if [R2>R1] NEXT Move Move R1. R2 R3, R4 R4, R4, #4 R5, R5, #1 NEXT: Add Subtract Branch_if [R5>0 LOOP The numbers (in hexadecimal) in R1, R2, R3, and R4 are [R1] [R2] = [R3] = [R4] =

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions