Question: Write an HLA Assembly language program that implements the following function: procedure ccsize ( ftes : real 3 2 ) ; @nodisplay; @noframe; Your function
Write an HLA Assembly language program that implements the following function:
procedure ccsize ftes : real; @nodisplay; @noframe;
Your function should return in AL the Size value, as shown in the chart above.
Hint: Please review the Sample Programs in Floating Point unit to see how to compare floating point values. You need to use the floating point instruction fcomp as shown on the second example program.
Second Hint: To load integral values into the FPU, you must use FILD, not FLD
gimme FTES:
size returned in AL is: S
gimme FTES:
size returned in AL is: M
gimme FTES:
size returned in AL is: L
gimme FTES:
size returned in AL is: X
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
