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 are the different flags in 8085?

Answer Posted / king of alesayi-

Flags Register
FLAG REGISTER
The Status Flags of the 8080 and 8085 are single bits which
indicate the logical conditions that existed as a result of
the execution of the instruction just completed. This
allows instructions following to act accordingly, such as a
branch as a result of two values comparing equal. The flags
are:
ZERO FLAG: This flag is set to a 1 by the instruction just
ending if the A Register contains a result of all 0’s.
Besides the obvious mathematical applications, this is
useful in determining equality in a compare operation (a
value subtracted from a second value with an answer of 0),
or in logical AND or OR operations where the result left
the A Register with no bit set to a 1 (the AND was not
satisfied). If any bits were left set to a 1 in the A
Register, the flag will be reset to a 0 condition.
SIGN FLAG: This flag is set to a 1 by the instruction just
ending if the leftmost, or highest order, bit of the A
Register is set to a 1. The leftmost bit of a byte in
signed arithmetic is the sign bit, and will be 0 if the
value in the lower seven bits is positive, and 1 if the
value is negative.
PARITY FLAG: This flag is set to a 1 by the instruction
just ending if the A Register is left with an even number
of bits set on, i.e., in even parity. If the number of bits
in the A Register is odd, the bit is left off. This may be
useful in I/O operations with serial devices, or anyplace
that error checking is to be done.
CARRY FLAG: This flag is set to a 1 by the instruction just
ending if a carry out of the leftmost bit occurred during
the execution of the instruction. An example would be the
addition of two 8-bit numbers whose sum was 9 bits long.
The 9th bit would be lost, yielding an erroneous answer if
the carry bit was not captured and held by this flag. This
flag is also set if a borrow occurred during a subtraction
or a compare operation.
AUXILIARY CARRY FLAG: This flag is set to a 1 by the
instruction just ending if a carry occurred from bit 3 to
bit 4 of the A Register during the instruction’s execution.
Because of the relationships of decimal in pure BCD to
hexadecimal coding, it is possible to bring BCD values
directly into the A Register and perform mathematical
operations on them. The result, however, will be as if two
hex characters are being processed. If the result must be
returned to the program as BCD rather than as hex, the
Decimal Adjust Accumulator (DAA) instruction can make that
translation; the Auxiliary Carry Flag is provided to assist
in this operation.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are flag registers?

1094


What is the operating frequency of 8085?

1092


Which type of JMP instruction assembles if the distance is 0020h bytes

1377


What is meant by address space? What is meant by address space partitioning?

997


Define the 8085 instruction format and their classification according to word size?

1035


Explain db?

1072


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

980


What is the difference between 8085 microprocessor and a 8086 microprocessor?

1208


State the type of addressing modes supported by the 8086?

992


Explain the purpose of the status register?

1019


How the stack is initialized?

1059


Intel 8051 follows which architecture?

1084


What is 'daisy-chaining' in reference to the 8086?

1138


What are the functions of general purpose registers?

1101


Explain about interrupt driven mode of data transfer

982