Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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: 00100111Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started