Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CPS310 - COMPUTER ORGANIZATION II LAB 2 ARC, ARC ASSEMBLY, ARC SIMULATOR PART 4: 1. Please add comment for each line. a. Explain what the
CPS310 - COMPUTER ORGANIZATION II LAB 2 ARC, ARC ASSEMBLY, ARC SIMULATOR PART 4: 1. Please add comment for each line. a. Explain what the program intends to do. b. Assemble the code by hand. 2. Run the program through the simulator 3. What is the content of %r4 after this program is executed? ! Program 4 .begin .org Id main: top: Id subcc be subcc bneg orcc addcc ba andcc addcc addcc 2048 [a], %r1 [b], %r2 [c], %r3 %r4, 3, %ro done %r5, %r6, %ro else %r1, %r2, %r1 %r6, 1, %r6 bottom %r1, %3, %r1 %r5, 1, %r5 %r4, 1, %r4 top %r3, [y] %r15+4, %ro 3000 else: bottom: TO WA ba done: st jmpl .org Oxa0 0x33 s Ox52 end CPS310 - COMPUTER ORGANIZATION II LAB 2 ARC, ARC ASSEMBLY, ARC SIMULATOR PART 4: 1. Please add comment for each line. a. Explain what the program intends to do. b. Assemble the code by hand. 2. Run the program through the simulator 3. What is the content of %r4 after this program is executed? ! Program 4 .begin .org Id main: top: Id subcc be subcc bneg orcc addcc ba andcc addcc addcc 2048 [a], %r1 [b], %r2 [c], %r3 %r4, 3, %ro done %r5, %r6, %ro else %r1, %r2, %r1 %r6, 1, %r6 bottom %r1, %3, %r1 %r5, 1, %r5 %r4, 1, %r4 top %r3, [y] %r15+4, %ro 3000 else: bottom: TO WA ba done: st jmpl .org Oxa0 0x33 s Ox52 end
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started