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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/04/05 23:46
Read: times


 
#104674 - Cool algorithm
Responding to: ???'s previous message
Answer: 8 digits BCD to binary conversion routine.
(To see my answer, select above line with your cursor)

The usage of jbc in the "X00ed" subroutine is really impressive. It also splendid that the conversion is done only on the accumulator without any other temporary storage in the "X00ed" subroutine.

The first key to solve this quiz is what kind of numeric expression this routine relates to, as Mahmood said. The second key is realizing what "X00ed" subroutine does. The body itself is not so complicated, once you got the function of "X00ed" subroutine.

Reverse engineering?
Protected code is not so simple as this quiz. This code is written for efficiency. The code flow is straightforward and uses only short range forward jump. I think Jan intended to let us examine this algorithm better without any preconception.

Tsuneo

List of 30 messages in thread
TopicAuthorDate
week puzzle V            01/01/70 00:00      
   that would be intersating only to codebr            01/01/70 00:00      
      codebreakers            01/01/70 00:00      
         busted            01/01/70 00:00      
   having a guess            01/01/70 00:00      
   Hmm,isn't it demotivating to reengineer?            01/01/70 00:00      
      Cool algorithm            01/01/70 00:00      
      maybe            01/01/70 00:00      
   Looks like BCD to binary routine            01/01/70 00:00      
   My assumption            01/01/70 00:00      
   The source with comments !            01/01/70 00:00      
      thanks            01/01/70 00:00      
         Seems more elegant ...            01/01/70 00:00      
            optimized=ugly            01/01/70 00:00      
         why "xrl a,#0F0h" ?            01/01/70 00:00      
            Wow!            01/01/70 00:00      
         A bit shorter ...            01/01/70 00:00      
            za Slobodana Mandarica            01/01/70 00:00      
      another approach            01/01/70 00:00      
         optimizing further            01/01/70 00:00      
            packed bcd            01/01/70 00:00      
               packed bcd... by specification :-)            01/01/70 00:00      
      that is not comments, that is "explanati            01/01/70 00:00      
         true if            01/01/70 00:00      
         Yes they are Comments            01/01/70 00:00      
            Exactly !            01/01/70 00:00      
            I have seen such called "comments" way t            01/01/70 00:00      
               more on comments            01/01/70 00:00      
                  the point            01/01/70 00:00      
                     "anyone" and the point            01/01/70 00:00      

Back to Subject List