Trevor Page email (remove spam text)
Really basic question for those of you who have experience with AVR devices.
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:
CPI Rd, value
CPI Rd, another_value
Am I missing something here? I feel there must be a method using one
instruction per enry, but I can't see how.
The E-mail and any attachments hereto are strictly confidential and intended
solely for the addressee. If you are not the intended addressee please
notify the sender by return and delete the message. You must not disclose,
forward or copy this E-mail or attachments to any third party without the
prior consent of the sender.
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