Question: 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,

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
Get step-by-step solutions from verified subject matter experts
