Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Challenge

2005-06-07 by Dave VanHorn

At 03:45 PM 6/7/2005, Richard Reeves wrote:
>
> > Speed contest:        Fast code desired, space is no object.
>Look-up table:
>
>fred:
>         ldi     zl,     low(reverse*2)
>         ldi     zh,     high(reverse*2)
>         add     zl,     temp
>         lpm     temp,z
>         ret

We have to add another instruction, unless as you specified, the 
table is positioned on a boundary.
That wasn't completely clear, but it does get there.

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.