Question: PROGRAM 1 2 : Dog Sizes Based on the table above, dogs are often sized by weight as follows: WeightSizeSize CodeUp to 2 0 lbsXSA
PROGRAM : Dog Sizes
Based on the table above, dogs are often sized by weight as follows:
WeightSizeSize CodeUp to lbsXSA lbsSS lbsMM lbsLL or moreXLX
Write an HLA Assembly language program that implements the following function:
procedure dog weight : real; @nodisplay; @noframe;
Your function should return in AL the Size Code value, as shown in the chart above.
Hint: Please review theSample Programsin 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 declared int integral values into the FPU, you must use FILD, not FLD
gimme you dog's weight in lbs:
size code: A
gimme you dog's weight in lbs:
size code: S
gimme you dog's weight in lbs:
size code: 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
