FastBasic 4.7: FujiNet Statements, SIO Access and Friendlier Errors

On New Year 2025, dmsc (Daniel Serpell) released FastBasic 4.7, the first new version since 4.6 in 2022. In the announcement he said he had promised the release during an interview with Kevin Savetz. It collects a long list of language, IDE and cross-compiler changes.

FujiNet and SIO built in

The most notable addition for today's Atari users is network access through FujiNet. New statements NOPEN, NCLOSE, NSTATUS and NGET talk to the FujiNet N: device directly from BASIC, and the distribution includes example programs called "nc" and "mastodon". A general SIO statement lets programs issue raw serial-bus commands, which is useful for talking to any SIO peripheral without assembly code.

Language changes

  • ADR() now works on floating-point variables, and a new %() function reads a floating-point value through a pointer (the floating-point version of $() for strings).
  • Parentheses can be left out of string functions (LEN "X"), and the ; in PRINT can often be skipped too (PRINT "A=" A). Both help with ten-liner squeezing.
  • A new %TIME function gives a 24-bit timer that wraps after about 3 days and 5 hours.

IDE and native compiler

There is a new integer-only command-line compiler, FBCI, alongside FBC. Both now take file names on the DOS command line (FBC PROG.BAS PROG.COM). Many size optimisations keep the integer IDE under 8 KB, and the IDE should be a little faster, especially on long files or files without a final end-of-line.

Fixes

Long DLI statements now compile correctly. Mixing boolean and integer operands with AND/OR works properly, COLOR() and RTAB() can be chained in PRINT, and INPUT can read up to 255 characters into a string.

Cross-compiler improvements

  • Windows: file names with spaces or Unicode characters now work.
  • Better error messages, which show variable names, draw ASCII art pointing at the error, and report missing loop or IF endings.
  • Intermediate files are deleted after a build, leaving only the executable.
  • A new option writes a "compacted" listing for ten-liners and other size-limited programs.
  • The compiler looks for its support files in FASTBASIC_HOME, next to the executable, or in /usr/share/fastbasic/ and /usr/local/share/fastbasic/ on Linux, so it can be installed like any other system tool.

Where to get it

github.com/dmsc/fastbasic/releases/tag/v4.7 has the Atari disk image, manual and cross-compilers.

Credits