diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-04-07 00:01:03 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-04-07 00:01:03 +0000 |
commit | b1a49f83c64cdbdd8977f9b71cbca6260f0691e0 (patch) | |
tree | d77649193aaa977efe5abd9e891d53071c6336d7 | |
parent | 9737fc7c266bb2a859fd2d03540c2c4a70c74c9a (diff) | |
download | rockbox-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.S | 14 |
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 @@ | |||
22 | #define RS_MASK 0x00008000 | 22 | #define RS_MASK 0x00008000 |
23 | #define GPIO_OUT_ADDR 0x80000004 | 23 | #define GPIO_OUT_ADDR 0x80000004 |
24 | 24 | ||
25 | #define CS_MASK 0x00000020 | 25 | #define CS_MASK 0x00000020 /* used in moveq.l */ |
26 | #define GPIO1_OUT_ADDR 0x800000b4 | 26 | #define GPIO1_OUT_ADDR 0x800000b4 |
27 | 27 | ||
28 | .extern cpu_frequency /* Global variable from system.c */ | 28 | .extern cpu_frequency /* Global variable from system.c */ |
@@ -232,12 +232,12 @@ lcd_remote_write_command: | |||
232 | 232 | ||
233 | move.l #~RS_MASK, %d0 | 233 | move.l #~RS_MASK, %d0 |
234 | and.l %d0, (%a0) | 234 | and.l %d0, (%a0) |
235 | move.l #~CS_MASK, %d0 | 235 | moveq.l #~CS_MASK, %d0 |
236 | and.l %d0, (%a1) | 236 | and.l %d0, (%a1) |
237 | 237 | ||
238 | bsr.w .write_byte | 238 | bsr.w .write_byte |
239 | 239 | ||
240 | move.l #CS_MASK, %d0 | 240 | moveq.l #CS_MASK, %d0 |
241 | or.l %d0, (%a1) | 241 | or.l %d0, (%a1) |
242 | 242 | ||
243 | movem.l (%sp), %d2-%d3/%d6-%d7 | 243 | movem.l (%sp), %d2-%d3/%d6-%d7 |
@@ -261,14 +261,14 @@ lcd_remote_write_command_ex: | |||
261 | 261 | ||
262 | move.l #~RS_MASK, %d0 | 262 | move.l #~RS_MASK, %d0 |
263 | and.l %d0, (%a0) | 263 | and.l %d0, (%a0) |
264 | move.l #~CS_MASK, %d0 | 264 | moveq.l #~CS_MASK, %d0 |
265 | and.l %d0, (%a1) | 265 | and.l %d0, (%a1) |
266 | 266 | ||
267 | lsl.l #8, %d2 | 267 | lsl.l #8, %d2 |
268 | or.l %d2, %d3 | 268 | or.l %d2, %d3 |
269 | bsr.w .write_word | 269 | bsr.w .write_word |
270 | 270 | ||
271 | move.l #CS_MASK, %d0 | 271 | moveq.l #CS_MASK, %d0 |
272 | or.l %d0, (%a1) | 272 | or.l %d0, (%a1) |
273 | 273 | ||
274 | movem.l (%sp), %d2-%d3/%d6-%d7 | 274 | movem.l (%sp), %d2-%d3/%d6-%d7 |
@@ -300,7 +300,7 @@ lcd_remote_write_data: | |||
300 | 300 | ||
301 | move.l #RS_MASK, %d0 | 301 | move.l #RS_MASK, %d0 |
302 | or.l %d0, (%a0) | 302 | or.l %d0, (%a0) |
303 | move.l #~CS_MASK, %d0 | 303 | moveq.l #~CS_MASK, %d0 |
304 | and.l %d0, (%a1) | 304 | and.l %d0, (%a1) |
305 | 305 | ||
306 | .wd_loop: | 306 | .wd_loop: |
@@ -310,7 +310,7 @@ lcd_remote_write_data: | |||
310 | subq.l #1, %d4 | 310 | subq.l #1, %d4 |
311 | bne.s .wd_loop | 311 | bne.s .wd_loop |
312 | 312 | ||
313 | move.l #CS_MASK, %d0 | 313 | moveq.l #CS_MASK, %d0 |
314 | or.l %d0, (%a1) | 314 | or.l %d0, (%a1) |
315 | 315 | ||
316 | movem.l (%sp), %d2-%d4/%d6-%d7/%a2-%a3 | 316 | movem.l (%sp), %d2-%d4/%d6-%d7/%a2-%a3 |