Write a maximum of two instructions to clear, set and complement some bits in the AL register

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-04-26T18:10:32Z Indexed on 2010/04/26 18:13 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

You are required to write a maximum of two instructions in assembly to do the following:

  1. Clear bits 0 and 7 of register AL, i.e. make them 0
  2. Set bits 3 and 4 of register AL, i.e. make them 1.
  3. Complement bits 1 and 5 of register AL.
  4. Keep all other bits in the register AL as is without changing their values.

© Stack Overflow or respective owner

Related posts about assembly

Related posts about masm