Question: #1 1. (12 points in total) Please read the codes below. (S2000) LDAA #02 (S2002) BEQ S04 ($2004) SUBA ($2006) BRA -6 ($2008) SWI 1)
#1 1. (12 points in total) Please read the codes below. (S2000) LDAA #02 (S2002) BEQ S04 ($2004) SUBA ($2006) BRA -6 ($2008) SWI 1) (3 points) How many times in total does the loop above execute? 2) (9 points) Please explain what PC, A, Z and C stand for in the program trace table below and then fill out the table. Feel free to add more rows or leave unused rows blank as needed. Trace Line PC A Z 2002 0 0 2 2004 02 0 0 3 4 02 5 6 7 8 9 10 #1 1. (12 points in total) Please read the codes below. (S2000) LDAA #02 (S2002) BEQ S04 ($2004) SUBA ($2006) BRA -6 ($2008) SWI 1) (3 points) How many times in total does the loop above execute? 2) (9 points) Please explain what PC, A, Z and C stand for in the program trace table below and then fill out the table. Feel free to add more rows or leave unused rows blank as needed. Trace Line PC A Z 2002 0 0 2 2004 02 0 0 3 4 02 5 6 7 8 9 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
