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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/26/06 13:11
Read: times


 
#125058 - Basic table lookup
Responding to: ???'s previous message

David, I think this is what you want:


;
; table index in A.

anl a,#07h ;limit index from 0..7
mov dptr,#response_table
movc a,@a+dptr
;
; result is in A
;


response_table db .......

I don't think you want the $ symbol - this might upset the assembler.


List of 7 messages in thread
TopicAuthorDate
Basic Q about Table Look ups            01/01/70 00:00      
   Basic table lookup            01/01/70 00:00      
   well, this should be an exercise for the student            01/01/70 00:00      
   More help please            01/01/70 00:00      
      Why HEX?            01/01/70 00:00      
         It's Place Value again!            01/01/70 00:00      
      Confusion!            01/01/70 00:00      

Back to Subject List