Question: 2. Assemble the following program using E dsim51 and then answer questions that follow: ORG 0000H MOV DPTR#X CLR A MOVC A, aA+DPTR MOV R0#Y

 2. Assemble the following program using E dsim51 and then answer

2. Assemble the following program using E dsim51 and then answer questions that follow: ORG 0000H MOV DPTR#X CLR A MOVC A, aA+DPTR MOV R0#Y ADD A, RO MOV DPTR,#ARRAY MOVC A, @A+DPTR MOV 01, A MOV R0, #02 MOV @RO, A SJMP DONE DONE: X: DB 17 Y EQU-15 DB END ARRAY: 1234" Identify the assembler directives in the above code and explain their function. Give the hexadecimal value stored at ROM locations 0010H to 0017H. Explain what is stored there a. b. C. Find the value for DPTR after executing instruction MOV DPTR, #X. Give your answer in d. hexadecimal. What are the contents of A after executing the first MOVC A, aA+DPTR instruction? Explain your answer What are the contents of R0 after executing the MOV R0#Y instruction? Explain your answer. What are the contents of A and PSW after executing the ADD A, RO instruction? Explain your answer What are the contents of RAM location 01 after executing the MOV 01, A instruction? Which RAM location contents will be changed after executing MOV aRO, A instruction? At which ROM location instruction SJMP DONE is stored at (give the starting address). What is the tota e. f. g. h. i. l size of memory needed to store the code above? 2. Assemble the following program using E dsim51 and then answer questions that follow: ORG 0000H MOV DPTR#X CLR A MOVC A, aA+DPTR MOV R0#Y ADD A, RO MOV DPTR,#ARRAY MOVC A, @A+DPTR MOV 01, A MOV R0, #02 MOV @RO, A SJMP DONE DONE: X: DB 17 Y EQU-15 DB END ARRAY: 1234" Identify the assembler directives in the above code and explain their function. Give the hexadecimal value stored at ROM locations 0010H to 0017H. Explain what is stored there a. b. C. Find the value for DPTR after executing instruction MOV DPTR, #X. Give your answer in d. hexadecimal. What are the contents of A after executing the first MOVC A, aA+DPTR instruction? Explain your answer What are the contents of R0 after executing the MOV R0#Y instruction? Explain your answer. What are the contents of A and PSW after executing the ADD A, RO instruction? Explain your answer What are the contents of RAM location 01 after executing the MOV 01, A instruction? Which RAM location contents will be changed after executing MOV aRO, A instruction? At which ROM location instruction SJMP DONE is stored at (give the starting address). What is the tota e. f. g. h. i. l size of memory needed to store the code above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!