Skip to content
Snippets Groups Projects
Commit c901024e authored by Bernard Blackham's avatar Bernard Blackham
Browse files

Optimisation tweaks

parent 82d9bd37
Branches
Tags X
No related merge requests found
...@@ -20,6 +20,7 @@ void set_msg(char newmsg[11]) { ...@@ -20,6 +20,7 @@ void set_msg(char newmsg[11]) {
for (i=0; i < 10; i++) { for (i=0; i < 10; i++) {
if (newmsg[i] == 0) break; if (newmsg[i] == 0) break;
} }
display_send_byte(0xaf); // reset ptr to start
for (i--; i >= 0; i--) { for (i--; i >= 0; i--) {
display_send_byte(newmsg[i]&0x7f); display_send_byte(newmsg[i]&0x7f);
} }
...@@ -36,7 +37,7 @@ void display_send_byte(char c) { ...@@ -36,7 +37,7 @@ void display_send_byte(char c) {
bclr_misc_output(A3800_DISPLAY_WRITE); /* disable the display clock */ 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() { void display_reset() {
/* lower the reset line for a while */ /* lower the reset line for a while */
bclr((void*)&_io_ports[M6811_PORTA], PORTA_DISP_RESET); bclr((void*)&_io_ports[M6811_PORTA], PORTA_DISP_RESET);
......
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