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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/29/03 21:42
Read: times


 
#46964 - RE: IRam indirect addressing
Responding to: ???'s previous message
You only have the @ri addressing mode (where ri is r0 or r1), there is no provision for indexing, so you'll have to do that by using an add instruction. If you have the index in the accu, it would look something like:

add a,#base_of_table
mov r0,a
mov a,@r0

In other cases, especially if you use a counting loop, it is sometimes enough to load r0 or r1 with the base address before you enter the loop, and increment or decrement r0/r1 with every iteration.


List of 8 messages in thread
TopicAuthorDate
IRam indirect addressing            01/01/70 00:00      
   RE: IRam indirect addressing            01/01/70 00:00      
      RE: IRam indirect addressing            01/01/70 00:00      
         RE: IRam indirect addressing            01/01/70 00:00      
      C target specifics            01/01/70 00:00      
         RE: C target specifics            01/01/70 00:00      
   RE: IRam indirect addressing            01/01/70 00:00      
      Internal External Memory            01/01/70 00:00      

Back to Subject List