An assembler for the SM