summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/ipod/video/lcd-as-video.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/target/arm/ipod/video/lcd-as-video.S b/firmware/target/arm/ipod/video/lcd-as-video.S
index 21a04a6529..fa88dbc940 100644
--- a/firmware/target/arm/ipod/video/lcd-as-video.S
+++ b/firmware/target/arm/ipod/video/lcd-as-video.S
@@ -26,8 +26,7 @@
* int pixelcount);
*
* Writes pixelcount pixels from src-pointer (lcd_framebuffer) to BCM dataport.
- * Use the sequence ld 2, wr 2, ld 2, wr 2 with alternating registers for best
- * performance.
+ * Use the sequence 2:2:2:2 (2 = read/write 2 regs) for best performance.
*/
.align 2
.global lcd_write_data
@@ -41,12 +40,12 @@ lcd_write_data: /* r1 = pixel count, must be even */
.loop16:
ldmgeia r0!, {r2-r3}
stmgeia lr, {r2-r3}
- ldmgeia r0!, {r4, r12}
- stmgeia lr, {r4, r12}
ldmgeia r0!, {r2-r3}
stmgeia lr, {r2-r3}
- ldmgeia r0!, {r4, r12}
- stmgeia lr, {r4, r12}
+ ldmgeia r0!, {r2-r3}
+ stmgeia lr, {r2-r3}
+ ldmgeia r0!, {r2-r3}
+ stmgeia lr, {r2-r3}
subges r1, r1, #16
bge .loop16