ISRO Computer Science (CSE) 2015 - Question 61

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

The contents of the flag register after execution of the following program by 8085 microprocessor will be: SUB A; MVI B, (01)H; DCR B; HLT

  • A. (54)H
  • B. (01)H
  • C. (00)H
  • D. (45)H

Answer: A. (54)H

Explanation: S=0, Z=1, AC=0, P=1, CY=0. Flag byte: 01010100 = 54H.

| | All questions of ISRO Computer Science (CSE) 2015