Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Purpose: Convert a single byte into two BCD digits
Input: A = Byte to convert (0x00-0xFF)
Output: A = High nibble (ASCII 0x30-0x39,0x41-0x46)
R0 = Low nibble (ASCII 0x30-0x39, 0x41-0x46)
h**p://www.8052.com/codelib/bcd_byte.zip
Description: Convert Value In Acc From Hex To BCD.
Entry Requirements: Acc Has Value In Binary To Convert To BCD
On Exit: Acc Has Entry Value Converted To BCD
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.