DUE DATE: Friday, October 11, 2002, 5:00 pm
(no late submissions accepted)



Summary


This project introduces students to ASCII / binary conversion, hexadecimal number manipulation, logical operations, and user input / output. Your task is to write an assembly language program that would serve as a hexadecimal calculator. The program would allow the user to input a hexadecimal arithmetic or logical expression, perform the requested operation and then display the hexadecimal result. The operations your calculator should support are:

Assume all numbers entered by the user are hexademical. Continue taking input until the user presses ENTER without entering anything. For example:
                $ ./hexcalc
                Enter an expression: 10 - B
                                     = 5
                Enter an expression: A * A
                                     = 64
                Enter an expression: B1 | 5
                                     = B5
                Enter an expression: 
                $




Notes





Extra Credit





What to turn in


Please submit your source code, Makefile, object file, and executable to your submit directory for this class. (located under /home/submit/cs210.) In addition please submit a printout of your source code to the instructor.



Alex Fedosov 2002-10-02