Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

10. Which is true for the following data indirect instruction: st X, r16 a. Decr

ID: 3750887 • Letter: 1

Question

10. Which is true for the following data indirect instruction: st X, r16 a. Decrement the value of X then, use X to load the data from data memory to register r b. Decrement the value of X then, store the data in register r16 to data memory location X c. load the data from data memory location X to register r16 and then decrement X 16 Sture the data from register r16 to data memory location X and then decrement x Aziswer 11. Which is true for the following data indirect instruction: Id r16, z a. Increment the value of Z then, use Z as an address to load the data to register r16 b. Increment the value of Z then, store the data in register r16 to memory location Z c. Load the data from memory location Z to register r16 and then increment z d. Store the data from register r16 to memory location Z and then increment Z Answer Z+ 12. Which of the following is a valid way to set a register (e.g. r1) value to 0? a. Idi r1, 0 b. andi ri, o (bitwise operation) c. sub ri, ri d. xor ri, r1 (bitwise operation) Answer: 13. Which of the following is an invalid label name? a. Smidterm b. midterm$ c. midterm1 d. _midterm Answer: 14. Which assembler directive is used to declare constant? a. .def b. .equ c. .include d. .db Answer: 15. Which instruction can be used to add only the contents of two register r16 and r17 and store the data in r17? b. add r16, r17 c. add r17,r16 d. adc r17, r16 Answer:

Explanation / Answer

10) B (predecrement and stored to data memory location x)

11) D (postincrement and stored in register)

12) D

13) B

14) C

15) c

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote