Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; I've got only one thing to say
- ; DIE.
- _memcpy::
- add sp, #-8
- ;pmd-red/newlib/libc/string/memcpy.c:59: char *dst = (char *) dst0;
- ldhl sp,#10
- ld a,(hl+)
- ld e, (hl)
- ldhl sp,#6
- ld (hl+),a
- ld (hl),e
- ;pmd-red/newlib/libc/string/memcpy.c:60: char *src = (char *) src0;
- ldhl sp,#12
- ld a,(hl+)
- ld e, (hl)
- ldhl sp,#4
- ld (hl+),a
- ld (hl),e
- ;pmd-red/newlib/libc/string/memcpy.c:62: _PTR save = dst0;
- ldhl sp,#10
- ld a,(hl+)
- ld e, (hl)
- ldhl sp,#0
- ld (hl+),a
- ld (hl),e
- ;pmd-red/newlib/libc/string/memcpy.c:64: while (len0--)
- ldhl sp,#(15 - 1)
- ld c,(hl)
- inc hl
- ld b,(hl)
- 00101$:
- ldhl sp,#2
- ld (hl),c
- inc hl
- ld (hl),b
- dec bc
- ld a,(hl-)
- or a,(hl)
- jr Z,00103$
- ;pmd-red/newlib/libc/string/memcpy.c:66: *dst++ = *src++;
- ldhl sp,#(5 - 1)
- ld e,(hl)
- inc hl
- ld d,(hl)
- ld a,(de)
- dec hl
- inc (hl)
- jr NZ,00115$
- inc hl
- inc (hl)
- 00115$:
- ldhl sp,#(7 - 1)
- ld e,(hl)
- inc hl
- ld d,(hl)
- ld (de),a
- dec hl
- inc (hl)
- jr NZ,00101$
- inc hl
- inc (hl)
- jr 00101$
- 00103$:
- ;pmd-red/newlib/libc/string/memcpy.c:69: return save;
- pop de
- push de
- add sp, #8
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement