MOV R1,#20HMOV R0,#30HMOV DPTR,#0000HLOOP:MOV A,@R0MOVX @DPTR,AINC R0INC DPTRDJNZ R1,LOOPEND
ORG 0000HAJMP MAINORG 0100HMAIN:MOV A,Ro MOVX @DPTR,A MOV A,DPTR MOV 0000H,AEND