Write an HLA Assembly language program that implements a function which correctly identifies when all four parameters are the same and returns a boolean value in AL (1 when all four values are equal; 0 otherwise). This function should have the following signature:

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 2.5CP
icon
Related questions
Question

Please complete the following tasks to signify your successful completion of Unit 11. It should be the case that the only instructions you need to complete the programs assigned here are the ones I've described so far. Click here to see an HLA Programmer's Reference Guide for the instructions we've learned so far.

Following the Electronic Submission Guidelines, please send me a copy of the .hla file you created for this assignment.

PROGRAM 8: Same
Write an HLA Assembly language program that implements a function which correctly identifies when all four parameters are the same and returns a boolean value in AL (1 when all four values are equal; 0 otherwise). This function should have the following signature:

procedure theSame( w:int16; x:int16; y:int16; z:int16 ); @nodisplay; @noframe;

Shown below is a sample program dialogue.

Feed Me W: 215
Feed Me X: 215
Feed Me Y: 480
Feed Me Z: 91
Not the same.  AL = 0

Feed Me W: 0
Feed Me X: 0
Feed Me Y: 0
Feed Me Z: 0
Same.  AL = 1


Feed Me W: 0
Feed Me X: 221
Feed Me Y: 100
Feed Me Z: 40
Not the same.  AL = 0

View Rubric
 
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage