> I wish to implement a lookup table. On the AVR there doesn't appear to be an > 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. Wouter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads