Question: this is the base code, thats all we were given PART 4: 1. Please add comment for each line. a. Explain what the program intends

 this is the base code, thats all we were given PART
this is the base code, thats all we were given

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: Id Id top: 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: ba done: st jmpl .org Ox33 0x52 end 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: Id Id top: 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: ba done: st jmpl .org Ox33 0x52 end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!