summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-19 22:14:10 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-19 22:14:10 +0000
commit600ca577dc40036e06ba1dffd9d21d9be5b82c20 (patch)
tree9f7f888cff73a553b43885a2363879dd892ab515
parent6114f5900693e52b248a57cc6fca254434c19801 (diff)
downloadrockbox-600ca577dc40036e06ba1dffd9d21d9be5b82c20.tar.gz
rockbox-600ca577dc40036e06ba1dffd9d21d9be5b82c20.zip
Rrrr. Editor shouldn't have left those tabs. Will check settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12845 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/coldfire/memswap128-coldfire.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/coldfire/memswap128-coldfire.S b/firmware/target/coldfire/memswap128-coldfire.S
index 2509fd0e45..5de628dabd 100644
--- a/firmware/target/coldfire/memswap128-coldfire.S
+++ b/firmware/target/coldfire/memswap128-coldfire.S
@@ -27,23 +27,23 @@
27memswap128: 27memswap128:
28 lea.l -28(%sp), %sp | save registers 28 lea.l -28(%sp), %sp | save registers
29 movem.l %d2-%d7/%a2, (%sp) | 29 movem.l %d2-%d7/%a2, (%sp) |
30 movem.l 32(%sp), %a0-%a2 | %a0 = buf1 30 movem.l 32(%sp), %a0-%a2 | %a0 = buf1
31 | %a1 = buf2 31 | %a1 = buf2
32 | %a2 = len 32 | %a2 = len
33 lea.l -15(%a0, %a2.l), %a2 | %a2 = end address - 15 33 lea.l -15(%a0, %a2.l), %a2 | %a2 = end address - 15
34 cmp.l %a0, %a2 | end address <= buf1? 34 cmp.l %a0, %a2 | end address <= buf1?
35 bls.b .no_lines | not at least a line? leave 35 bls.b .no_lines | not at least a line? leave
36.loop: | 36.loop: |
37 movem.l (%a0), %d0-%d3 | read four longwords from buf1 37 movem.l (%a0), %d0-%d3 | read four longwords from buf1
38 movem.l (%a1), %d4-%d7 | read four longwords from buf2 38 movem.l (%a1), %d4-%d7 | read four longwords from buf2
39 movem.l %d4-%d7, (%a0) | write buf2 data to buf1 39 movem.l %d4-%d7, (%a0) | write buf2 data to buf1
40 movem.l %d0-%d3, (%a1) | write buf1 data to buf2 40 movem.l %d0-%d3, (%a1) | write buf1 data to buf2
41 lea.l 16(%a0), %a0 | buf1 += 16 41 lea.l 16(%a0), %a0 | buf1 += 16
42 lea.l 16(%a1), %a1 | buf2 += 16 42 lea.l 16(%a1), %a1 | buf2 += 16
43 cmp.l %a0, %a2 | %a0 < %d0? 43 cmp.l %a0, %a2 | %a0 < %d0?
44 bhi.b .loop | yes? keep exchanging 44 bhi.b .loop | yes? keep exchanging
45.no_lines: | 45.no_lines: |
46 movem.l (%sp), %d2-%d7/%a2 | restore registers 46 movem.l (%sp), %d2-%d7/%a2 | restore registers
47 lea.l 28(%sp), %sp | 47 lea.l 28(%sp), %sp |
48 rts | 48 rts |
49.end: 49.end: