S A M P L E Quiz #9 Name ___________________ Honor Code________________________ Section _____ Some portions of the compilation process have been blanked out. Show your ^^^^^^^^^ [will be on the real quiz] understanding of the process by recreating the information in the boxes. -------------------------------------------------------------------------------- Derivation Rules -------------------------------------------------------------------------------- (1) 1 R3: 1 -> 2=3; code(1) = code(3) COPY AX,M(3) COPY M(2),AX MEANING code(1) = code(3) COPY AX,M(3) COPY M(2),AX (2) 2=3; R1: 2 -> R M(2) = R MEANING code(1) = code(3) COPY AX,M(3) COPY R,AX (3) R=3; R5: 3 -> (4 * 5) M(3) = CN1 code(3) = code(4) code(5) COPY AX, M(4) MUL AX, M(5) COPY M(3),AX MEANING code(1) = code(4) code(5) COPY AX, M(4) MUL AX, M(5) COPY CN1,AX COPY AX,CN1 COPY R,AX (4) R=(4 * 5); R2: 4 -> 6 M(4) = M(6) code(4) = //nothing// MEANING code(1) = //nothing// code(5) COPY AX, M(6) MUL AX, M(5) COPY CN1,AX COPY AX,CN1 COPY R,AX (5) R=(6 * 5); R1: 6 -> S M(6) = S MEANING code(1) = code(5) COPY AX, S MUL AX, M(5) COPY CN1,AX COPY AX,CN1 COPY R,AX (6) R=(S * 5); R2: 5 -> 7 M(5) = M(7) code(5) = //nothing// MEANING code(1) = //nothing// COPY AX, S MUL AX, M(7) COPY CN1,AX COPY AX,CN1 COPY R,AX (7) R=(S * 7); R1: 7 -> T M(7) = T MEANING code(1) = COPY AX, S MUL AX, T COPY CN1,AX COPY AX,CN1 COPY R,AX (8) R=(S * T);