8085 Microprocessor Flashcards
What is the purpose of flags in the microprocessor
Control decision making in program execution
Explain the role of the Z-Zero Flag
Indicates that the result in the accumulator and other registers is zero. In this case it is set to one
Explain the role of the CY-Carry Flag
Set to one when the result of an arithmetic operation results in a carry, i.e the result is greater than 8-bit
Explain the role of the S-Sign Flag
Used with signed numbers. Set to to one if the bit D7 is 1- (means number is negative)
Explain the role of the parity flag
Set to one if the number of ones is even
Explain the role of the auxiliary carry
Set to one if a carry is generated by bit D3 and D4.
Also used for BCD operations. There are no jump instructions associated with this flag
What is the function of the Program Counter
The microprocessor uses PC to sequence execution of instructions
Points to the memory address from which the next instruction (1 byte) is going to be fetched. After the byte is fetched the content of the PC is automatically incremented
What is the function of the stack pointer
Points to the read write memory called the stack. The beginning of the stack is defined by loading a 16 bit address to the stack pointer.
The stack is important when dealing with subroutines (functions)
Draw the 8085 flag register
*See page 27