MADS: Convert 6 bit palettes to 8 bit values