In HLA(High Level Assembly) Program.
#include("stdlib.hhf");

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 16-bit value entered by the value. The value will be used to specify a number of $5 items, $4 items, $3 items, $2 items and $1 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 16 bits are being entered here, a program should expect to read 4 hexadecimal digits.

Below are some sample program dialogues that demonstrate these ideas.
HLA should read in hex format when it read directly into a register.
The overlapping design of the Intel registers helps parse this kind of data field and it can shift the bits around to get the right part into BH or BL.

These are the compilers.
Feed me your order as 4 hex digits: 1000
1 $1 item
0 $2 item
0 $3 item
0 $4 item
0 $5 item
Total Order Costs: $1

Feed me 4 hex digits: 1240
1 $1 item
1 $2 item
1 $3 item
0 $4 item
0 $5 item
Total Order Costs: $6