Question

QUESTION 12 Assume the 8051 has yust beeh posered up Reference the below code when onswering The f MOV SP, #5511 MOV R3, #17H MOV R1 #1111 MOVk0, #15H PUSH 3 PUSH PUSH 2 PUSHO Whet is O 54H 05801 ○ 59H the oddness heid by the SP atter the abave code is executed? QUESTION 13 Assume the 8051 hos just been powered up Reference the below code when answering the folliawing questions MOV SP. W55H MOV R3, #17H MOV R2, #12H MOV R1, #11H MOV RO, # 15H PUSH 3 PUSH 1 PUSH 2 PUSH O What value is located on the very top of the stack? O 17H 〇12H O 15H

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q12.

Push Operation first Increments SP by 1 and pushes new value to Stack. Since Values in stack is one byte, the increment value of will be 1 only.

After First Push SP will be 56H, after second 57H, after third 58H, and after fourth Push SP will be 59H.

Correct answer is 59H.

Q13.

On top of the stack is always the value last Pushed to it.

Since here last Push Value is Register 0 value, Top of Stack will have value 15H.

Add a comment
Know the answer?
Add Answer to:
QUESTION 12 Assume the 8051 has yust beeh posered up Reference the below code when onswering...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT