wouter van ooijen & floortje hanneman email (remove spam text)
> I wish to implement a lookup table. On the AVR there doesn't appear to be
> instruction that's equivalent to the PIC's convenient "RETLW" instruction.
> It seems that I need to actually have two instructions per lookup table
> entry on the AVR, such as:
I recall that there are more efficeint ways than 2 instrcutions per value,
but not down to one. Look around on Atmel's website for an appnote about
'implementing table lookup on the 1200' or something like that.
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
See also: www.piclist.com/techref/mems.htm?key=table
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the