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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/27/07 22:23
Read: times


 
#139907 - Eleven bytes. No tricks.
Responding to: ???'s previous message
Jan said:
Quiz6 occupies 15 bytes of code memory.
Makes me curious...

11 is as good as I've been able to do so far. What's interesting is that this is the obvious, straightforward approach. No tricks, really.

-- Russ
0067 7800      Quiz9:  mov     r0,#0
0069 C3        Quiz10: clr     c
006A 13                rrc     a
006B 5001              jnc     Quiz11
006D 08                inc     r0
006E 70F9      Quiz11: jnz     Quiz10
0070 E8                mov     a,r0
0071 22                ret



List of 16 messages in thread
TopicAuthorDate
weekend-end quiz            01/01/70 00:00      
   How about this?            01/01/70 00:00      
      @#$%^&            01/01/70 00:00      
   Two equivalent functions            01/01/70 00:00      
      OK, I admit, 2:1            01/01/70 00:00      
         Nice variation!            01/01/70 00:00      
            shortest?            01/01/70 00:00      
               Eleven bytes. No tricks.            01/01/70 00:00      
                  The wayward path followed...            01/01/70 00:00      
   Deterministic Way            01/01/70 00:00      
      Yet another tweak            01/01/70 00:00      
         OMG....            01/01/70 00:00      
            You are forgiven            01/01/70 00:00      
   commented            01/01/70 00:00      
      Nastiness density increased            01/01/70 00:00      
   That looks like my assembly code.            01/01/70 00:00      

Back to Subject List