
;
;move 32 bytes of internal RAM starting at zero
;to XDATA space at 0800H.
;
MOVIT:
   MOV   R0, #0        ; pointer for start of IRAM
   MOV   DPTR, #0800H  ; pointer for start of XRAM
   MOV   R2, #32       ; byte counter 
MOVLP:
   MOV   A, @R0        ; get IRAM byte to A
   MOVX  @DPTR, A      ; move the byte to XRAM
   INC   R0            ; increment the IRAM pointer
   INC   DPTR          ; increment the XRAM pointer
   DJNZ  R2, MOVLP     ; decrement loop count and jump
;                      ; if more still to be done
;
   ... program continues from here
;
