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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/02/05 13:49
Modified:
  08/02/05 13:52

Read: times


 
#98682 - My Opinion!
Responding to: ???'s previous message
Reza said:

I must handle an external device and i need to access from address BFA0H to C068H,Each byte is for especial task,For example BFA9H is Refresh and BFAAH is Compress
So i want to allocate BFA9H to Refresh ....
And then read/write from/to this 16 bit location


Hello Reza
I don't know your application but i suggest a method:
Assume you want to write to 'Refresh' Register(assume again it is a Register)

Refresh_write:
mov dptr,#0bfa9h ;address of Refresh Register
movx @dptr,#data ;data that must be writed
ret

Refresh_read:
mov dptr,#0bfa9h
movx a,@dptr
mov data,a ;data that must be read
ret

You can do it for all other 200 registers
It help you for preventing complication

Mehdi


List of 13 messages in thread
TopicAuthorDate
Allocate 2 bytes to a floating pointer            01/01/70 00:00      
   fixed or variable pointer?            01/01/70 00:00      
      More Description!            01/01/70 00:00      
         MMIO?            01/01/70 00:00      
         It all depends....            01/01/70 00:00      
         My Opinion!            01/01/70 00:00      
            does not exist and does not address atom            01/01/70 00:00      
               16 bit data!!!!            01/01/70 00:00      
            My Problem Solved!            01/01/70 00:00      
               To Reza            01/01/70 00:00      
                  To Erik            01/01/70 00:00      
                     ???????            01/01/70 00:00      
                     if no external registers >8 bits, no pro            01/01/70 00:00      

Back to Subject List