Description
Summary
I am encountering the oddest issue. What I'm trying to do is very simple, on the face of it: just modify the editor colors to white-on-black instead of the Atari default light-grey-on-blue. I was able to track that down in the source code to this section:
Lines 654 to 659 in 55dc52f
The change I'm making is incredibly small, simply adding two setcolor
statements to the InitScreen
procedure to end up with:
PROC InitScreen
graphics 0
setcolor 1,0,14
setcolor 2,0,0
poke @@LMARGN, $00
poke @KEYREP, 3
ENDPROC
It compiles without issue and, when loaded up in either an emulator or on real hardware, the colors work as expected.
But I can't load files from any device. The initial HELP.TXT file is loaded on start, but attempting to load any other file - even the same HELP.TXT file - results in 130 I/O ERROR
.
For a sanity check, I did a hard reset to HEAD
a clean make. The resulting ATR and FB.COM
binary is able to load files without issue. It's only when I modify that editor.bas
file that I encounter this problem.
I'm not sure if I'm doing something wrong here, or if this is a bug, or a problem with my toolchain. Any guidance this community can offer me would be awesome.
Reproduction Steps
- Check out the v4.7 tag to ensure working from the current stable source.
- Edit
src/editor.bas
and insertsetcolor 1,0,14:setcolor 2,0,0
into theInitScreen
procedure. - Compile the code.
- Boot the
fastbasic.atr
in either an emulator or on hardware. - Run
FB.COM
. - Press CTRL+L and attempt to load
D:HELP.TXT
.
Dev Environment
OS: Ubuntu 24.04 derivative (Pop!_OS)
Run Environment
Emulator: Atari800 v4.2.0
Hardware: Atari 800XL w/U1MB (SpartaDOS X 4.49)