Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | 33 | ||
34 | memcpy: |
34 | memcpy: |
35 | add r3, r1, #3 |
35 | add r3, r1, #3 |
36 | bic r3, r3, #3 |
36 | bic r3, r3, #3 |
37 | cmp r1, r3 |
37 | cmp r1, r3 |
38 | stmdb sp!, {r4, lr} |
38 | stmdb sp!, {r4, r5, lr} |
- | 39 | mov r5, r0 |
|
39 | beq 4f |
40 | beq 4f |
40 | 1: |
41 | 1: |
41 | cmp r2, #0 |
42 | cmp r2, #0 |
42 | movne ip, #0 |
43 | movne ip, #0 |
43 | beq 3f |
44 | beq 3f |
Line 46... | Line 47... | ||
46 | strb r3, [ip, r0] |
47 | strb r3, [ip, r0] |
47 | add ip, ip, #1 |
48 | add ip, ip, #1 |
48 | cmp ip, r2 |
49 | cmp ip, r2 |
49 | bne 2b |
50 | bne 2b |
50 | 3: |
51 | 3: |
51 | mov r0, r1 |
52 | mov r0, r5 |
52 | ldmia sp!, {r4, pc} |
53 | ldmia sp!, {r4, r5, pc} |
53 | 4: |
54 | 4: |
54 | add r3, r0, #3 |
55 | add r3, r0, #3 |
55 | bic r3, r3, #3 |
56 | bic r3, r3, #3 |
56 | cmp r0, r3 |
57 | cmp r0, r3 |
57 | bne 1b |
58 | bne 1b |