Question: Need help with program in HLA llanguage. I have written most of the code for the program, but of course its missing important steps in
Need help with program in HLA llanguage. I have written most of the code for the program, but of course its missing important steps in the syntax that I need help fixing. Please read the HINTS" in the description of the program since they are essential to understanding the requiremnts of the program. the program requirements are as follows:
PROGRAM : Dollar ValueMenu
Write an HLA Assembly language program that calculates the cost of an order at a local fast food restaurant from its dollar value menu of items.. The cost will be based on a single bit value entered by the value. The value will be used to specify a number of $ items, $ items, $ items, $ items and $ items. The format of this bit field is diagrammed below:
Dollar Menu Item data string
Three bits are being used to specify the number of order items. Total the cost of the order and print this amount.
Since bits are being entered here, your program should expect to read hexadecimal digits.
Below are some sample program dialogues that demonstrate these ideas.
Hint: Do this in small steps, bitbybit. There's alot to it
Another Hint: HLA read in hex format when you read directly into a register. So do that...
Further Hint: The most important part of this assignment is to worked with the packed data field entered by the user to extract the subparts out of it The overlapping design of the Intel registers helps you parse this kind of data field and you can shift the bits around to get the right part into BH or BL for example...
Final Hint: Since we haven't learned how to do multiplication yet, although it's kinda painful, I was expecting that you would perform the multiplication by a looping set of addition instructions
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
