Lab 3A Examining The Cy Flag and The Stack
Lab 3A Examining The Cy Flag and The Stack
LAB 3A
WORKSHEET
Name:
Date:
Class:
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
(c)
MOV A,#0F5H
ADD A,#52H
(d)
MOV A,#0FF
INC A
5. Can you change the value of the SP register? If yes, explain why you
would want
to do that.
LAB 3A
EXAMINING THE CY FLAG AND THE STACK
6. The stack uses the same area of RAM as bank ______.