diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-17 12:34:59 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-17 12:34:59 +0000 |
commit | cce9c17902b8af334bafe3482210580351569b72 (patch) | |
tree | 72e8b8a6531c97cc3f14e009ca0986a9bcacaa9c | |
parent | fcf36dd4f9879a82342e5606535d2dcf46d1de2a (diff) | |
download | rockbox-cce9c17902b8af334bafe3482210580351569b72.tar.gz rockbox-cce9c17902b8af334bafe3482210580351569b72.zip |
HD200 minor lcd asm routines adjustments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26102 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/coldfire/mpio/hd200/lcd-as-hd200.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/lcd-as-hd200.S b/firmware/target/coldfire/mpio/hd200/lcd-as-hd200.S index 12f2cb7f94..7ea0b8f921 100644 --- a/firmware/target/coldfire/mpio/hd200/lcd-as-hd200.S +++ b/firmware/target/coldfire/mpio/hd200/lcd-as-hd200.S | |||
@@ -72,10 +72,10 @@ lcd_write_command_e: | |||
72 | lcd_write_data: | 72 | lcd_write_data: |
73 | movem.l (4, %sp), %a0 /* Data pointer */ | 73 | movem.l (4, %sp), %a0 /* Data pointer */ |
74 | move.l (8, %sp), %d0 /* Length i in words */ | 74 | move.l (8, %sp), %d0 /* Length i in words */ |
75 | lea LCD_BASE_ADDRESS+2, %a1 /* LCD data port address */ | 75 | lea.l LCD_BASE_ADDRESS+2, %a1 /* LCD data port address */ |
76 | 76 | ||
77 | btst #0, %d0 /* longwords multiply? */ | 77 | btst #0, %d0 /* longwords multiply? */ |
78 | beq .l_write | 78 | jeq .l_write |
79 | 79 | ||
80 | .w_write: | 80 | .w_write: |
81 | move.w (%a0)+, %d1 /* load data 3 cycles*/ | 81 | move.w (%a0)+, %d1 /* load data 3 cycles*/ |
@@ -83,7 +83,7 @@ lcd_write_data: | |||
83 | lsr.l #8, %d1 /* load second byte 1 cycle*/ | 83 | lsr.l #8, %d1 /* load second byte 1 cycle*/ |
84 | move.w %d1, (%a1) /* transfer 1 cycle*/ | 84 | move.w %d1, (%a1) /* transfer 1 cycle*/ |
85 | subq.l #1, %d0 /* decrement counter 1 cycle*/ | 85 | subq.l #1, %d0 /* decrement counter 1 cycle*/ |
86 | beq .write_end | 86 | jeq .write_end |
87 | 87 | ||
88 | .l_write: | 88 | .l_write: |
89 | move.l (%a0)+, %d1 /* load data 2 cycles*/ | 89 | move.l (%a0)+, %d1 /* load data 2 cycles*/ |
@@ -96,7 +96,7 @@ lcd_write_data: | |||
96 | lsr.l #8, %d1 /* 1 cycle */ | 96 | lsr.l #8, %d1 /* 1 cycle */ |
97 | move.w %d1, (%a1) /* forth byte 1 cycle*/ | 97 | move.w %d1, (%a1) /* forth byte 1 cycle*/ |
98 | subq.l #2, %d0 /* decrement counter 1 cycle*/ | 98 | subq.l #2, %d0 /* decrement counter 1 cycle*/ |
99 | bne .l_write | 99 | bne.s .l_write |
100 | 100 | ||
101 | .write_end: | 101 | .write_end: |
102 | rts | 102 | rts |
@@ -169,7 +169,7 @@ lcd_grey_data: | |||
169 | move.w %d1, (%a3) /* transfer to lcd */ | 169 | move.w %d1, (%a3) /* transfer to lcd */ |
170 | 170 | ||
171 | cmp.l %a2, %a1 | 171 | cmp.l %a2, %a1 |
172 | bls .ph_loop | 172 | bls.s .ph_loop |
173 | 173 | ||
174 | movem.l (%sp), %a2-%a3 | 174 | movem.l (%sp), %a2-%a3 |
175 | lea.l (2*4, %sp), %sp | 175 | lea.l (2*4, %sp), %sp |