Answered step by step
Verified Expert Solution
Link Copied!

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 15: 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 : int16; var y : int16; var z : int16); @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: 12
Gimme Y: 1
Gimme Z: 50
After biggest, X =50, Y =50, Z =50
Gimme X: 100
Gimme Y: 10
Gimme Z: 2
After biggest, X =100, Y =100, Z =100
(Hint: Even though the parameters are listed as int16, HLA expects you will pass them as memory addresses, requiring a full 32-bit value. So you'll have to use extended registers to hold the parameters, not 16-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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Variables and constants are jnown to the entire program

Answered: 1 week ago