Advertisement
CasualPokePlayer

simple memory copier

Mar 23rd, 2020
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ld h,xx ; High byte of the memory point where data is copied from
  2. ld l,xx ; Low byte of the memory point where data is copied from
  3. ld d,xx ; High byte of the memory point where data is copied to
  4. ld e,xx ; Low byte of the memory point where data is copied to
  5. ld c,xx ; amount of bytes copied
  6. .loop
  7. ld a,(hli)
  8. ld (de),a
  9. inc de
  10. dec c
  11. jr nz, .loop
  12. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement