From: Bernard Blackham Date: Sat, 26 Jun 2004 08:56:55 +0000 (+0000) Subject: Optimisation tweaks X-Git-Tag: X X-Git-Url: https://git.ucc.asn.au/?p=uccvend-snackrom.git;a=commitdiff_plain;h=c901024efaf8f908a8ac926b411c52155e79fbbf Optimisation tweaks --- diff --git a/ROM2/display_basic.c b/ROM2/display_basic.c index 4db73ba..2849696 100644 --- a/ROM2/display_basic.c +++ b/ROM2/display_basic.c @@ -20,6 +20,7 @@ void set_msg(char newmsg[11]) { for (i=0; i < 10; i++) { if (newmsg[i] == 0) break; } + display_send_byte(0xaf); // reset ptr to start for (i--; i >= 0; i--) { display_send_byte(newmsg[i]&0x7f); } @@ -36,7 +37,7 @@ void display_send_byte(char c) { bclr_misc_output(A3800_DISPLAY_WRITE); /* disable the display clock */ } -#define DISPLAY_DELAY 50 /* ms to delay between ops - could be tweaked */ +#define DISPLAY_DELAY 20 /* ms to delay between ops - could be tweaked */ void display_reset() { /* lower the reset line for a while */ bclr((void*)&_io_ports[M6811_PORTA], PORTA_DISP_RESET);