Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; memrev(void *data, size_t len)
- _memrev:
- ld iy, -3
- add iy, sp
- ld bc, (iy + 9)
- ld hl, (iy + 6)
- add hl, bc
- ld de, (iy + 6)
- inc bc
- res 0, c
- .loop:
- ld a, (de)
- dec bc
- dec hl
- ldi
- ld (hl), a
- dec hl
- jp po, .loop
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement