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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/21/06 12:31
Read: times


 
#122695 - code fragment
Responding to: ???'s previous message
Try:
...
mov dptr,#store    ; set DPTR to the start of your storage space in XRAM
mov A,#1           ; put 1 into the ACC
movx @dptr,A       ; deposit at the location where the DPTR points
inc dptr           ; advance storage pointer so you won't overwrite the 1 in the next go
...


That should deposit the 1 in your storage. Take it as an exercise to deposit the rest. I suggest using some loop ;)




List of 10 messages in thread
TopicAuthorDate
define string            01/01/70 00:00      
   Instruction Set            01/01/70 00:00      
   Is it not 'define space'?            01/01/70 00:00      
      RTFM            01/01/70 00:00      
      No way man, Define Storage            01/01/70 00:00      
         Could be any, all or none!            01/01/70 00:00      
            of course            01/01/70 00:00      
   define space            01/01/70 00:00      
      code fragment            01/01/70 00:00      
      You're not trying            01/01/70 00:00      

Back to Subject List