Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Exclusive or

2004-06-19 by David VanHorn

>
>        
>        clr             sum
>        sbrc            tmp,0
>        inc             sum
>        sbrc            tmp,1
>        inc             sum
>        sbrc            tmp,2
>        inc             sum
>        sbrc            tmp,3
>        inc             sum

That's one cycle longer (but smaller code) than the lookup table.

>        Another way:
>
>        clr             sum
>        lsr             tmp
>        adc             sum, tmp
>        lsr             tmp
>        lsr             tmp
>        adc             sum, tmp

Ok, that is better, 6 cycles, and no table.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.