Computer Science, asked by rajgpawarrp, 6 months ago

which flag bit is reset, when flag resister content is D4H ​

Answers

Answered by ROCKYCEO
2

Answer:

Explanation:

In 8085 microprocessor, flag register consists of 8 bits and only 5 of them are useful. ... These set of instructions will reset the sign flag to 0 as 40 – 30 is a positive number.

Answered by vishakasaxenasl
1

Answer:

The carry flag bit is reset when the flag register content is D4H.

Explanation:

Flag Bits

8085 is an 8-bit microprocessor that has a total of 8 flag bits out of which only 5 are useful and the rest 3 are undefined.

Each flag bit can be set to either 0 or 1 as per the outcome of the result.

Those five flags are as follows:

1 Carry flag (Cy):

This bit is set to 1 if the result contains a carry.

2. Auxiliary carry flag (AC)

It is useful in BCD addition. It is set to 1 if the result has an auxiliary carry.

3. Sign flag (S)

It is set to 1 if the result is negative otherwise it is zero/

4. Parity flag (P)

If the number of ones in the result is odd it is set to one otherwise zero.

5. Zero flags (Z).

It is set to 1 if the result has all zeroes otherwise it is not set.

#SPJ2

Similar questions