Question

1. The CALL and RET instruction. a How many bytes do CALL and RET instructions each have? b With each CALL instruction, is the stack pointer incremented or decremented, and by how much? c With each RET instruction, is the stack pointer incremented or decremented, and by how much?
0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • a. CALL and RET both are 3 bytes instructions where first byte is for OP code and other two bytes are the address of the subroutine you are calling and returning to respectively.
  • b. With each CALL instruction, the stack pointer pushes one entry , hence incremented by 1.
  • c. With each RET, the control is transfered to the poped elemnent by the stack, hence with each RET , the stack pointer is decremented by 1.
Add a comment
Know the answer?
Add Answer to:
1. The CALL and RET instruction. a How many bytes do CALL and RET instructions each...
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