How to do this in assembly language?

convert 8 bytes of data stored at BITS in data segment into a single byte. Assume only 0's and 1's are allowed to be stored at data segment BITS. Store result in AX. USE SHIFT AND SET BIT INSTRUCTIONS.