URL
https://opencores.org/ocsvn/amber/amber/trunk
[/] [amber/] [trunk/] [sw/] [mini-libc/] [libc_asm.S] - Diff between revs 48 and 61
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 48 |
Rev 61 |
Line 512... |
Line 512... |
cmp r2, #0
|
cmp r2, #0
|
beq 2f
|
beq 2f
|
add r4, r0, r2 @ set r4 to the address of the last byte copied
|
add r4, r0, r2 @ set r4 to the address of the last byte copied
|
1: ldrb r3, [r1], #1
|
1: ldrb r3, [r1], #1
|
strb r3, [r0], #1
|
strb r3, [r0], #1
|
cmp r2, r4
|
cmp r0, r4
|
bne 1b
|
bne 1b
|
2: ldmia sp!, {r4, pc}^
|
2: ldmia sp!, {r4, pc}^
|
|
|
|
|
/* strncpy: String compare function */
|
/* strncpy: String compare function */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.