The following mem file shows examples of the various opcode from part 0, but is not a real program (i.e. together these statements don't really do much). The individual statements are: line 0 and 1: r0 <- 0 line 2 and 3: r1 <- 1 line 4 and 5: r2 <- 2 line 6 and 7: r0 <- r1 + r2 line 8 and 9: branch if r1 is 0; PC <- PC + 6 line 10 and 11: r0 <- r1 line 12 and 13: r1 <- 4 line 14 and 15: r2 <- 3 line 16 and 17: r0 <- r1 - r2 line 18 and 19: mem[r1] <- r2 line 20 and 21: r0 <- mem[r1] % 0:00000000 1:000010 00 2:00000001 3:000010 01 4:2 5:000010 10 6:01 10 0000 7:000001 00 8:01 10 0110 9:000011 00 10:01 10 0000 11:000100 00 12:00000100 13:000010 01 14:00000011 15:000010 10 16:01 10 0000 17:000111 00 18:01 10 0000 19:000101 00 20:01 10 0000 21:000110 00