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 / dsdsdsdsdsds

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In how many groups can the signals of 8085 be classified?

1152


Tell the addresses which are bit addressable?

1125


Given a circuit, draw its exact timing response?

3647


What is the RST for the TRAP?

1305


What are the advantages of memory segmentation in 8086

1076


Explain what is sim and rim instructions?

1115


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

1131


What is a microprocessor?

1071


What is internal structure of 8086?

956


Why the temporary registers w and z are named so I mean we start from a,b,c,d,e then h and l coz h stands for higher bit nd l for lower bit of the address pinted by memory pointer....but wats w and z for?

1063


What is a linker?

1033


Explain the characteristics of the cmp instructions?

1080


Define edge or level sensitive interrupts?

1037


Explain xthl, daa, rc instructions.

1091


Explain the significance of signal?

921