Question: lw 1, 0, count # load reg1 with 5 (uses symbolic address) 1w 2,1,2 # load reg2 with -1 (uses numeric address) start: add 1,1,2

 lw 1, 0, count # load reg1 with 5 (uses symbolic

lw 1, 0, count # load reg1 with 5 (uses symbolic address) 1w 2,1,2 # load reg2 with -1 (uses numeric address) start: add 1,1,2 # decrement regi-could have been addi 1,1,-1 beg 0,1,1 # goto end of program when regl--0 bed 0,0, start # go back to the beginning of the Loop done: halt # end of program count: .fill 5 negl: .fill -1 startAddr: .fill start # will contain the address of start (2)

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!