.MODEL SMALL .STACK 100h ;Imports EXTRN GetDec:NEAR EXTRN PutDec:NEAR EXTRN GetHex:NEAR EXTRN PutHex:NEAR .DATA PlusMessage DB '+ Add the last two numbers that have been pushed to the stack', 13, 10, '$' MinusMessage DB '- Subtract the last two numbers that have been pushd to the stack', 13, 10, '$' MultiMessage DB '* Multiply the last two numbers that have been pushed to the stack', 13, 10, '$' QuotientMessage DB '/ Divide the last two numbers that have been pushed to the stack', 13, 10, '$' ModulusMessage DB '% Modulus the last two numbers that have been pushed to the stack', 13, 10, '$' ExponentMessage DB '^ exp(A,B) where A was the first number pushed to the stack', 13, 10, '$' NthRootMessage DB 'n bthRoot(A) where A was the first number pushed to the stack', 13, 10, '$' MaxMessage DB '> Returns the greater of A and b whch have been pushed to the stack', 13, 10, '$' MinMessage DB '< Returns the lesser of A and B which have been pushed to the stack', 13, 10, '$' AbsValueMessage DB '| Gets the absolute value of the last number pushed to the stack', 13, 10, '$' SquareRootMessage DB 'r Gets the square root of the last value pushed to the stack', 13, 10, '$' CubeRootMessage DB 'c Gets the cube root of the last value pushed to the stack', 13, 10, '$' FactorialMessage DB '! Gets the factorial of the last value pushed to the stack', 13, 10, '$' SumMessage DB 's Gets the sum from a to b, where a and b are the last two values on the stack', 13, 10, '$' ProductMessage DB 'p Gets the product from a to b, where a and b are the last two values on the stack', 13, 10, '$' SumSqauresMessage DB 'j Gets the sum of the squares from a to b', 13, 10, '$' OperatorDisplayMessage DB '? Displays all operators and their purpose', 13, 10, '$' PushToStackMessage DB '# Prompt for a value to be pushed to the stack', 13, 10, '$' DisplayStackMessage DB ': Display the contents of the stack', 13, 10 '$' ExtensionMessage DB '\ Used to call special functions', 13, 10, '$' ExitHelpMessage DB '; Exit the program', 13, 10, '$' ;Consider adding an in memory stack for variables