Checking bits of a word.
A word is residing in location 2400H. Write a program to check each bit of the word starting from MSB and fill 16 locations starting from 2500H, with either OOH or FFH depending on the bit, FFH if the bit is 1 and 00H if the bit is 0 . Also count the no. of 1s and 0s (in BCD) in the word and store them respectively at 2600H and 2601H.