C335
Fall 2009
Homework #2
Due 08 September 2009
1. Write an assembly program that prompts the user for two 32-bit signed numbers and returns their sum and their product. The sum and product should be clearly presented with a string that informs the user what the results that appear on the screen are. (i.e. User Dialog)
2. You may earn bonus points if your code also correctly tells the user when their results do not fit in a 32-bit number. e.g. adding a large positive number to another a large positive number, multiplying two large positive numbers, etc.
3. Please make sure that your code is well-commented and easy to follow and understand.
4. Turn in your code for part #1 and, if applicable, for part #2, plus screen shots demonstrating that your program works. Please provide a sufficient number of examples to convince me that you have done thorough testing of your program. You should show some fairly definitive test cases that go above and beyond something as trivial as 0 + 0. Remember, I'm skeptical!