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:
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:
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
Step by step
Solved in 2 steps with 1 images