Multiple choice assembly

To increment both AL, AH registers:

  1. INC AX

  2. INC AL INC AH

  3. both (a) and (b) are correct

  4. both (a) and (b) are wrong

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In 8086 assembly, 'INC AX' increments the 16-bit AX register as a single unit. To increment the 8-bit high (AH) and low (AL) parts individually, you must use separate instructions: 'INC AL' and 'INC AH'. Note that 'INC AX' might produce a different result if AL overflows.