Question: CPS310 - COMPUTER ORGANIZATION II LAB 2 ARC, ARC ASSEMBLY, ARC SIMULATOR PART 3: 1. Please add comment for each line. a. Explain what the




CPS310 - COMPUTER ORGANIZATION II LAB 2 ARC, ARC ASSEMBLY, ARC SIMULATOR PART 3: 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 %r1 after this program is executed? ! Program 3 .begin .org main: Id top: subcc be srl addcc ba done: st jmpl .org 800 2048 [x], %r2 %r1, 4, sro done %r2, 1, %r2 %r1, 1, %r1 top %r3, [y] %r15+4, %ro 3000 .end PART 3: 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 %r1 after this program is executed? ! Program 3 begin .org main: ld top: subcc be srl 2048 [x], %r2 %r1, 4, %ro done %r2, 1, %r2 %r1, 1, %r1 top %r3, [y] %r15+4, %ro 3000 addcc ba done: st jmpl .org 800 .end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
