Advertisement
AnthonyCagliano

Untitled

Apr 4th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ; memrev(void *data, size_t len)
  2. _memrev:
  3. ld iy, -3
  4. add iy, sp
  5. ld bc, (iy + 9)
  6. ld hl, (iy + 6)
  7. add hl, bc
  8. dec hl
  9. ld de, (iy + 6)
  10. .loop:
  11. ld a, (de)
  12. dec bc
  13. ldi
  14. dec hl
  15. ld (hl), a
  16. dec hl
  17. jp po, .loop
  18. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement