Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PROGRAM 1 5 : Biggest Write an HLA Assembly language program that implements a function which correctly adjusts each parameter value to hold the largest
PROGRAM : Biggest Write an HLA Assembly language program that implements a function which correctly adjusts each parameter value to hold the largest value passed to the function. This function should have the following signature: procedure biggest var x : int; var y : int; var z : int; @nodisplay; @noframe; After invoking the function, the caller's version of the variables x y and z should all set to the same value which is the biggest value supplied to the function. Your function must use reference parameters, changing the callers version of the variables passed to the function. Here is a sample program dialogue: Gimme X: Gimme Y: Gimme Z: After biggest, X Y Z Gimme X: Gimme Y: Gimme Z: After biggest, X Y Z Hint: Even though the parameters are listed as int HLA expects you will pass them as memory addresses, requiring a full bit value. So you'll have to use extended registers to hold the parameters, not bit registers! Second Hint: Since there are reference parameters, the original main program variable values should be changed after being passed to this function
PROGRAM : Biggest
Write an HLA Assembly language program that implements a function which correctly adjusts each parameter value to hold the largest value passed to the function. This function should have the following signature:
procedure biggest var x : int; var y : int; var z : int; @nodisplay; @noframe;
After invoking the function, the caller's version of the variables x y and z should all set to the same value which is the biggest value supplied to the function. Your function must use reference parameters, changing the callers version of the variables passed to the function. Here is a sample program dialogue:
Gimme X:
Gimme Y:
Gimme Z:
After biggest, X Y Z
Gimme X:
Gimme Y:
Gimme Z:
After biggest, X Y Z
Hint: Even though the parameters are listed as int HLA expects you will pass them as memory addresses, requiring a full bit value. So you'll have to use extended registers to hold the parameters, not bit registers!
Second Hint: Since there are reference parameters, the original main program variable values should be changed after being passed to this function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started