Thread: Help coding
View Single Post
Old 11 August 2006, 00:37   #13
AGN
Registered User
 
Join Date: Aug 2004
Location: Poland
Posts: 142
Optimized Photon version:

Code:
d0 - input
d1 - output

        add.b   #6,d0
        move.l  d0,d1
        and.b   #4,d0
        bne     done
        add.b   #3,d1
done:
only 4 and a half instruction - did I fit in cycles?

ps.
send more puzzles like this one ;)
AGN is offline  
 
Page generated in 0.04291 seconds with 11 queries