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

How is the 8085 microprocessor different from the previous 8 series microprocessors?

687


Explain all the addressing modes of the 8085 with the help of examples.

619


explain the trap input for the 8085.

597


what are the advantages of modular proramming techniques

572


Which segment is used to store interrupt and subroutine return address registers?

769






Explain maskable and non maskable interrupts?

607


Describe the non-vectored interrupt process?

648


In 8085, power and frequency can be checked by connecting the wire with which pins?

689


What are the widths of data bus (db) and address bus (ab) of 8085?

611


Where the data is transferred in a DMA write operation?

725


Introduction of 8051 microcontroller architecture?

611


Why the lower byte address bus(a0-a7) and data bus (d0-d7) are multiplexed?

1214


What jobs alu of 8085 can perform?

825


What is internal structure of 8086?

591


What are the functions of general purpose registers?

613