From d006d16715d70a0e7a6313dfb814166537ad9b6a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 19 Apr 2021 16:21:59 -0400 Subject: Save 64 bytes, now at 8622 --- taipan.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'taipan.c') diff --git a/taipan.c b/taipan.c index ac76bc6..193822b 100644 --- a/taipan.c +++ b/taipan.c @@ -383,6 +383,8 @@ const char * const location[] = { M_at_sea, M_hong_kong, M_shanghai, M_nagasaki, M_saigon, M_manila, M_singapore, M_batavia }; +extern void __fastcall__ print_location(char loc); + // inverse "Jan\0Feb\0Mar\0Apr\0May\0Jun\0Jul\0Aug\0Sep\0Oct\0Nov\0Dec\0"; const char * const months = "\xca\xe1\xee\0" "\xc6\xe5\xe2\0" @@ -726,7 +728,7 @@ void at_sea(void) { // cspace(); rvs_on(); // cputs(location[0]); - print_msg(M_at_sea); + print_location(0); rvs_off(); cspaces(2); @@ -1681,7 +1683,7 @@ void port_stats(void) { cputs(firm); comma_space(); // cputs(location[1]); - print_msg(M_hong_kong); + print_location(1); clrtoeol(); } @@ -1736,7 +1738,7 @@ void port_stats(void) { if(port == 4 || port == 5) cspace(); rvs_on(); // cputs(location[port]); - print_msg(location[port]); + print_location(port); rvs_off(); clrtoeol(); @@ -2276,7 +2278,7 @@ unsigned char choose_port(void) { cputc(choice + 0xb0); // inverse number cputs(") "); // cputs(location[choice]); - print_msg(location[choice]); + print_location(choice); if(choice != 7) comma_space(); } cprint_question_space(); @@ -2474,7 +2476,7 @@ void quit(void) { // cputs("We've been blown off course\nto "); print_msg(M_blown_off_course); // cputs(location[port]); - print_msg(location[port]); + print_location(port); timed_getch(); } } @@ -2541,7 +2543,7 @@ void quit(void) { // cputs("Arriving at "); print_msg(M_arriving_at); // cputs(location[port]); - print_msg(location[port]); + print_location(port); // cputs("..."); print_msg(M_ellipsis); timed_getch(); -- cgit v1.2.3