Answer Posted / sushil kumar
flags are used to test data conditions.
For example, after an addition of two numbers, if the sum in
the accumulator id larger
than eight bits, the flip-flop uses to indicate a carry --
called the Carry flag (CY) -- is
set to one. When an arithmetic operation results in zero,
the flip-flop called the
Zero(Z) flag is set to one. The first Figure shows an 8-bit
register, called the flag
register, adjacent to the accumulator. However, it is not
used as a register; five bit
positions out of eight are used to store the outputs of the
five flip-flops. The flags are
stored in the 8-bit register so that the programmer can
examine these flags (data
conditions) by accessing the register through an instruction.
These flags have critical importance in the decision-making
process of the microprocessor.
The conditions (set or reset) of the flags are tested
through the software
instructions. For example, the instruction JC (Jump on
Carry) is implemented to
change the sequence of a program when CY flag is set. The
thorough understanding
of flag is essential in writing assembly language programs.
Is This Answer Correct ? | 36 Yes | 4 No |
Post New Answer View All Answers
How is EPROM generally erased
Define byte?
how does the 8086 differ from the 8085 microprocessor?
Explain the functions of ale in 8085?
What are the flags used in 8086?
What does quality factor mean?
What is the width of data bus?
List some analog modulation techniques.
What does a microprocessor mean? What all does a microprocessor comprise of?
In 8085 which is called as high order / low order register?
Tell the addresses which are bit addressable?
Logic calculations are done in which type of registers?
what are the various flags used in 8085?
How to control and timing circuitry of the 8085.
After a pop instruction where does the stack pointer points?