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

Back to Subject List

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


 
#38699 - RE: Backup internal RAM
Responding to: ???'s previous message
Hard:
You can use some dallas devices. Battery baked memories.

Soft:
...Your program...
;Save routine
mov r0,#1st_internal_adress
mov dptr,#1st_external_adress
mov b,#number_of_bytes
loop:
mov a,#@r0
movx @dptr,a
inc r0
inc dptr
djnz b,loop
ret

;Load routine
mov r0,#1st_internal_adress
mov dptr,#1st_external_adress
mov b,#number_of_bytes
loop:
movx a,@dptr
mov #@r0,a
inc r0
inc dptr
djnz b,loop
ret


List of 8 messages in thread
TopicAuthorDate
Backup internal RAM            01/01/70 00:00      
   RE: Backup internal RAM            01/01/70 00:00      
   RE: Backup internal RAM            01/01/70 00:00      
   RE: Backup internal RAM            01/01/70 00:00      
      External RAM            01/01/70 00:00      
   RE: Backup internal RAM            01/01/70 00:00      
   RE: Backup internal RAM            01/01/70 00:00      
   RE: Backup internal RAM            01/01/70 00:00      

Back to Subject List