Please do each part the question states. Thanks! Below is a RISC-style program w
ID: 3875709 • Letter: P
Question
Please do each part the question states.
Thanks!
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. (20 pts, 5 each) Move Move Load Add R4, #START R5, #9 R1, (R4) R4, R4, #4 R2, (R4) LOOP: Load Branch_if_IR2RI NEXT Move Move R1, R2 R3, R4 R4, R4, #4 R5, R5, #1 NEXT: Add Subtract Branch_if_IR LOOP The numbers (in hexadecimal) in R1, R2, R3, and R4 are: [R1]= R2 R3] [R4] =Explanation / Answer
Dry run:
R1: -2000
R2: -96
R3: 100
R4: 108
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.