Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is stack pointer in 8051 microcontroller?

1172


What is non-maskable interrupts?

1211


write the assembly language programming to find the 2's complement for a string of 100 bytes

1111


What is the bus arbitration problem in the 8086 and how can it be resolved?

1103


State an interrupt that is not level sensitive?

1098


What is the width of data bus?

1026


what differences can you state between the hlt and hold states?

1252


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

1044


Name the pin in 8086 microprocessor that is used for selecting mode of operation?

1059


What is special function registers (sfr)?

1188


What is the significance of the control unit in the 8085?

981


What is the purpose of the sign flag in 8085?

971


How clock signal is generated in 8086? What is the maximum internal clock frequency of 8086?

1392


Given a circuit, draw its exact timing response?

3687


Define bit, byte and word.

1345