CPS 104 (Ramm) Fall Semester 1995 Homework Assignment #5 Due Monday, Oct. 9 Write an interactive assembler program that emulates an extremely simple four-function calculator. Also assume that all values will fit into a 32 bit register. To keep things simple, have the syntax such that the operation code is always entered first. Include a "load" or "enter" operation to get something into your "accumulator". After each operation have the contents of the accumulator displayed by a routine named decout (which you could have written to test out your last assignment, but didn't need to since syscall #1 worked fine for decimal). Have your decout routine show negative numbers correctly. Use your decin routine to enter numerical information. Use a modular design with lots of procedures. Make sure that there are plenty of messages each step of the way so that the user of your program knows what to do and what is happening. OPTIONAL: Add one or more additional features such as memory. Allow change to another base such as octal or hexadecimal. September 30, 1995