3. (6 points) Given the code sequence below, answer the questions that follow: (a) (3 points) Find machine code for the
Posted: Fri Jul 01, 2022 5:53 am
questions that follow: (a) (3 points) Find machine code for the following instructions (you can use the table included with the assignment) and specify location where each instruction is stored in memory: Homework 2 Summer 2022 DJNZ RO, Next ORG 100H Initialize: MOV R4,#OFOH Next: Here: 1 Store: MOV RO, #20 MOV DPTR, #0300H CLR A MOVC A, A+DPTR LCALL Store INC DPTR DJNZ RO, Next SJMP Here ANL A, R4 MOV GR1, A INC RI RET • LCALL Store • MOV RO, #20 Show your work and give your answer in hexadecimal. Due July 3 CpE 363/ Sec. 02 (b) (2 points) What will be the content of the stack immediately after executing instruction "INC RI". Give all relevant stack addresses and their values. (c) (1 points) Using your own words, explain what does the program above do? (do not explain individual instructions)
3. (6 points) Given the code sequence below, answer the