Jump to content

Basic Label Compiler for Windows 2.0.1

   (1 review)

2 Screenshots

About This File

Writing BASIC programs longer than 10 rows on the X16 is a tedious experience. The text editor is very limited, much is about struggling with row numbers. This is an extremely simple compiler (sort of at least) for Windows that lets you write your BASIC programs in your favourite text editor with labels. The compiler outputs a new text file with the extension ".bas". It adds row numbers and fills in the right row number after the commands "GOTO", "GOSUB" and "THEN".

No installation is needed, just copy the only file to the directory of your choice. 

Usage: x16LabelCompiler <filename> [first row number] [step between row numbers]

  • Labels must end with a colon (":").
  • Labels must not be reserved keywords in BASIC.
  • Labels are preserved in the generated code by inserting "REM" before them.
  • Empty rows are removed.
  • All letters are converted to uppercase.

A sample program called "guess_the_number.txt" is included.
To compile the program:  x16LabelCompiler guess_the_number.txt
To start the emulator, load the generated file and run it immediately: x16emu -bas guess_the_number.bas -run

Edited by Johan Kårlin

What's New in Version 2.0.1   See changelog


Corrected a bug that had to do with the special case where a label is declared but the name is a reserved keyword in BASIC. The code will be left as it is and the user will get a warning.




  • Like 5

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.


I'm a pretty lazy person , I would  use a compiler to convert something in python into something that worked if possible on the X16.

Link to review
  • Create New...

Important Information

Please review our Terms of Use