Return # text between hashes is comment # # operations (in order): (), (!, ~, NOT), (&, *, AND), NAND, (^, XOR), (|, +, OR), NOR, =, : # # '=' sets output value to the right side expression # # ':' sets a temporary variable to the right side expression (not visible in final XAND) # # semicolon must be put after each line of code # # example program for a 2-bit adder # # this forces the inputs to be in that order# cin; a0; a1; b0; b1; s0 = a0^b0^cin; c1: a0&b0 | a0&cin | b0&cin; s1 = a1^b1^c1; carryout = a1&b1 | a1&c1 | b1&c1; Click to copy CM2 stringVisible code Order of operations:()! / ~ / NOT& / * / ANDNAND^ / XORXNOR| / + / ORNOR= / :Please remember to put semicolon ( ; ) after every line.