Sunday, September 13, 2009

Binary to BCD conversion(8085)


Statement: Write a main program and a conversion subroutine to convert the binary number stored at 6000H into its equivalent BCD number. Store the result from memory location 6100H.


Sample Problem: (6000) H = 8AH
1.8AH ? 64H (Decimal 100) :. Divide by 64H (Decimal 100)
8AH/64H ? Quotient = 1, Remainder = 26H
26H < 2 =" 1" quotient =" 3," remainder =" O8H" 1 =" 3" 0 =" O8H">

No comments:

Post a Comment