Question: Q2 The following line appears in an LC-3 assembly program: FILL x61 What is the binary representation of this value (In 8 bits): _ What
The following line appears in an LC-3 assembly program: FILL x61 What is the binary representation of this value (In 8 bits): _ What could this fill value represent (circle one answer)? a. the ASCH character for 'a' b. The unsigned decimal integer value 97 c. The signed decimal integer value 97 d. The of the above (that is it could be any of a. through c.) e. none of the above, this is a HEX number The code snippet below contains a flaw. Identify It. The code snippet below contains a flaw. Identify it. i R0 will contain the sum upon completion of SUM_ARRAY i R1 contains address of start of array iR2 contains number of elements in the array SUM ARRAY ST R1 SAVE_R1 ST R2 SAVE_R2 ST R3 SAVE_R3 AND R0 R0 #0 NEXT ADD R2 R2 3-1 More numbers? BRnz DONE LDR R3 R1 #0 ADD R0 R0 R3 Add the new number ADD R1 R1 #1 BRzp NEXT DONE LD R1 SAVE_R1 Restore registers LD R2 SAVE_R2 LD R3 SAVE_R3 RET
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
