What is flag, bus?

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


Please Help Members By Posting Answers For Below Questions

If a1M1× DRAM requires 4 ms for a refresh and has 256 rows to be refreshed, no more than __________ of time must pass before another row is refreshed.

784


Define what the sop does with the help of an example.

563


Mention the types of interrupts that 8085 supports?

585


What are the different types of arithmetic operations that can be performed by the 8085 microprocessor?

675


Write the special functions carried by the general purpose registers of 8086?

615






What are the general purpose registers in 8085?

578


Describe the aaa instruction with the help of an example?

551


What is the purpose of data moving instructions? Name any two such instructions?

580


What are the main differences between the 8085 and 8086 microprocessor?

643


List out addressing modes in mcs-51?

696


What is system bus?

747


What is the maximum size of segment in 8086 microprocessor?

565


What is special purpose registers in 8086?

653


Which interrupt has highest priority?

638


Explain what is the difference between isr & function call?

597