prime/asm/Runtime/CPlusLibPPC.s

20 lines
671 B
ArmAsm
Raw Permalink Normal View History

2022-04-02 21:03:04 +00:00
.include "macros.inc"
.section .text, "ax"
.global __copy
__copy:
/* 803896A4 00386604 28 03 00 00 */ cmplwi r3, 0
2022-07-14 05:48:03 +00:00
/* 803896A8 00386608 4D 82 00 20 */ beqlr
2022-04-02 21:03:04 +00:00
/* 803896AC 0038660C 28 05 00 00 */ cmplwi r5, 0
2022-07-14 05:48:03 +00:00
/* 803896B0 00386610 4D 82 00 20 */ beqlr
2022-04-02 21:03:04 +00:00
/* 803896B4 00386614 7C 66 1B 78 */ mr r6, r3
lbl_803896B8:
/* 803896B8 00386618 88 04 00 00 */ lbz r0, 0(r4)
/* 803896BC 0038661C 34 A5 FF FF */ addic. r5, r5, -1
/* 803896C0 00386620 38 84 00 01 */ addi r4, r4, 1
/* 803896C4 00386624 98 06 00 00 */ stb r0, 0(r6)
/* 803896C8 00386628 38 C6 00 01 */ addi r6, r6, 1
/* 803896CC 0038662C 40 82 FF EC */ bne lbl_803896B8
2022-07-14 05:48:03 +00:00
/* 803896D0 00386630 4E 80 00 20 */ blr