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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/23/03 23:23
Read: times


 
#39864 - RE: DS1620. Look-up table?
Responding to: ???'s previous message

Hex_table:
db '0','1','2','3'
db '4','5','6','7'
db '8','9','A','B'
db 'C','D','E','F'

mov dptr,#hex_table ;Point to table base
movc a,@a+dptr ;Acc nibble = Table index

everything is clear.
(were questions, but disappeared after viewing the listing file)

And now when using ext.memory for program and using look-ups. Oh my...
Whats different now?
(Should i use MOVX to 'save' all the table values? Or are they somehow magicly stored in ex.RAM? Should i switch segments?)

To Michael:
you are very kind. but i dont understand what the table index should i set. Maybe i will understand after answering previous question.

MOV A,#LOW (C2F_Table) ;add word index
ADD A,R7 ;from R6::R7
MOV DPL,A ;to table address
MOV A,#HIGH (C2F_Table)

Thaks again,
Rob

List of 19 messages in thread
TopicAuthorDate
DS1620. Look-up table?            01/01/70 00:00      
   RE: DS1620. Look-up table?            01/01/70 00:00      
      RE: DS1620. Look-up table?            01/01/70 00:00      
         Internal External memory            01/01/70 00:00      
            RE: Internal External memory            01/01/70 00:00      
   RE: DS1620. Look-up table?            01/01/70 00:00      
      RE: DS1620. Look-up table?            01/01/70 00:00      
   RE: DS1620. Look-up table?            01/01/70 00:00      
      RE: DS1620. Look-up table?            01/01/70 00:00      
         RE: DS1620. Look-up table?            01/01/70 00:00      
         RE: DS1620. Look-up table?            01/01/70 00:00      
   RE: DS1620. Look-up table? / Erik            01/01/70 00:00      
   Sample LUT            01/01/70 00:00      
      RE: Sample LUT            01/01/70 00:00      
         RE: Sample LUT            01/01/70 00:00      
            RE: Sample LUT            01/01/70 00:00      
   RE: DS1620. Look-up table?            01/01/70 00:00      
      RE: DS1620. Look-up table?            01/01/70 00:00      
         RE: DS1620. Look-up table?            01/01/70 00:00      

Back to Subject List