5.
MOV R0,#DATA1
MOV R1,#DATA2
MOV R7,#20
LOOP:MOV A.@R0
XCH A,@R1
MOV @R0,A
INC R0
INC R1
DJNZ R7,LOOP
SJMP $
6.
MOV R0,#41H
MOV R7,#03H
LOOP:MOV A,@R0
SWAP A
MOV @R0,A
INC R0
DJNZ R7,LOOP
MOV 40H,#00H
MOV R0,#41H
MOV R7,#03H
NEXT:MOV A,@R0
ANL A,#0FH
DEC R0
ORL A,@R0
MOV @R0,A
INC R0
MOV A,@R0
ANL A,#0F0H
MOV @R0,A
INC R1
DJNZ R7,NEXT
SJMP $
7.
MOV DPTR,#DATA1
MOV DPTR,#DATA2
MOV R7,#50
NEXT:MOVX A,@DPTR
MOV @R0,A
INC DPTR
INC R0
DJNZ R7,NEXT
SJMP $
8.
(60H)=24H ; (61H)=10H ;(62H)保持不变 ; (30H)=00H ; (31)=FFH ; (DPTR)=2410H ; (SP)=60H
刷新