freemyipod r323 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r322‎ | r323 | r324 >
Date:21:46, 12 December 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: iPod Nano 2G LCD driver: Fix color translation endianness
Modified paths:
  • /embios/trunk/target/ipodnano2g/lcd.S (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano2g/lcd.S
@@ -324,10 +324,12 @@
325325 cmp r0, #0
326326 movne r0, #0xff000000
327327 orrne r0, r0, #0xff0000
 328+ mov r3, r3,lsr#3
328329 mov r2, r2,lsr#2
329330 mov r1, r1,lsr#3
330 - orr r0, r0, r3,lsr#3
331 - orr r0, r0, r2,lsl#5
332 - orr r0, r0, r1,lsl#11
 331+ orr r0, r0, r3,lsl#8
 332+ orr r0, r0, r2,lsl#13
 333+ orr r0, r0, r2,lsr#3
 334+ orr r0, r0, r1,lsl#3
333335 mov pc, lr
334336 .size lcd_translate_color, .-lcd_translate_color