Last modified: 14-feb-2005.
You can be confused by the fact that the presentation of Blassic says "line numbers are mandatory" but many of the sample programas have no line numbers at all. The answer is simple, Blassic always use line numbers, but when a program is loaded in text format the numbers are auto generated if not present. That way using LABEL as target of GOTOs and GOSUBs you can efectively write a program without worrying about the line numbers, but they are here if your program need them.
If you want to strip the line numbers of a program you can save it in
binary form and use the sample program list.bas with the -n option, like
this: blassic list -n program.blc > newprogram.bas
.
In unix versions you can write programs that execute as normal commands, without using "blassic program". You only need to put in the first line "# !/usr/bin/blassic" and give it execute permission. When loading the program Blassic ignores the first line if begins with an "#", so you can use this unix usual method.
The following registry keys can be added:
[HKEY_CLASSES_ROOT\.bas] @="blassicfile" [HKEY_CLASSES_ROOT\.blc] @="blassicfile" [HKEY_CLASSES_ROOT\blassicfile] [HKEY_CLASSES_ROOT\blassicfile\shell] [HKEY_CLASSES_ROOT\blassicfile\shell\open] [HKEY_CLASSES_ROOT\blassicfile\shell\open\command] @="blassic \"%1\""You can do it automatically by clicking on this link: blassic.reg and selecting execute, or downloading the file and executing it.
To execute graphics programs avoiding that a text window stay opened you can add the -d option to the command value, o create another entry associated with others file extensions (I suggest .basw and .blcw).
This assumes that you have blassic.exe in some directory included in the PATH, if not you must put the complete path in the command entry. Depending on the windows version and how is configured, it can be necessary to put the entire path even in that case.
Svgalib was supported in the first versions of Blassic. I do not have it installed since long time, and thus stopped supporting it. However I do not delete the related options in configure nor the code already written, in the hope that something interested will eventually take care of it.
No, there is no compiler for Blassic. Maybe someday...
No, the graphics modes create a unique window. The WINDOW instuction define text frames into this window that can be used to print into different channels. Is taken from the Amstrad CPC Basic.
That's all folks!
Site design and artwork by Sevein .
Hosting courtesy of Tecnawebs.com