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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/16/10 19:14
Read: times


 
#175095 - You are not showing enough
Responding to: ???'s previous message
All INDIRECT ram access must be done using R0 or R1 as the pointer. In the last code snippet you do not show how data was placed at 091h, you only show how you are reading it.
In the first posting code snippet you show trying to move the contents of R5 to ram location 096h by DIRECT ACCESS. If you have not corrected the code that stores data in INDERCT ram then your program will continue to fail. The following will show one of the ways it's done:

   mov R0, #096h     ; set up pointer
   mov A, R5         ; data to Acc
   mov @R0, A        ; store contents of R5 at ram location 096h
 

I may be wrong but I don't think the instruction:

mov @R0, R5

is valid, that's why I moved R5 to Acc first.

Hal



List of 12 messages in thread
TopicAuthorDate
Problem with succesive memory locations            01/01/70 00:00      
   Debugging            01/01/70 00:00      
      How can i see the code of pressed key            01/01/70 00:00      
         Turn them into ASCII            01/01/70 00:00      
         Or use 2 characters            01/01/70 00:00      
   direct access to >80h => SFR            01/01/70 00:00      
   incorrect addressing method            01/01/70 00:00      
      (back to) basics - "bible" time            01/01/70 00:00      
      Hal Albach's way            01/01/70 00:00      
         It works            01/01/70 00:00      
         You are not showing enough            01/01/70 00:00      
   the danger of uniformity            01/01/70 00:00      

Back to Subject List