用匯編語言實現(xiàn)51單片機(jī)內(nèi)部RAM單元的數(shù)據(jù)傳送到外部RAM
STRAT:MOV R0,#30H
MOV R7,#0FH
MOV DPTR,#3000H
LOOP: MOV A,@R0
MOVX @DPTR,A
MOV R7,#0FH
MOV DPTR,#3000H
LOOP: MOV A,@R0
MOVX @DPTR,A
INC R0
INC DPTR
DJNZ R7,LOOP
RET
STRAT:MOV R0,#30H
INC R0
INC DPTR
DJNZ R7,LOOP
RET
MOV R7,#0FH
MOV DPTR,#3000H
LOOP: MOV A,@R0 MOVX @DPTR,A
MOV DPTR,#3000H
LOOP: MOV A,@R0 MOVX @DPTR,A
INC R0
INC DPTR
DJNZ R7,LOOP
RET
評論