09-02-2013, 10:45 AM
EXAMINING THE CY FLAG AND THE STACK [8051]
1EXAMINING THE CY FLAG.pdf (Size: 7.94 KB / Downloads: 24)
1. Find the value of the CY flag after the execution of the following code.
(a) MOV A,#85H
ADD A,#92H
(b) MOV A,#15H
ADD A,#72H
© MOV A,#0F5H
ADD A,#52H
(d) MOV A,#0FF
INC A
2. Upon reset, what is the value in the SP register?
3. Upon pushing data onto the stack, the SP register is _____________ (decremented,
incremented).
4. Upon popping data from the stack, the SP register is ___________ (decremented,
incremented).
5. Can you change the value of the SP register? If yes, explain why you would want
to do that.