Consider the following x86 - assembly language instructions: MOV AL, 153 NEG…

2018

Consider the following x86 - assembly language instructions:

MOV AL, 153

NEG AL

The contents of the destination register AL (in 8 - bit binary notation), the status of Carry Flag (CF) and Sign Flag (SF) after the execution of above instructions, are

  1. A.

    AL = 01100110; CF = 0; SF = 0

  2. B.

    AL = 01100111; CF = 0; SF = 1

  3. C.

    AL = 01100110; CF = 1; SF = 1

  4. D.

    AL = 01100111; CF = 1; SF = 0

Attempted by 39 students.

Show answer & explanation

Correct answer: D

image.png

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor