summaryrefslogtreecommitdiff
path: root/firmware/target/arm/iriver
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/iriver')
-rw-r--r--firmware/target/arm/iriver/h10/lcd-as-h10.S24
1 files changed, 16 insertions, 8 deletions
diff --git a/firmware/target/arm/iriver/h10/lcd-as-h10.S b/firmware/target/arm/iriver/h10/lcd-as-h10.S
index f4f7b9398e..8c8972549a 100644
--- a/firmware/target/arm/iriver/h10/lcd-as-h10.S
+++ b/firmware/target/arm/iriver/h10/lcd-as-h10.S
@@ -115,7 +115,8 @@ lcd_write_yuv420_lines:
115 ldr r3, [r0] @ 115 ldr r3, [r0] @
116 tst r3, #LCD2_BUSY_MASK @ 116 tst r3, #LCD2_BUSY_MASK @
117 bne 20b @ 117 bne 20b @
118 stmia r0, { r7, r11 } @ 118 str r7, [r0] @
119 str r11, [r0] @
119 @ 120 @
120 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*74 121 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*74
121 add r12, r7, r7, asl #2 @ 122 add r12, r7, r7, asl #2 @
@@ -151,7 +152,8 @@ lcd_write_yuv420_lines:
151 ldr r3, [r0] @ 152 ldr r3, [r0] @
152 tst r3, #LCD2_BUSY_MASK @ 153 tst r3, #LCD2_BUSY_MASK @
153 bne 20b @ 154 bne 20b @
154 stmia r0, { r7, r11 } @ 155 str r7, [r0] @
156 str r11, [r0] @
155 @ 157 @
156 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*74 158 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*74
157 add r12, r7, r7, asl #2 @ 159 add r12, r7, r7, asl #2 @
@@ -187,7 +189,8 @@ lcd_write_yuv420_lines:
187 ldr r3, [r0] @ 189 ldr r3, [r0] @
188 tst r3, #LCD2_BUSY_MASK @ 190 tst r3, #LCD2_BUSY_MASK @
189 bne 20b @ 191 bne 20b @
190 stmia r0, { r7, r11 } @ 192 str r7, [r0] @
193 str r11, [r0] @
191 @ 194 @
192 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*74 195 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*74
193 add r12, r7, r7, asl #2 @ 196 add r12, r7, r7, asl #2 @
@@ -221,7 +224,8 @@ lcd_write_yuv420_lines:
221 ldr r3, [r0] @ 224 ldr r3, [r0] @
222 tst r3, #LCD2_BUSY_MASK @ 225 tst r3, #LCD2_BUSY_MASK @
223 bne 20b @ 226 bne 20b @
224 stmia r0, { r7, r11 } @ 227 str r7, [r0] @
228 str r11, [r0] @
225 @ 229 @
226 subs r1, r1, #2 @ subtract block from width 230 subs r1, r1, #2 @ subtract block from width
227 bgt 10b @ loop line @ 231 bgt 10b @ loop line @
@@ -359,7 +363,8 @@ lcd_write_yuv420_lines_odither:
359 ldr r3, [r0] @ 363 ldr r3, [r0] @
360 tst r3, #LCD2_BUSY_MASK @ 364 tst r3, #LCD2_BUSY_MASK @
361 bne 20b @ 365 bne 20b @
362 stmia r0, { r7, r11 } @ 366 str r7, [r0] @
367 str r11, [r0] @
363 @ 368 @
364 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*149 369 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*149
365 add r12, r7, r7, asl #2 @ 370 add r12, r7, r7, asl #2 @
@@ -412,7 +417,8 @@ lcd_write_yuv420_lines_odither:
412 ldr r3, [r0] @ 417 ldr r3, [r0] @
413 tst r3, #LCD2_BUSY_MASK @ 418 tst r3, #LCD2_BUSY_MASK @
414 bne 20b @ 419 bne 20b @
415 stmia r0, { r7, r11 } @ 420 str r7, [r0] @
421 str r11, [r0] @
416 @ 422 @
417 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*149 423 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*149
418 add r12, r7, r7, asl #2 @ 424 add r12, r7, r7, asl #2 @
@@ -467,7 +473,8 @@ lcd_write_yuv420_lines_odither:
467 ldr r3, [r0] @ 473 ldr r3, [r0] @
468 tst r3, #LCD2_BUSY_MASK @ 474 tst r3, #LCD2_BUSY_MASK @
469 bne 20b @ 475 bne 20b @
470 stmia r0, { r7, r11 } @ 476 str r7, [r0] @
477 str r11, [r0] @
471 @ 478 @
472 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*149 479 sub r7, r12, #16 @ r7 = Y = (Y' - 16)*149
473 add r12, r7, r7, asl #2 @ 480 add r12, r7, r7, asl #2 @
@@ -518,7 +525,8 @@ lcd_write_yuv420_lines_odither:
518 ldr r3, [r0] @ 525 ldr r3, [r0] @
519 tst r3, #LCD2_BUSY_MASK @ 526 tst r3, #LCD2_BUSY_MASK @
520 bne 20b @ 527 bne 20b @
521 stmia r0, { r7, r11 } @ 528 str r7, [r0] @
529 str r11, [r0] @
522 @ 530 @
523 subs r1, r1, #2 @ subtract block from width 531 subs r1, r1, #2 @ subtract block from width
524 bgt 10b @ loop line @ 532 bgt 10b @ loop line @