freemyipod r767 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r766‎ | r767 | r768 >
Date:22:37, 25 August 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix iPod Nano 4G LCD colors
Modified paths:
  • /emcore/trunk/target/ipodnano4g/lcd.c (modified) (history)

Diff [purge]

Index: emcore/trunk/target/ipodnano4g/lcd.c
@@ -251,18 +251,19 @@
252252 __asm__ volatile(" qadd8 r0, r0, r1 \n"); // 1 cycle, r0 latency 2
253253 // bubble (due to r0 latency)
254254 __asm__ volatile(" sadd8 r0, r0, r4 \n"); // 1 cycle
255 - __asm__ volatile(" str r0, [r9] \n"); // 1 cycle, 1 mem, r9 early
256255 __asm__ volatile(" bic r2, r0, r6 \n"); // 1 cycle
257256 __asm__ volatile(" and r1, r6, r0,lsr#6 \n"); // 1 cycle, r0 early
258257 __asm__ volatile(" orr r2, r2, r1 \n"); // 1 cycle
259258 __asm__ volatile(" mov r1, r5 \n"); // 1 cycle
260259 __asm__ volatile(" shsub8 r5, r0, r2 \n"); // 1 cycle
 260+ __asm__ volatile(" rev r0, r0 \n"); // 1 cycle, r1 early
261261 __asm__ volatile(" shadd8 r1, r1, r5 \n"); // 1 cycle
 262+ __asm__ volatile(" mov r0, r0, lsr#8 \n"); // 1 cycle, r1 early
 263+ __asm__ volatile(" str r0, [r9] \n"); // 1 cycle, 1 mem, r9 early
262264 __asm__ volatile(" str r1, [r7], #4 \n"); // 1 cycle, 1 mem, r7 early
263265 __asm__ volatile(" nop \n"); // 2 cycles
264266 __asm__ volatile(" nop \n"); // 2 cycles
265267 __asm__ volatile(" nop \n"); // 2 cycles
266 - __asm__ volatile(" nop \n"); // 2 cycles
267268 __asm__ volatile(" bne displaylcd_dither_x \n");
268269 __asm__ volatile(" add r3, r3, r11 \n");
269270 __asm__ volatile(" subs r12, r12, #1 \n");