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 : real32); @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: 9000.7
size returned in AL is: S
gimme FTES: 14851.4
size returned in AL is: M
gimme FTES: 18984.5
size returned in AL is: L
gimme FTES: 20103.33
size returned in AL is: X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!