What are the different flags in 8085?
Answers were Sorted based on User's Feedback
Answer / sumesh nair
S = Sign flag
Z = Zero flag
AC = Auxillary carry flag
P = Parity flag
CY = Carry flag
x* = don't care statement
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / anandkumar m k
8085 Microprocessor has originally 8 flag bits out of which
5 are defined and 3 are undefined.
The 5 defined flags are,
i) Sign Flag
ii) Zero Flag
iii) Parity Flag
iv) Carry Flag
v) Auxillary Flag.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / mankind
There are five types of flags in 8085:
they are
1.Sign Flag ,
2.Carry Flag,
3.Auxillary Carry Flag,
4.Parity Flag &
5.Zero Flag
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / jagadeesh
1.carry flag:-It holds the carry 1 if the result has carry else 0.
2.parity flag:-It holds 1 if the result has carry from LSB to MSB.
3.auxilary flag:-It holds 1 if the reslt has even parity,it holds 0 if result is odd parity
4.zero flag:-It holds 1 if the result is zero
5.sign flag:-It holds 1 if result is negative value.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / mounika
carry flag:if the instuction resulted in carrying from additor ao barrow from either subtraction or comparision then this flag is said to be set or otherwise reset
parity flag:this flag is set only when result operation contain even number of one's and 0's reset if it has odd number of one's
auxilary flag:during the arithmetic operation if the carry transformed from d3 tod4 then thi flag is set other it is reset
zero flag:during the arithmetic operation final result is zero then this flag is set otherwise it is reset
sign flag:the most significant bit is one then sign flag is set otherwise reset
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
Answer / 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 |
Answer / sunil rawat
5 types of flags
1-Carry flag
2-Parity flag
3-Auxillary Carry flag
4-Zero flag
5-sign flag
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sampat pawar
8085 has five flags as follows:
1)Zero Flag[Z]- If result in accumulator is one then this flag is set to one else it is set to zero.
2)Parity[P]-If no. of ones in result are even then this flag is set to one else set to zero.
3)Sign flag[S]- This flag shows the result is positive or negative. If MSB in result is 1 then this flag is set else reset.
4)Carry Flag[CY]-If carry is generated after operation then this flag is set to one else set to reset.
5)Auxiliary Carry[AY]-If carry is generated from third bit to fourth bit then this flag is set to one else it is set to reset.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a coprocessor trap?
Define what the sop does with the help of an example.
Give here your suggestion about microprocessor 8085 and 8086. These 2 processors used in old time. I want to know its program execution time, memory space?
Define the functions of the dx register.
What is segment address in 8086?
What is the bhe signal?
Signal voltage ranges for a logic high and for a logic low in RS-232C standard are
What is meant by priority of interrupt?
how to know weather the controller is 16 bit or 32 bit?
what are the various flags used in 8085?
Intel 8051 follows which architecture?
Define microprocessor?