Question:medium

The contents of register BL and register AL of 8085 microprocessor are 49H and 3AH, respectively. The contents of AL, the status of carry flag (CF), and sign flag (SF) after executing the instruction SUB AL, BL are:

Show Hint

In 8085 subtraction, check for negative results by evaluating the carry (borrow) and sign (MSB) flags.
Updated On: Feb 11, 2026
  • AL = F1H; CF = 1; SF = 1
  • AL = 0FH; CF = 1; SF = 1
  • AL = F0H; CF = 0; SF = 0
  • AL = 1FH; CF = 1; SF = 1
Show Solution

The Correct Option is A

Solution and Explanation

The SUB AL, BL instruction executes AL = AL − BL. With AL = 3AH and BL = 49H, the subtraction 3AH − 49H results in −0F H, which is F1H in two’s complement hexadecimal. Due to the negative result, a borrow occurs, setting the Carry Flag (CF) to 1. The Sign Flag (SF) is also set to 1, as the most significant bit of the result indicates a negative number.
Was this answer helpful?
0


Questions Asked in CUET (PG) exam