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: * If so, we must disable the interrupt here. */ mov.b @r3, r0 /* r0 = PBDRL */ - mov r4, r5 /* (fake) end address = current address */ + mov #0, r5 /* fake end address - stop after first iteration */ or #(LCD_SD), r0 /* r0 |= LCD_SD */ and #(~(LCD_CS|LCD_DS|LCD_SC)), r0 /* r0 &= ~(LCD_CS|LCD_DS|LCD_SC) */ @@ -320,7 +320,7 @@ _lcd_grey_data: sub r10, r8 mov.l r8, @(4,r5) - + add #8, r5 cmp/hi r4, r6 bt .greyloop |