Jump to content

Basic Label Compiler for Windows 1.0.0

   (0 reviews)

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


try_it

No

try_it_start_prg

x16LabelCompiler.exe
  • Like 4
 Share


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.

Guest
×
×
  • Create New...

Important Information

Please review our Terms of Use