??? 11/12/06 05:17 Read: times |
#127801 - Problem lies in BCD converter Responding to: ???'s previous message |
Hello Dan,
Should the value be 0xB9 going into the BCD converter subroutine you should get a value of 185 coming out of it BUT your software will return 184. Regards, Charles Bannister ; 8-bit binary to bcd converter ; a - input value ; r2 - output digit 1 ; r3 - output digit 2 ; r4 - output digit 3 bin_to_bcd: |