add assembly code for exercise 2, 8 and 9 + c code for exercise 7