aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console.s3
-rw-r--r--taipan.c10
2 files changed, 5 insertions, 8 deletions
diff --git a/console.s b/console.s
index 1930303..18b22bf 100644
--- a/console.s
+++ b/console.s
@@ -35,7 +35,8 @@ _clr_screen: ; same as gotoxy(0,0); clrtobot();
_clrtobot: ; same as clrtoline(24);
lda #24
- bne _clrtoline
+ ;bne _clrtoline ; we'd have to do this if ROWCRS were non-zero-page
+ .byte $2c ; see "bit trick" explanation below
_clrtoeol:
lda ROWCRS
diff --git a/taipan.c b/taipan.c
index ef10068..0b96a4b 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1729,9 +1729,7 @@ void port_stats(void)
*/
gotoxy(32, 3);
- // rvs_on();
cputs(months + 4 * (month - 1));
- // rvs_off();
cspace();
cprintuint(year);
@@ -1749,12 +1747,9 @@ void port_stats(void)
gotoxy(29, 12);
clrtoeol();
- i = status / 20;
- // if(i < 2) rvs_on();
- cputs(st[i]);
+ cputs(st[status / 20]);
cputc(':');
cprintuint(status);
- // rvs_off();
gotoxy(6, 14);
cblank(14);
@@ -2909,7 +2904,8 @@ int port_choices(void) {
else
// cputs(item[choice]);
print_msg(item[choice]);
- cputc(':');
+ // cputc(':');
+ cprint_colon_space();
gotox(11 + ((choice & 1) * 18));
cprintulong(price[choice]);
if(choice == 1) crlf();