Advertisement
Shailrshah

Trasnfer of a Block of Data (Overlapping)

Aug 13th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     MOV 20h, #01h
  2.     MOV 21h, #02h
  3.     MOV 22h, #03h
  4.     MOV 23h, #04h
  5.     MOV 24h, #05h
  6.     MOV 25h, #06h
  7.     MOV 26h, #07h
  8.     MOV 27h, #08h
  9.     MOV 28h, #09h
  10.     MOV 29h, #0Ah
  11.  
  12.     MOV R2, #0Ah    ;Counter
  13.     MOV R0, #20h    ;Start of Source
  14.     MOV R1, #25h    ;Start of Destination
  15.     MOV A, R0  
  16.     ADD A, R2
  17.     MOV R0, A
  18.     MOV A, R1
  19.     ADD A, R2
  20.     MOV R1, A
  21. loop:   DEC R0
  22.     DEC R1
  23.     MOV A, @R0
  24.     MOV @R1, A
  25.     DJNZ R2, loop
  26.     END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement