After some arithmetic operation flag register of 8085 microprocessor b...
Flag registers in 808511P is as,
Since, sign bit of 138.1-1. is 1 so, number is negative from the given choice only (c) or (d) gives the sign bit T.
Here, parity bit = 0 means total number of 1 's present is odd
So, only options (d) contains odd nu -r. her of 1's
Here five l's are present.
View all questions of this test
After some arithmetic operation flag register of 8085 microprocessor b...
The flag register in the 8085 microprocessor is a 8-bit register that contains various status flags which are used to indicate the result of arithmetic, logical and conditional operations. The flags in the flag register are:
- Carry Flag (CY): Set if there is a carry out of the most significant bit of the result.
- Zero Flag (Z): Set if the result of the operation is zero.
- Sign Flag (S): Set if the most significant bit of the result is 1.
- Parity Flag (P): Set if the result has even number of 1s.
- Auxiliary Carry Flag (AC): Set if there is a carry out of bit 3 to bit 4.
- Overflow Flag (V): Set if the result of a signed arithmetic operation is too large to be represented in a signed byte.
In this question, the flag register becomes BBH after an arithmetic operation. Let's analyze the possible values of the flags and their corresponding effects on the accumulator.
- Carry Flag (CY): The value of the carry flag is not determined by the given information. It could be either 0 or 1.
- Zero Flag (Z): The value of the zero flag is not determined by the given information. It could be either 0 or 1.
- Sign Flag (S): The sign flag is set if the most significant bit of the result is 1. In this case, the flag register is BBH which means that the most significant bit is 1. Therefore, the sign flag is set.
- Parity Flag (P): The parity flag is set if the result has even number of 1s. The binary representation of BBH is 10111011. Counting the number of 1s, we find that there are 6 ones. Since 6 is an even number, the parity flag is set.
- Auxiliary Carry Flag (AC): The value of the auxiliary carry flag is not determined by the given information. It could be either 0 or 1.
- Overflow Flag (V): The value of the overflow flag is not determined by the given information. It could be either 0 or 1.
So, based on the given information, we can only determine the values of the sign flag (S) and the parity flag (P). The contents of the accumulator after the operation can be any value that satisfies these conditions. The correct answer, option D (B6H), is one possible value that satisfies these conditions.
To make sure you are not studying endlessly, EduRev has designed Electronics and Communication Engineering (ECE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Electronics and Communication Engineering (ECE).