Question: 3. Consider the following assembly-language program. Starting values: R20 = $40, R21 = $80, [$300] = $30, [$301] = $70 (Hint: [$300) means contents of

 3. Consider the following assembly-language program. Starting values: R20 = $40,

3. Consider the following assembly-language program. Starting values: R20 = $40, R21 = $80, [$300] = $30, [$301] = $70 (Hint: [$300) means "contents of memory location $300.) LDS R20, $300 LDS R21, $301 SUB R21, R20 BRNE X1 STS $301, R21 X1: STS $300, R20 DONE:RJMP DONE ; Infinite loop - stop here What values are in R20, R21, memory location $300, and memory location $301 when the program finishes? [R20) = . [R21]= [$300] = [$301) =

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!