Assembly tables

Status
Not open for further replies.
HI All

Is it possible to make a table or function table in assembly languege e.g. I have four inputs, when the value for example becomes 0110, I need and output "1" on RC7 and RD1. Is thet possible or are there other ways?

Electronics4you
________________________________________________________
 
Yes, all you need to do is create a pointer to the top of your table, then add your input value to it to create an offset. It's the best strategy for tables longer than a few bytes.
 
It rather depends on the particular device used, low and mid range PIC's can only do tables via the RETLW instruction.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…