Question: by using assembly language for 8086 (emultor) as showing in the pictures anything you wants Complete the following tasks for the trial program. 1. Display


Complete the following tasks for the trial program. 1. Display your full name. 2. Display your MMU student ID. 3. Allow user input with four decimal digits in a range of 0000 to 2500. The digits signify energy consumed in a certain month in kWh. 4. Calculate the charges according to the following tariff rate: Tariff Category First 1000 kWh 1001kWh and beyond Rate RM0.01/kWh RM0.20/kWh 5. Display the bill amount. EXAMPLE 1 - OX emulator screen (65x9 chars) Sendentoh: S12345678 Energy usage in kWh (enter decimal digits 2000 to 2500): 1500 Bill amount : RM110.00 che screen c her Calculation: Bill amount = 1000 (1 cent) +500 (20 cents) = 11000 cents = RM110.00 EXAMPLE 2 emulator screen (63x7 chars) SemeentohB: Sn2345678 Energy usage in kWh (enter decimal digits 0908 to 2500): 2041 Bill amount : RM218.20 clear screen charge fort Calculation: Bill amount = 1000 (1 cent) + 1041 (20 cents) = 21820 cents = RM218.20 EXAMPLE 3 semulator screen (6318 chars) Studenth: Sn2345678 Energy usage in kWh (enter decimal digits 2000 to 2500): 8385 Bill amount : RM3.85 clear screen charge font Calculation: Bill amount = 385 (1 cent) = 385 cents = RM3.85 Additional material: Following is a code snippet to perform hexadecimalto decimal conversion and store the result in ASCII. You may use / modify it or use your own code. M8V 68: 1500 1500 - SOCH : Hex to decimal Store in memory in ASCII format Initialize offset for memory location CONT: Tanitialize hors of memory locat hot lent . .ger to per location Convert te enainder DXR to dee conver Moy Y MOV BON OOL Save Ascll code in memory CEPAX & MON 810 Check if quotient is zero Ensure DX for the next iteration FINISH: A screenshot halfway through first iteration: Mili RX 28 25 1886 Final memory content: 0251 0289 30 30 35 31 9988 0228 8 8 8888 82300 ee & 38888888 88888888 88888888 88888888 38888888 ASCII Character 0 Hex ASCII Character Hex 30 31 32 6 7 8 36 37 38 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
