12
Chat with our AI personalities
check this link for the code:http://www.dnatechindia.com/index.php/Code-Library/8051_ASSEMBLY/12-bit-HEX-to-BCD-Convertor.htmlhttp://www.dnatechindia.com/index.php/Code-Library/8051_ASSEMBLY/8-bit-HEX-to-BCD-convertor.htmlA: The conversion is simple really a group of FOUR bits are usually the best method to simplify a BCD of four bits in hexadecimal. Example 1111 is just written F If it was written in octal the bits will be 3 as 111 or 7. As BCD becomes longer and longer these two methods were used to simplify the code a128 bits in BCD will be 8 zeros and ones or simply FF in octal notation it becomes 277
BCD is a decimal number. BCD is one specific way to store decimal numbers in computer memory.
because 9 is a lucky number for bcd..............ha ha ha
50
Well, adding (0110) during BCD addition helps us adjust the result when it exceeds the range of a single BCD digit. It's like adding a little bit of magic to ensure our calculations stay within the limits of BCD representation. Just a little touch of (0110) can make all the difference in keeping our numbers happy and balanced.