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

You are given the following Iss file and the table below showing a column of add

ID: 3702615 • Letter: Y

Question

You are given the following Iss file and the table below showing a column of addresses and SRAM. Fill out the table and designate the stack pointer with the instructions at the top of each column 000080 e004 900601 bfee 000002 efef 000003 bfod 600004 e04f 099005 e055 000006 940e ee6a 009008 9543 909 cfff OUT SPH,R16 DI R16,LOM(RNMEND) OUT SPL,R16 LDI R20,1S LDI R21,5 CALL FUNC NAME INC R20 FUNC NAME 00008a 0445 00000b 5043 e0000c 9400 6010 008000 0000 0000f 9588 ADO R20,821 UBI R20, SUB 1 push P2e push r21 pop r21 pop r2e 099010 934 011 935f 090012 915 800013 914f

Explanation / Answer

(LC      instr.decode) instruction Stack pointer values upon Call statement 00001 bfoe OUT SPL,R16 Stack Pointer Low(SPL)=14 LDI R16,LOW(RAMEND) OUT SPL,R16 LDI R20,15 LDI R21,5 000006 940e 000a CALL FUNC_NAME SP= 000008 000008 9563 INC R20 000009 cffff L1: RJMP L1 00000a 0f45 FUNC_NAME: 00000a 0f45 ADD R20,R21 SUBI R20,3 00000c 940e 0010 CALL SUB_I 00000e NOP SP =00000e RET SUB_I: PUSH r20 PUSH r21 POP r21 000014 9508 POP r20

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