filmov
tv
Binary to ASCII Conversion in Tamil | Binary to ASCII code conversion in 8085 | Hex to ASCII code

Показать описание
Join this channel to get access to perks:
In this video, I’ll show you
AIM: To convert a binary number stored in memory into its ASCII representation and store the ASCII digits in consecutive memory locations. ALGORITHM: 1. Initialize the memory pointer to the memory location where the binary number is stored. 2. Load the binary number from memory to the accumulator. 3. Copy the binary number from the accumulator to register B for manipulation. 4. Set the carry flag and clear it. 5. Subtract 10 from the accumulator. If the result is negative (carry flag set), it means the binary number is less than 10. 6. If the result is negative, jump to the NUM label to convert the binary number to ASCII directly. 7. If the result is positive, add 41H to the accumulator to convert the number 10-15 to ASCII 'A'-'F'. 8. Jump to the STORE label to store the ASCII digit in memory. 9. If the result is negative, restore the original binary number to the accumulator. 10. Add 30H to the accumulator to convert it to ASCII '0'-'9'. 11. Store the ASCII digit in memory. 12. Increment the memory pointer to move to the next memory location. 13. Repeat steps 2-12 until all binary digits are converted to ASCII. 14. Halt the processor
Enjoy!
Like
Share
Comment
Subscribe
#சங்கேமுழங்கு
Follow me:
******************************************************************
Instagram : Sanke_Muzangu
Twitter: @Sanke_Muzangu
*****************************************************************
In this video, I’ll show you
AIM: To convert a binary number stored in memory into its ASCII representation and store the ASCII digits in consecutive memory locations. ALGORITHM: 1. Initialize the memory pointer to the memory location where the binary number is stored. 2. Load the binary number from memory to the accumulator. 3. Copy the binary number from the accumulator to register B for manipulation. 4. Set the carry flag and clear it. 5. Subtract 10 from the accumulator. If the result is negative (carry flag set), it means the binary number is less than 10. 6. If the result is negative, jump to the NUM label to convert the binary number to ASCII directly. 7. If the result is positive, add 41H to the accumulator to convert the number 10-15 to ASCII 'A'-'F'. 8. Jump to the STORE label to store the ASCII digit in memory. 9. If the result is negative, restore the original binary number to the accumulator. 10. Add 30H to the accumulator to convert it to ASCII '0'-'9'. 11. Store the ASCII digit in memory. 12. Increment the memory pointer to move to the next memory location. 13. Repeat steps 2-12 until all binary digits are converted to ASCII. 14. Halt the processor
Enjoy!
Like
Share
Comment
Subscribe
#சங்கேமுழங்கு
Follow me:
******************************************************************
Instagram : Sanke_Muzangu
Twitter: @Sanke_Muzangu
*****************************************************************
Комментарии