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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/15/06 21:15
Read: times


 
#126487 - why not
Responding to: ???'s previous message
Why wouldn't be it possible to figure out what's it for by having a look? Of course I can overlook something easily, but if I look carefully... I had to repair enough of someones' else stuff to be able to do that and to ignore the comments - if there are any - as they can be totally misleading. I only pick up the intention of the "coder" from them.

In this case, it is a nasty piece of code but basically it converts a 2-byte binary value in R2:R1 (LSB in R2) into unpacked BCD in R7:R3 (LSB in R3). In the first step it converts R2 dividing by 10 twice; that's easy to follow. In the second step, 256 is added using rather distorted BCD arithmetics R1-times.

That's all, folks.

Jan Waclawek

List of 4 messages in thread
TopicAuthorDate
Meaning of this coding            01/01/70 00:00      
   What is the question?            01/01/70 00:00      
   dodgy stuff            01/01/70 00:00      
   why not            01/01/70 00:00      

Back to Subject List