From b30ca8ca5ab6c8ea27b8fe1f5fb38ebad09b7e62 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 14 Jan 2008 18:47:00 +0000 Subject: * 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 --- firmware/target/sh/archos/lcd-as-archos-bitmap.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/sh/archos/lcd-as-archos-bitmap.S') 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 -- cgit v1.2.3