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
You are required to write a maximum of two instructions in assembly to do the following:
- Clear bits 0 and 7 of register AL, i.e. make them 0
- Set bits 3 and 4 of register AL, i.e. make them 1.
- Complement bits 1 and 5 of register AL.
- Keep all other bits in the register AL as is without changing their values.
© Stack Overflow or respective owner