Commit c901024e authored by Bernard Blackham's avatar Bernard Blackham

Optimisation tweaks

parent 82d9bd37
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment