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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/17/04 23:31
Read: times


 
#70563 - RE: can we make three four lookup tables
Responding to: ???'s previous message
mahnoor shamsi said:
how many look up tables we can make

The only limit is the available code space!

mahnoor shamsi said:
how to determine how much space they r (sic) using

Please don't do that!
If You want people to take the effort to answer your questions, the least you can do is take the effort to type properly!

The size of a lookup table is equal to the number of bytes you put in it!

mahnoor shamsi said:
Does these lookup works faster then CJNE instruction system

With a lookup table, the access time is constant;
With a string of if..then...elseif...then...etc, the access time depends on how far down the list the required entry lies - for the 1st entry, it will be quicker; for the last entry, it will be slower (much slower if there's very many entries).

The if...then...else... structure is advantageous in some circumstances, as it effectively gives priority to the entries near the top of the list; so, if your data is such that a relatively small number of values occur more frequently than others, the average speed achieved might be higher.

On the other hand, a lookup-table is often easier to maintain than a string of if...then...else... when changes need to be made.

As always in engineering, there is no such thing as "best" - you need to weigh the pros & cons in the context of your specific requirements & constraints.

List of 13 messages in thread
TopicAuthorDate
use of PC or DPTR            01/01/70 00:00      
   RE: use of PC or DPTR            01/01/70 00:00      
      RE: use of PC or DPTR            01/01/70 00:00      
   RE: use of PC or DPTR            01/01/70 00:00      
      RE: use of PC or DPTR            01/01/70 00:00      
   RE: use of PC or DPTR            01/01/70 00:00      
   RE: use of PC or DPTR            01/01/70 00:00      
      RE: use of PC or DPTR            01/01/70 00:00      
         thanks            01/01/70 00:00      
         can we make three four lookup tables            01/01/70 00:00      
            RE: can we make three four lookup tables            01/01/70 00:00      
            RE: can we make three four lookup tables            01/01/70 00:00      
               RE: can we make three four lookup tables            01/01/70 00:00      

Back to Subject List