summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-04-07 00:01:03 +0000
committerJens Arnold <amiconn@rockbox.org>2008-04-07 00:01:03 +0000
commitb1a49f83c64cdbdd8977f9b71cbca6260f0691e0 (patch)
treed77649193aaa977efe5abd9e891d53071c6336d7
parent9737fc7c266bb2a859fd2d03540c2c4a70c74c9a (diff)
downloadrockbox-b1a49f83c64cdbdd8977f9b71cbca6260f0691e0.tar.gz
rockbox-b1a49f83c64cdbdd8977f9b71cbca6260f0691e0.zip
Save a couple of bytes by using moveq.l where possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17007 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/coldfire/iaudio/lcd-remote-as-iaudio.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/coldfire/iaudio/lcd-remote-as-iaudio.S b/firmware/target/coldfire/iaudio/lcd-remote-as-iaudio.S
index c1e38d0351..d92d7e6857 100644
--- a/firmware/target/coldfire/iaudio/lcd-remote-as-iaudio.S
+++ b/firmware/target/coldfire/iaudio/lcd-remote-as-iaudio.S
@@ -22,7 +22,7 @@
#define RS_MASK 0x00008000
#define GPIO_OUT_ADDR 0x80000004
-#define CS_MASK 0x00000020
+#define CS_MASK 0x00000020 /* used in moveq.l */
#define GPIO1_OUT_ADDR 0x800000b4
.extern cpu_frequency /* Global variable from system.c */
@@ -232,12 +232,12 @@ lcd_remote_write_command:
move.l #~RS_MASK, %d0
and.l %d0, (%a0)
- move.l #~CS_MASK, %d0
+ moveq.l #~CS_MASK, %d0
and.l %d0, (%a1)
bsr.w .write_byte
- move.l #CS_MASK, %d0
+ moveq.l #CS_MASK, %d0
or.l %d0, (%a1)
movem.l (%sp), %d2-%d3/%d6-%d7
@@ -261,14 +261,14 @@ lcd_remote_write_command_ex:
move.l #~RS_MASK, %d0
and.l %d0, (%a0)
- move.l #~CS_MASK, %d0
+ moveq.l #~CS_MASK, %d0
and.l %d0, (%a1)
lsl.l #8, %d2
or.l %d2, %d3
bsr.w .write_word
- move.l #CS_MASK, %d0
+ moveq.l #CS_MASK, %d0
or.l %d0, (%a1)
movem.l (%sp), %d2-%d3/%d6-%d7
@@ -300,7 +300,7 @@ lcd_remote_write_data:
move.l #RS_MASK, %d0
or.l %d0, (%a0)
- move.l #~CS_MASK, %d0
+ moveq.l #~CS_MASK, %d0
and.l %d0, (%a1)
.wd_loop:
@@ -310,7 +310,7 @@ lcd_remote_write_data:
subq.l #1, %d4
bne.s .wd_loop
- move.l #CS_MASK, %d0
+ moveq.l #CS_MASK, %d0
or.l %d0, (%a1)
movem.l (%sp), %d2-%d4/%d6-%d7/%a2-%a3