Problem
Create an HLA Assembly language program that prompts a number from the user. Create and call a function that determines the largest of four passed parameters.
In order to receive full credit, you must define a function, preserve registers, pass arguments on the run-time stack and return the answer in the register AH. To solve this problem, define a function whose signature is:
procedure largest( value1 : int8; value2 : int8; value3 : int8; value4 : int8 ); @nodisplay; @noframe;
Here are some example program dialogues to guide your efforts:
largest( 1, 10, 20, 0 ) equals 20! largest( 20, 0, 1, 10 ) equals 20!.