Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/08/02 21:43
Read: times


 
#21569 - RE: Spread Sheet in 8052 for quick table.
"I don't think there can a be set mathematical formula to get an index value to use as an offset to get the Y value from the table."

Maybe I didn't understand your question:

"Say if input is X then get value Y with MOVC."

Typically, with a table-lookup, you are doing:
Y = table[X]
ie, the value Y which you get is the Xth entry from the table - X is the index to the table, and the indexing of table[] is achieved with the MOVC A,@A+DPTR or similar

Are you saying that you need a double lookup; eg,
Y = resultTable[ indexTable[X] ]
The principle is the same - you just do it twice!

List of 6 messages in thread
TopicAuthorDate
Spread Sheet in 8052 for quick table.            01/01/70 00:00      
RE: Spread Sheet in 8052 for quick table.            01/01/70 00:00      
RE: Spread Sheet in 8052 for quick table.            01/01/70 00:00      
RE: Spread Sheet in 8052 for quick table.            01/01/70 00:00      
RE: Spread Sheet in 8052 for quick table.            01/01/70 00:00      
RE: Spread Sheet in 8052 for quick table.            01/01/70 00:00      

Back to Subject List