From b1a49f83c64cdbdd8977f9b71cbca6260f0691e0 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 7 Apr 2008 00:01:03 +0000 Subject: 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 --- firmware/target/coldfire/iaudio/lcd-remote-as-iaudio.S | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'firmware') 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 -- cgit