
...
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
...
