Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/03/01 08:41
Read: times


 
#11296 - RE: 16bit to BCD conversion


Ivan Baldin wrote:
-------------------------------
Oww... I C.
I tryed to do convertion as I would do it in PC:
bcd_k = (num % (k*10)) / k
...and that doesent work on two 8bit numbers...


Why not ???
It works on every machine and also on the 8051:

http://www.specs.de/~danni/ap.../index.htm

But on the 8051 the subtraction method was faster.


Peter



List of 7 messages in thread
TopicAuthorDate
16bit to BCD conversion            01/01/70 00:00      
RE: 16bit to BCD conversion            01/01/70 00:00      
RE: 16bit to BCD conversion            01/01/70 00:00      
RE: 16bit to BCD conversion            01/01/70 00:00      
RE: 16bit to BCD conversion            01/01/70 00:00      
RE: 16bit to BCD conversion            01/01/70 00:00      
RE: 16bit to BCD conversion            01/01/70 00:00      

Back to Subject List