Complex sentence: For subtraction, the drum was shifted slightly before it was turned, which moved a different row of cams into position containing the nines' complement of the digits.
Split into simpler sentences: For subtraction, the drum was shifted slightly before it was turned, which moved a different row of cams into position. This "shifted" row contained the nines' complement of the digits.