Hi,
is the part number of the CDI 41011? if so, you wire it in the same manner that the data sheet says for the Mx00 ECU's, just changing the ECU pinouts to suit the M1. Just ensure that the the wiring is done correctly so that the CDI is firing in the correct order.
41011 Datasheet