Question: Write an assembly language program that counts the number of '1's in a byte residing in CL register. Store the counted number in DH
Write an assembly language program that counts the number of '1's in a byte residing in CL register. Store the counted number in DH register. Task 3: Bits' manipulation Write an assembly language program to perform the following tasks: a) Set the leftmost 4 bits of AX b) Clear the rightmost 3 bits of AX c) Invert the bits 5,7 and 9 of AX. Task 4: Bits' masking Write an assembly language program that clears any bit (from bit0 to bit15) in AX register, leaving other bits unchanged. Number of bit that is to be cleared is stored in CL register. Hint: If the number 9 is stored in CL register, it means 9th bit of AX should be cleared
Step by Step Solution
There are 3 Steps involved in it
Asse... View full answer
Get step-by-step solutions from verified subject matter experts
