diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-01-14 18:47:00 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-01-14 18:47:00 +0000 |
commit | b30ca8ca5ab6c8ea27b8fe1f5fb38ebad09b7e62 (patch) | |
tree | c1af2e80ae597196cb0d5114f4128d2d6b18e2d1 /firmware/target/sh/archos/lcd-as-archos-bitmap.S | |
parent | feefc90a2ac63fb5272515f76a5b0231688224f0 (diff) | |
download | rockbox-b30ca8ca5ab6c8ea27b8fe1f5fb38ebad09b7e62.tar.gz rockbox-b30ca8ca5ab6c8ea27b8fe1f5fb38ebad09b7e62.zip |
* Apply a a recent, small optimisation from the archos bitmap lcd driver to the charcell driver, and fix comments. * Make the optimisation more safe, and apply that fix to the bitmap driver as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16089 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/sh/archos/lcd-as-archos-bitmap.S')
-rw-r--r-- | firmware/target/sh/archos/lcd-as-archos-bitmap.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/sh/archos/lcd-as-archos-bitmap.S b/firmware/target/sh/archos/lcd-as-archos-bitmap.S index ae7b7f85cc..f2ac525976 100644 --- a/firmware/target/sh/archos/lcd-as-archos-bitmap.S +++ b/firmware/target/sh/archos/lcd-as-archos-bitmap.S | |||
@@ -88,7 +88,7 @@ _lcd_write_command: | |||
88 | * If so, we must disable the interrupt here. */ | 88 | * If so, we must disable the interrupt here. */ |
89 | 89 | ||
90 | mov.b @r3, r0 /* r0 = PBDRL */ | 90 | mov.b @r3, r0 /* r0 = PBDRL */ |
91 | mov r4, r5 /* (fake) end address = current address */ | 91 | mov #0, r5 /* fake end address - stop after first iteration */ |
92 | or #(LCD_SD), r0 /* r0 |= LCD_SD */ | 92 | or #(LCD_SD), r0 /* r0 |= LCD_SD */ |
93 | and #(~(LCD_CS|LCD_DS|LCD_SC)), r0 /* r0 &= ~(LCD_CS|LCD_DS|LCD_SC) */ | 93 | and #(~(LCD_CS|LCD_DS|LCD_SC)), r0 /* r0 &= ~(LCD_CS|LCD_DS|LCD_SC) */ |
94 | 94 | ||
@@ -320,7 +320,7 @@ _lcd_grey_data: | |||
320 | 320 | ||
321 | sub r10, r8 | 321 | sub r10, r8 |
322 | mov.l r8, @(4,r5) | 322 | mov.l r8, @(4,r5) |
323 | 323 | ||
324 | add #8, r5 | 324 | add #8, r5 |
325 | cmp/hi r4, r6 | 325 | cmp/hi r4, r6 |
326 | bt .greyloop | 326 | bt .greyloop |