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

e Which as troe for hre fellowing data Indeect instructions 10 a Decrement the v

ID: 3750870 • Letter: E

Question

e Which as troe for hre fellowing data Indeect instructions 10 a Decrement the value of Xthens, unve X to load the data from data memory to regisber rló b Decrement the value of K then, More the data in register 6 to data memory lecantion x from dona eemory lotation Xto register 16 and then decrement X ure t,ie data irem regver r 16to data memorytacation x and then decrement x 11. Which ls true for the fohewing deta indirect instruction: 16 r16, z s Increment the value of Z then, use 7 as an address to load the dats to register r16 b, ncrement the value of 2 then, store the data in register rl6 to memory location 2 Load the data from memory location 2 to register r16 and then incrementz d. Store the data from register 26 to memory location Z and then increment 2 Answer 12. Which of the following is a vaild way to set a register (e-g. ri) value to 07 a. ldi r1, 0 b. andi r1, 0 (bitwise operation) c sub et, rl d. xor ri, ri (Ibitwise operation 13. Which of the fellowing is an invalid labei name? a. Smidterm b. midterms c. midterm 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 aod 116, r17 add r17, 16 d adc r37.r6 Anawer

Explanation / Answer

10)b
st is store the data

11)c
ld is load the data

12)b. andi r1, 0
0 means all the bit will be initialised to 0

13) a. $midterm is invaid because $ has special meaning and cannot start with $

14)b .equ is directive for constant

15)c add r17, r16



Thanks, PLEASE UPVOTE if helpful