Question: (20 pts, 5 pts each) Below is a RISC-style program with a byte-addressable memory. START=0x80 is the starting memory address of ten consecutive 32-bit
(20 pts, 5 pts each) 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 OxFE if they are interpreted as signed numbers. Please assume 2's complement for negative numbers. Show how you get your results for partial credit. Move Move Load Add LOOP: Load R4, #START R5, #9 RI, (R4) R4, R4, #4 R2, (R4) Branch if [R2][R1] NEXT Move R1, R2 Move R3, R4 R4, R4, #4 R5, R5, #1 LOOP NEXT: Add Subtract Branch_if_[R5]>0 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
