Question: execute this program in simulator8085 and show the code and the result Task 1: Write Assembly Language Program to Convert BCD Number to Hexa Decimal.

 execute this program in simulator8085 and show the code and the

execute this program in simulator8085 and show the code and the result

Task 1: Write Assembly Language Program to Convert BCD Number to Hexa Decimal. ALGORITHM: 1) Load the data 0fH to the accumulator. 2) Move the accumulator content to Register B. 3) Load the BCD Number in Location 1000, move it to C and A. 4) Perform AND B with Accumulator. 5) Do RRC (Rotate Accumulator Right)for 4 times then move it to Register D. 6) Load 0 to Accumulator. 7) Add 10 to Accumulator. 8) Decrement Register D Content. 9) Check if not zero then do step 7. 10) Add E to Accumulator. 11) Store the Hexadecimal Equivalent from Accumulator to Specified memory Location. INPUT: BCD Number: 00100111 We need to enter its Hexa Decimal Equivalent as Input: (1X23)+(1X222)+(1X21) +(129) =32+4+2+1=39 (Decimal) Convert 39 to Hexadecimal =27H OUTPUT: 00100111

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!