Jump to content

New community dev tool uploaded: Basic Label Compiler for Windows

Recommended Posts

Basic Label Compiler for Windows

View 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


  • Like 4
Link to comment
Share on other sites

  • 1 month later...
Posted (edited)

Yes there are some developer tools that are more or less essential. You end upp making them yourselves or finding what someone else has already made. This is one example. I have made another tool - XPngConverter - for converting graphics, that's another. Good thing there's alternatives. A problem for all spare-time-developers is to really finish something. Perhaps can my contribution be making a (nearly) finished product which is quite polished. In this case I tried to succeed by keeping the list of features short. 😀

Edited by Johan Kårlin
  • Like 2
Link to comment
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Please review our Terms of Use