; PROGRAMM STARTS HERE
MOV R0, #30H ; STORE MEMORY LOCATION
MOV A, #00H ; CLEAR ACCUMULATOR
MOV R7, #07H ; COUNTER
MOV DPTR, #0200H; EXTERNAL ADDRESS
BACK : MOV A, @R0 ; MOVE FROM INTERNAL TO ACCUMULATOR
MOVX @DPTR, A ; MOVE FROM ACCUMULATOR TO EXTERNAL ADDRESS
INC R0 ; INCREMENT INTERNAL ADDRESS
INC DPTR ; INCREMENT EXTERNAL ADDRESS
DJNZ R7, BACK ; COUNT THE LOOP
END
save it with .a file extension
ReplyDeleteThanks for the program. It really helped me out
ReplyDeletePlease write code to 8051 send external memory to internal memory
ReplyDeleteTransfer the block of data from 20h to 30h to external location 1020h to 1030h using 8051 Microcontroller
ReplyDelete