From c6518c26344e79c3d0ada14e2089de9b2928a033 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 8 Apr 2026 09:44:12 -0400 Subject: In case it matters, call _main with Y set to 0. --- src/crt0.s | 6 +++--- src/main.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/crt0.s b/src/crt0.s index 6ffb2ce..6cd66a6 100644 --- a/src/crt0.s +++ b/src/crt0.s @@ -44,10 +44,10 @@ start: sta sp+1 ; Set the keyboard to upper-/lower-case mode. - ldy #0 - sty SHFLOK - dey ; Set Y to $FF + ldy #$ff sty CH ; remove keypress which might be in the input buffer + dey ; Set Y to 0 + sty SHFLOK ; Go directly to main(). No support for CLI arguments, no saving ; any machine state for a clean exit, because we don't exit. diff --git a/src/main.c b/src/main.c index 325844d..54e5b87 100644 --- a/src/main.c +++ b/src/main.c @@ -132,7 +132,6 @@ void reconnect(void) { void main(void) { bell_type = config.alert_type; /* TODO: have bell.s read staight from the struct */ - OS.shflok = 0; // turn off shift-lock. OS.soundr = 0; // Turn off SIO beeping sound OS.color2 = config.colors[0]; /* text BG, user-selected */ OS.color1 = config.colors[1]; -- cgit v1.2.3