Homework 1: Assembly programming Due date: June 10th, in class. Turn in the hard copy. 1. Consider the following data: vector dw 6h, 7h, 9h, 12h, 73h vectorsize dw 5 resulta dw ? resultb dw ? a) Write a small assembly program which calculates the sum of numbers of the vector. The size of the vector is given in the separate variable vectorsize. Write the result in the variable resulta. b) Write an assembly program which finds the smallest number of the vector. Write the result in the variable resultb. c) Write an assembly program which multiplies all the elements of the vector by a number. If the result would overflow the vector element, write -1 into the vector element. 2. Write a short essay (about 500 words) comparing the Intel instruction set with the instruction set of the MIPS 3000 processor: Here are some of the things you will need to consider: -Which processor has more registers? -Which processor has more instructions? -Which assembly language will allow you to write shorter programs? -Which processor you think is easier to implement and manufacture? Information about the assembly languages: INTEL X86 -use the summary from the class webpage MIPS http://www.xs4all.nl/~vhouten/mipsel/r3000-isa.html