Test -6/2=-3: 6 [enter] N [enter] 2 [enter] / [enter] == -3
Test -3*2=-6: 3 [enter] N [enter] 2 [enter] * [enter] == -6
Test Factorial(0)=1: 0 [enter] ! [enter] == 1
Test for 2's complement display of binary numbers: 1 [enter] N [enter] MH [enter] == FFFF
1 [enter] N [enter] MB [enter] == 1111111111111111
Test input of Hex & Binary Numbers MB [enter] 1101 [enter] MD == 13 MH [enter] 1B [enter] == 16+11=27
Demonstrate functional run of MP2.IN
MP2 < MP2.IN
Produces final output==FFD4
If there are problems using the file, verify that linefeeds
(Defined as LF) is treated like a space (ignored). The input
file contains CR followed by LF (DOS ASCII Text format). This
can cause problems for the following ReadInput call.
Components
ReadInput(20 pts)
Accepts Decimal Input
Accepts Hex/Binary Input
Accepts mode changes (test uppercase MB, MD, MH)
Ignores comments and linefeeds (LF is defined in constant section)
Uppercase 'L' does not print 'Lockwood'
Reasonable Coding Techniques
Reasonable Comments
Modular (Interchangable with library function)
DispOutput(15 pts)
Displays Decimal
Displays Binary
Displays Hex
Prints Binary/Decimal using a reasonable algorithm.
Reasonable Coding Techniques
Reasonable Comments
Modular (Interchangable with library function)
Calculate(15 pts)
Performs all standard 1- and 2- operand instructions (math & logic)