-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I've tried using BACON to compile the output of TracerBlender. Unfortunately, I get many syntax error messages. Remarkable: the errors differ between the ASCII and binary variants of the file.
Here is the BASIC file I used to test. It's the direct output of the default scene of TracerBlender, but with the "MSX Basic-kun Turbo" (i.e. XBASIC) option switched off, so that the output is truly just plain MSX BASIC. (remove the .txt part, GH wouldn't allow me uploading it as .bas):
Since I use Kubuntu 25.10, I compiled BACON myself using make all. This went without warnings or errors, so great!
I used the resulting binary to compile my BASIC file. Here's the result:
$ ./msx_bacon tracer_ascii.bas tracer.asm
MSX-BACON v0.0
=========================================================
Copyright (C)2023 t.hara
Compile mode: MSX-BASIC Compatible.
Optimization level: O2 (Code)
Start address : 0x8010
Stack size : 256
Target: tracer_ascii.bas (ASCII code).
ERROR(1100): Syntax error.
ERROR(1100): Syntax error.
ERROR(1100): Syntax error.
ERROR(1200): Syntax error.
ERROR(1200): Syntax error.
ERROR(1200): Syntax error.
ERROR(1290): Syntax error.
ERROR(1290): Syntax error.
ERROR(1290): Syntax error.
ERROR(2090): Syntax error.
ERROR(2090): Syntax error.
ERROR(2090): Syntax error.
ERROR(2120): Syntax error.
ERROR(2120): Syntax error.
ERROR(2120): Syntax error.
ERROR(2270): Syntax error.
ERROR(2270): Syntax error.
Found 17 error(s).
These errors seem to relate with SQR().
Then I converted the ascii version to plain binary BASIC format, by loading and then saving the file using an emulated MSX turbo R in OpenMSX.
I'd expect to get the same errors, but no, I get more!
$ ./msx_bacon tracer.bas tracer.asm
MSX-BACON v0.0
=========================================================
Copyright (C)2023 t.hara
Compile mode: MSX-BASIC Compatible.
Optimization level: O2 (Code)
Start address : 0x8010
Stack size : 256
Target: tracer.bas (Precompiled code).
ERROR(1060): Syntax error.
ERROR(1070): Syntax error.
ERROR(1090): Syntax error.
ERROR(1090): Syntax error.
ERROR(1100): Syntax error.
ERROR(1100): Syntax error.
ERROR(1100): Syntax error.
ERROR(1110): Syntax error.
ERROR(1110): Syntax error.
ERROR(1110): Syntax error.
ERROR(1120): Syntax error.
ERROR(1130): Syntax error.
ERROR(1140): Syntax error.
ERROR(1140): Syntax error.
ERROR(1200): Syntax error.
ERROR(1200): Syntax error.
ERROR(1200): Syntax error.
ERROR(1260): Syntax error.
ERROR(1290): Syntax error.
ERROR(1290): Syntax error.
ERROR(1290): Syntax error.
ERROR(2090): Syntax error.
ERROR(2090): Syntax error.
ERROR(2090): Syntax error.
ERROR(2120): Syntax error.
ERROR(2120): Syntax error.
ERROR(2120): Syntax error.
ERROR(2270): Syntax error.
ERROR(2270): Syntax error.
Found 29 error(s).
The "new" errors seem array-related.
(Incidentally, not all command line options are functional: the target types (-msx -msx2p etc) and output types are currently not functional.)