8085 Microprocessor Flashcards

1
Q

What is the purpose of flags in the microprocessor

A

Control decision making in program execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the role of the Z-Zero Flag

A

Indicates that the result in the accumulator and other registers is zero. In this case it is set to one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain the role of the CY-Carry Flag

A

Set to one when the result of an arithmetic operation results in a carry, i.e the result is greater than 8-bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the role of the S-Sign Flag

A

Used with signed numbers. Set to to one if the bit D7 is 1- (means number is negative)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain the role of the parity flag

A

Set to one if the number of ones is even

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain the role of the auxiliary carry

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the function of the Program Counter

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the function of the stack pointer

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Draw the 8085 flag register

A

*See page 27

How well did you know this?
1
Not at all
2
3
4
5
Perfectly