https://sinclair.wiki.zxnet.co.uk/w/api.php?action=feedcontributions&user=P13z&feedformat=atomSinclair Wiki - User contributions [en-gb]2024-03-29T05:22:57ZUser contributionsMediaWiki 1.39.6https://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Raspberry_PI&diff=752Installing SpecBAS for Raspberry PI2013-05-24T00:12:59Z<p>P13z: Created page with "category:Specbas A quick guide to getting the current version of SpecBAS up and running on a Raspberry PI ==Downloading SpecBAS for Raspberry PI== The current version of S..."</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on a Raspberry PI<br />
<br />
==Downloading SpecBAS for Raspberry PI==<br />
<br />
The current version of SpecBAS for Raspberry PI can be found at http://freestuff.grok.co.uk/specbas-raspi.zip<br />
<br />
==Running SpecBAS for Raspberry PI==<br />
<br />
You must be running a linux distro with hard floating point support. Such as the Raspbian Wheezy distribution that Raspberry recommends.<br />
<br />
Type "sudo apt-get install sdl-image1.2" to install the SDL image libary (you may already have this installed, if so, all good!)<br />
<br />
Copy libbass.so from the specbas archive into your /usr/lib/ directory and make sure it's readable. i.e: "sudo cp libbass.so /usr/lib", followed by "sudo chmod 444 /usr/lib/libbass.so"<br />
<br />
Make sure the SpecBAS binary is executable "chmod 755 SpecBAS"<br />
<br />
Run SpecBAS ("./SpecBAS")! <br />
<br />
Upon first execution, SpecBAS will create its working directory; /home/user/specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
<br />
The SpecBAS source files are available through SVN at http://alistairsserver.no-ip.org/websvn/listing.php?repname=SpecBAS. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Windows&diff=751Installing SpecBAS for Windows2013-05-23T20:35:39Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Windows systems<br />
<br />
==Downloading SpecBAS for Windows==<br />
<br />
The current version of SpecBAS for Windows can be found at https://sites.google.com/site/pauldunn/SpecOS.zip<br />
<br />
The SpecOS.zip file contains the SpecBAS.exe file, bass.dll and the relevant source files.<br />
<br />
==Running SpecBAS for Windows==<br />
<br />
The current version of the SpecBAS.exe should run from any location you wish to keep it. It will require that the bass.dll file, included in the SpecOS folder, is installed or within the same directory.<br />
<br />
Upon fist execution, SpecBAS will create its working directory; \Documents and Settings\User\specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is available in the Windows .zip release for anyone wishing to compile SpecBAS using Delphi. The SpecBAS source files are also available through SVN at http://alistairsserver.no-ip.org/websvn/listing.php?repname=SpecBAS, negating the need to download the binary when acquiring the latest source. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Windows&diff=750Installing SpecBAS for Windows2013-05-23T20:35:12Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Windows systems<br />
<br />
==Downloading SpecBAS for Windows==<br />
<br />
The current version of SpecBAS for Windows can be found at https://sites.google.com/site/pauldunn/SpecOS.zip<br />
<br />
The SpecOS.zip file contains the SpecBAS.exe file, bass.dll and the relevant source files.<br />
<br />
==Running SpecBAS for Windows==<br />
<br />
The current version of the SpecBAS.exe should run from any location you wish to keep it. It will require that the bass.dll file, included in the SpecOS folder, is installed or within the same directory.<br />
<br />
Upon fist execution, SpecBAS will create its working directory; \Documents and Settings\User\specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is available in the Windows .zip release for anyone wishing to compile SpecBAS for using Delphi. The SpecBAS source files are also available through SVN at http://alistairsserver.no-ip.org/websvn/listing.php?repname=SpecBAS, negating the need to download the binary when acquiring the latest source. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Linux&diff=749Installing SpecBAS for Linux2013-05-23T20:25:57Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Linux systems<br />
<br />
==Downloading SpecBAS for Linux==<br />
<br />
The current version of SpecBAS for Linux can be found at http://reallyquick.co.uk/specbas/<br />
<br />
The SpecBAS_linux.tar.gz file contains the SpecBAS binary file, libbass.so and the relevant source files.<br />
<br />
==Running SpecBAS for Linux==<br />
<br />
To run the current version of SpecBAS, you will need to have the bass audio library installed. The easiest way to achieve this is to copy the libbass.so file, included in the SpecBAS_linux folder, to your /lib directory. The SpecBAS binary should then run from any location you wish to keep it.<br />
<br />
Upon first execution, SpecBAS will create its working directory; /home/user/specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is included in the Linux tarball for anyone wishing to compile SpecBAS for Linux using Lazarus. The SpecBAS source files are also available through SVN at http://alistairsserver.no-ip.org/websvn/listing.php?repname=SpecBAS, negating the need to download the binary when acquiring the latest source. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Category:Specbas&diff=603Category:Specbas2012-02-27T19:22:10Z<p>P13z: </p>
<hr />
<div>== About SpecBAS ==<br />
<br />
SpecBAS is an improved implementation of Sinclair BASIC for x86 PCs running Windows or Linux operating systems. SpecBAS is a 32bit application.<br />
<br />
SpecBAS is an interpreter for a dialect of BASIC, based on Dartmouth BASIC, as was the original Sinclair BASIC. SpecBAS adds many new commands and functions such as procedures, math functions and sound using samples and music .mod files. Although not as fast as compiled languages, it is very quick. <br />
<br />
These pages document the language and also cover some "tricks and tips" style pages.<br />
<br />
http://www.specbas.co.uk - For the latest source and builds, documentation, demo files and forums.<br />
<br />
SpecBAS is available [https://sites.google.com/site/pauldunn/SpecOS.zip As a single .zip file]<br />
<br />
The linux version is available at [http://www.reallyquick.co.uk/specbas/ ^Pete's SpecBAS-Linux home].<br />
<br />
Some demo programs are available https://sites.google.com/site/pauldunn/demos.zip</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Category:Specbas&diff=602Category:Specbas2012-02-27T19:20:56Z<p>P13z: </p>
<hr />
<div>== About SpecBAS ==<br />
<br />
SpecBAS is an improved implementation of Sinclair BASIC for x86 PCs running Windows or Linux operating systems. SpecBAS is a 32bit application.<br />
<br />
SpecBAS is an interpreter for a dialect of BASIC, based on Dartmouth BASIC, as was the original Sinclair BASIC. SpecBAS adds many new commands and functions such as procedures, math functions and sound using samples and music .mod files. Although not as fast as compiled languages, it is very quick. <br />
<br />
These pages document the language and also cover some "tricks and tips" style pages.<br />
<br />
[http://www.specbas.co.uk] - For the latest source and builds, documentation, demo files and forums.<br />
<br />
SpecBAS is available [https://sites.google.com/site/pauldunn/SpecOS.zip As a single .zip file]<br />
<br />
The linux version is available at [http://www.reallyquick.co.uk/specbas/ ^Pete's SpecBAS-Linux home].<br />
<br />
Some demo programs are available https://sites.google.com/site/pauldunn/demos.zip</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=557File handling in SpecBAS2011-11-16T18:50:15Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems should not be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
'''SAVE "filename" BANK id DATA''' Saves a bank in raw, header-less form, giving SpecBAS the ability to create file editing / conversion tools.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types, using the GRAPHIC, MUSIC and SAMPLE commands.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1<br />
<br />
Supported image file types:<br />
<br />
.PNG .GIF .BMP</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Command_list_for_SpecBAS&diff=556Command list for SpecBAS2011-11-16T18:28:58Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
The complete list of SpecBAS commands can currently be found in the SpecOS_reference.doc file, included with the SpecBAS distribution.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Command_list_for_SpecBAS&diff=555Command list for SpecBAS2011-11-16T18:28:14Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
The complete list of SpecBAS commands can currently be found in the SpecOS_reference.doc file, included with the SpecBAS distribution</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=554Acquainting yourself with SpecBAS2011-11-16T18:26:01Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor key controls==<br />
The editor window can be controlled, intuitively, via mouse control, and/or via the following key commands: <br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
tab = edit selected line<br />
escape = terminate, or 'break into' program<br />
return = toggle editor window on/off<br />
shift + cursor up = recall previous command<br />
shift + cursor down = revert the above<br />
BASIC programs can also be loaded into specbas as ZXASCII text files from your editor of choice, detailed in [[File handling in SpecBAS]]<br />
<br />
==What can I do with it?==<br />
<br />
SpecBAS is broadly compatible with most forms of BASIC. Demo files are available for you to nose through. Writing games, utilities and fun-code in SpecBAS is remarkably simple. The speed of the interpreter, and vast amount of commands available allow impressive results to be achieved quickly. You could relive a couple of ZX81 type-ins, or just as easily throw together a fractal based animation, a slick arcade game, or useful utilities and tools.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=553File handling in SpecBAS2011-11-16T18:13:33Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems should not be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types, using the GRAPHIC, MUSIC and SAMPLE commands.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1<br />
<br />
Supported image file types:<br />
<br />
.PNG .GIF .BMP</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=552File handling in SpecBAS2011-11-16T18:10:37Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems should not be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1<br />
<br />
Supported image file types:<br />
<br />
.PNG .GIF .BMP</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=242File handling in SpecBAS2011-01-30T06:43:50Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems should not be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=241File handling in SpecBAS2011-01-29T20:30:48Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems should not be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII''' and '''LOAD "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=240File handling in SpecBAS2011-01-29T20:30:30Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems should not be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII''' and '''LOAD "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=239File handling in SpecBAS2011-01-29T20:29:07Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
NOTE: To keep everything compatible with all current versions of SpecBAS, it is strongly advised that you keep all file names in lower-case only. Characters which are illegal in Windows and Linux file systems are also not to be used.<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII''' and '''LOAD "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=237File handling in SpecBAS2011-01-22T19:58:43Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be stored as ASCII text files, allowing the use of any text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII''' and '''LOAD "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=236File handling in SpecBAS2011-01-22T19:55:51Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be imported and exported as ASCII text files, allowing the use of any preferred text editor to create SpecBAS programs. Using '''SAVE "filename" ASCII''' and '''LOAD "filename" ASCII'''<br />
<br />
Specify ASCII after the filename (but before any LINE item). If LINE is present, then it will be saved with a flag to execute the program from that line when loaded. '''SAVE "filename" [[ASCII] LINE numexpr]''' Programs created in a text editor can be loaded into SpecBAS, as long as the header “ZXASCII” is the alone on the first line of the program.<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=220File handling in SpecBAS2011-01-16T21:14:04Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
BASIC listings can be imported and exported as ASCII text files, allowing the use of any preferred text editor. '''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=219File handling in SpecBAS2011-01-16T20:15:24Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
'''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=218File handling in SpecBAS2011-01-16T20:14:09Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
'''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD .S3M .MO3 .XM .IT .MTM .UMX .MP3 .MP2 .OGG .WAV .AIFF .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=217File handling in SpecBAS2011-01-16T20:12:57Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
'''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Supported audio file types:<br />
<br />
.MOD, .S3M, .MO3, .XM, .IT, .MTM, .UMX, .MP3, .MP2, .OGG, .WAV, .AIFF, .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=216File handling in SpecBAS2011-01-16T20:12:12Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
'''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing, exporting and working with data stored in any format.<br />
<br />
==Supported file formats==<br />
<br />
As well as handling program files, ZXASCII and BANK files, SpecBAS allows the importing of some common file types.<br />
<br />
Audio files:<br />
<br />
.MOD, .S3M, .MO3, .XM, .IT, .MTM, .UMX, .MP3, .MP2, .OGG, .WAV, .AIFF, .MP1</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=215File handling in SpecBAS2011-01-16T03:24:25Z<p>P13z: /* Banks */</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
'''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing and exporting data stored in any format.<br />
<br />
==Supported file formats==</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Constants_in_SpecBAS&diff=214Constants in SpecBAS2011-01-16T03:22:33Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to.<br />
<br />
==The full list of constants:==<br />
<br />
PI = 3.1415926535897932385<br />
For use with the FONT NEW command:<br />
FONT_MONO = 0<br />
FONT_COLOUR = 1<br />
Constants for identifying keys:<br />
KEY_BACKSPACE = 8<br />
KEY_TAB = 9<br />
KEY_RETURN = 13<br />
KEY_SHIFT = 16<br />
KEY_CONTROL = 17<br />
KEY_MENU = 18<br />
KEY_PAUSE = 19<br />
KEY_CAPS_LOCK = 20<br />
KEY_ESCAPE = 27<br />
KEY_SPACE = 32<br />
KEY_PG_UP = 33<br />
KEY_PG_DOWN = 34<br />
KEY_END = 35<br />
KEY_HOME = 36<br />
KEY_LEFT = 37<br />
KEY_UP = 38<br />
KEY_RIGHT = 39<br />
KEY_DOWN = 40<br />
KEY_PRINT = 42<br />
KEY_INSERT = 45<br />
KEY_DELETE = 46<br />
KEY_0 = 48<br />
KEY_1 = 49<br />
KEY_2 = 50<br />
KEY_3 = 51<br />
KEY_4 = 52<br />
KEY_5 = 53<br />
KEY_6 = 54<br />
KEY_7 = 55<br />
KEY_8 = 56<br />
KEY_9 = 57<br />
KEY_A = 65<br />
KEY_B = 66<br />
KEY_C = 67<br />
KEY_D = 68<br />
KEY_E = 69<br />
KEY_F = 70<br />
KEY_G = 71<br />
KEY_H = 72<br />
KEY_I = 73<br />
KEY_J = 74<br />
KEY_K = 75<br />
KEY_L = 76<br />
KEY_M = 77<br />
KEY_N = 78<br />
KEY_O = 79<br />
KEY_P = 80<br />
KEY_Q = 81<br />
KEY_R = 82<br />
KEY_S = 83<br />
KEY_T = 84<br />
KEY_U = 85<br />
KEY_V = 86<br />
KEY_W = 87<br />
KEY_X = 88<br />
KEY_Y = 89<br />
KEY_Z = 90<br />
KEY_LWIN = 91<br />
KEY_RWIN = 92<br />
KEY_NUMPAD_0 = 96<br />
KEY_NUMPAD_1 = 97<br />
KEY_NUMPAD_2 = 98<br />
KEY_NUMPAD_3 = 99<br />
KEY_NUMPAD_4 = 100<br />
KEY_NUMPAD_5 = 101<br />
KEY_NUMPAD_6 = 102<br />
KEY_NUMPAD_7 = 103<br />
KEY_NUMPAD_8 = 104<br />
KEY_NUMPAD_9 = 105<br />
KEY_MULTIPLY = 106<br />
KEY_ADD = 107<br />
KEY_SEPARATOR = 108<br />
KEY_SUBTRACT = 109<br />
KEY_DECIMAL = 110<br />
KEY_DIVIDE = 111<br />
KEY_F1 = 112<br />
KEY_F2 = 113<br />
KEY_F3 = 114<br />
KEY_F4 = 115<br />
KEY_F5 = 116<br />
KEY_F6 = 117<br />
KEY_F7 = 118<br />
KEY_F8 = 119<br />
KEY_F9 = 120<br />
KEY_F10 = 121<br />
KEY_F11 = 122<br />
KEY_F12 = 123<br />
KEY_NUM_LOCK = 144<br />
KEY_SCROLL_LOCK = 145</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=213Acquainting yourself with SpecBAS2011-01-16T03:15:48Z<p>P13z: /* Editor controls */</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program<br />
BASIC programs can also be loaded into specbas as ZXASCII text files from your editor of choice, detailed in [[File handling in SpecBAS]]<br />
<br />
==What can I do with it?==<br />
<br />
SpecBAS is broadly compatible with most forms of BASIC. Demo files are available for you to nose through. Writing games, utilities and fun-code in SpecBAS is remarkably simple. The speed of the interpreter, and vast amount of commands available allow impressive results to be achieved quickly. You could relive a couple of ZX81 type-ins, or just as easily throw together a fractal based animation, a slick arcade game, or useful utilities and tools.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=212Acquainting yourself with SpecBAS2011-01-16T03:14:34Z<p>P13z: /* What can I do with it? */</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program<br />
BASIC programs can also be loaded into specbas as text files from your editor of choice, detailed in [[File handling in SpecBAS]]<br />
<br />
==What can I do with it?==<br />
<br />
SpecBAS is broadly compatible with most forms of BASIC. Demo files are available for you to nose through. Writing games, utilities and fun-code in SpecBAS is remarkably simple. The speed of the interpreter, and vast amount of commands available allow impressive results to be achieved quickly. You could relive a couple of ZX81 type-ins, or just as easily throw together a fractal based animation, a slick arcade game, or useful utilities and tools.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=211Acquainting yourself with SpecBAS2011-01-16T02:57:16Z<p>P13z: /* Editor controls */</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program<br />
BASIC programs can also be loaded into specbas as text files from your editor of choice, detailed in [[File handling in SpecBAS]]<br />
<br />
==What can I do with it?==<br />
<br />
SpecBAS is broadly compatible with most forms of BASIC. Demo files are available for you to nose through. Writing games, utilities and just for the heck of it code in SpecBAS is remarkably simple.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=210Acquainting yourself with SpecBAS2011-01-16T02:56:17Z<p>P13z: /* Editor controls */</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program<br />
BASIC programs can also be loaded into specbas as text files from your editor of choice, detailed in [[File handling in SpecBAS:ZXASCII]]<br />
<br />
==What can I do with it?==<br />
<br />
SpecBAS is broadly compatible with most forms of BASIC. Demo files are available for you to nose through. Writing games, utilities and just for the heck of it code in SpecBAS is remarkably simple.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=209Acquainting yourself with SpecBAS2011-01-16T02:51:35Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program<br />
BASIC programs can also be loaded into specbas as text files from your editor of choice, detailed in [[File handling in SpecBAS]]<br />
<br />
==What can I do with it?==<br />
<br />
SpecBAS is broadly compatible with most forms of BASIC. Demo files are available for you to nose through. Writing games, utilities and just for the heck of it code in SpecBAS is remarkably simple.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=208Acquainting yourself with SpecBAS2011-01-14T02:49:24Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
Anyone familiar with BASIC may want to skip down to the 'editor controls' section<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=207File handling in SpecBAS2011-01-14T02:40:46Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
'''SAVE "filename" [[ASCII] LINE numexpr]'''<br />
<br />
==Banks==<br />
<br />
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.<br />
<br />
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.<br />
<br />
Loading and saving banks provides a powerful way of importing and exporting data stored in any format. etc<br />
<br />
==Supported file formats==</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=206File handling in SpecBAS2011-01-14T02:34:59Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
SAVE filename$ [[ASCII] LINE numexpr]<br />
<br />
==Banks==<br />
<br />
==Supported file formats==</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=205Acquainting yourself with SpecBAS2011-01-14T02:33:52Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ''':''' colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=204Acquainting yourself with SpecBAS2011-01-14T02:30:28Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ":" colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command '''RUN''' . To save a program to disk, enter '''SAVE "filename"''' . To retrieve a saved program, enter '''LOAD "filename"''' . The command '''NEW''' will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter '''20''' ). Entering '''QUIT''' will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=203File handling in SpecBAS2011-01-14T02:27:33Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
==Banks==<br />
<br />
==Supported file formats==</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=202File handling in SpecBAS2011-01-14T02:22:29Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types in SpecBAS - *page is incomplete*<br />
<br />
==File system==<br />
<br />
==Program files==<br />
<br />
Using SAVE "filename" saves your BASIC listing as a SpecBAS program file. LOAD "filename" is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. SAVE "filename" LINE 10 . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.<br />
<br />
MERGE "filename" merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.<br />
<br />
==ZXASCII==<br />
<br />
==Banks==<br />
<br />
==Supported file formats==</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=201Acquainting yourself with SpecBAS2011-01-14T00:14:47Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ":" colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command> RUN. To save a program to disk, enter> SAVE "filename" . To retrieve a saved program, enter> LOAD "filename" . The command> NEW will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter> 20 ). Entering> QUIT will exit SpecBAS. <br />
<br />
==Editor controls==<br />
<br />
ctrl + cursor up = select previous line<br />
ctrl + cursor down = select next line<br />
ctrl + f1 = edit selected line<br />
escape = terminate, or 'break into' program</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Command_list_for_SpecBAS&diff=200Command list for SpecBAS2011-01-13T23:52:20Z<p>P13z: Created page with "category:Specbas The complete list of SpecBAS commands can currently be found in the SpecOS_reference.doc file. This is included in the .zip distribution of SpecBAS, and is ..."</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
The complete list of SpecBAS commands can currently be found in the SpecOS_reference.doc file. This is included in the .zip distribution of SpecBAS, and is also available to download from ftp://zxdunny.dyndns.org/SpecOS/SpecOS_reference.doc</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=File_handling_in_SpecBAS&diff=199File handling in SpecBAS2011-01-13T23:36:17Z<p>P13z: Created page with "category:Specbas Dealing with files and file types"</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Dealing with files and file types</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=198Acquainting yourself with SpecBAS2011-01-13T23:31:47Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ":" colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command> RUN. To stop a program that is running and return to the editor, press escape. To save a program to disk, enter> SAVE "filename" . To retrieve a saved program, enter> LOAD "filename" . The command> NEW will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter> 20 ).</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Acquainting_yourself_with_SpecBAS&diff=197Acquainting yourself with SpecBAS2011-01-13T23:28:58Z<p>P13z: Created page with "category:Specbas A quick guide to getting started in SpecBAS ==The BASICs for new users== When SpecBAS starts up, you will be greeted with a window, which is blank other t..."</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting started in SpecBAS<br />
<br />
==The BASICs for new users==<br />
<br />
When SpecBAS starts up, you will be greeted with a window, which is blank other than a copyright message. SpecBAS is controlled by BASIC commands, which can be typed into the 'command line' at the bottom of the screen, and executed by pressing enter/return. If SpecBAS does not understand the command, the cursor will move to the point of the error and flash red. The layout will be familiar to anyone who has had experience of old 8-bit computers such as the Sinclair or Timex machines.<br />
<br />
==Hello World==<br />
<br />
Commands can be stored into memory by pre-fixing them with a line number, they are arranged by line number to form a program. The program currently stored in memory will be displayed at the top of the window. More than one command can be stored on one line, or executed from the command line, by separating them with a ":" colon. For example, enter the following program:<br />
10 PRINT "Hello World"<br />
20 PRINT "Goodbye": PRINT "World"<br />
This should now be stored in memory, and displayed at the top of the window. To execute a program, enter the command> RUN. To save a program to disk, enter> SAVE "filename" . To retrieve a saved program, enter> LOAD "filename" . The command> NEW will erase a program from memory. Individual lines can be erased by entering their line number alone ( to erase line 20, simply enter> 20 ).</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Constants_in_SpecBAS&diff=196Constants in SpecBAS2011-01-12T01:34:15Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to.<br />
<br />
==The full list of constants:==<br />
<br />
PI = 3.1415926535897932385<br />
<br />
For use with the FONT NEW command:<br />
FONT_MONO = 0<br />
FONT_COLOUR = 1<br />
<br />
Constants for identifying keys:<br />
KEY_BACKSPACE = 8<br />
KEY_TAB = 9<br />
KEY_RETURN = 13<br />
KEY_SHIFT = 16<br />
KEY_CONTROL = 17<br />
KEY_MENU = 18<br />
KEY_PAUSE = 19<br />
KEY_CAPS_LOCK = 20<br />
KEY_ESCAPE = 27<br />
KEY_SPACE = 32<br />
KEY_PG_UP = 33<br />
KEY_PG_DOWN = 34<br />
KEY_END = 35<br />
KEY_HOME = 36<br />
KEY_LEFT = 37<br />
KEY_UP = 38<br />
KEY_RIGHT = 39<br />
KEY_DOWN = 40<br />
KEY_PRINT = 42<br />
KEY_INSERT = 45<br />
KEY_DELETE = 46<br />
KEY_0 = 48<br />
KEY_1 = 49<br />
KEY_2 = 50<br />
KEY_3 = 51<br />
KEY_4 = 52<br />
KEY_5 = 53<br />
KEY_6 = 54<br />
KEY_7 = 55<br />
KEY_8 = 56<br />
KEY_9 = 57<br />
KEY_A = 65<br />
KEY_B = 66<br />
KEY_C = 67<br />
KEY_D = 68<br />
KEY_E = 69<br />
KEY_F = 70<br />
KEY_G = 71<br />
KEY_H = 72<br />
KEY_I = 73<br />
KEY_J = 74<br />
KEY_K = 75<br />
KEY_L = 76<br />
KEY_M = 77<br />
KEY_N = 78<br />
KEY_O = 79<br />
KEY_P = 80<br />
KEY_Q = 81<br />
KEY_R = 82<br />
KEY_S = 83<br />
KEY_T = 84<br />
KEY_U = 85<br />
KEY_V = 86<br />
KEY_W = 87<br />
KEY_X = 88<br />
KEY_Y = 89<br />
KEY_Z = 90<br />
KEY_LWIN = 91<br />
KEY_RWIN = 92<br />
KEY_NUMPAD_0 = 96<br />
KEY_NUMPAD_1 = 97<br />
KEY_NUMPAD_2 = 98<br />
KEY_NUMPAD_3 = 99<br />
KEY_NUMPAD_4 = 100<br />
KEY_NUMPAD_5 = 101<br />
KEY_NUMPAD_6 = 102<br />
KEY_NUMPAD_7 = 103<br />
KEY_NUMPAD_8 = 104<br />
KEY_NUMPAD_9 = 105<br />
KEY_MULTIPLY = 106<br />
KEY_ADD = 107<br />
KEY_SEPARATOR = 108<br />
KEY_SUBTRACT = 109<br />
KEY_DECIMAL = 110<br />
KEY_DIVIDE = 111<br />
KEY_F1 = 112<br />
KEY_F2 = 113<br />
KEY_F3 = 114<br />
KEY_F4 = 115<br />
KEY_F5 = 116<br />
KEY_F6 = 117<br />
KEY_F7 = 118<br />
KEY_F8 = 119<br />
KEY_F9 = 120<br />
KEY_F10 = 121<br />
KEY_F11 = 122<br />
KEY_F12 = 123<br />
KEY_NUM_LOCK = 144<br />
KEY_SCROLL_LOCK = 145</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Constants_in_SpecBAS&diff=195Constants in SpecBAS2011-01-12T01:33:24Z<p>P13z: Created page with "category:Specbas Some constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to. ==The full list of consta..."</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
Some constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to.<br />
<br />
==The full list of constants:==<br />
<br />
PI = 3.1415926535897932385<br />
<br />
For use with the FONT NEW command:<br />
FONT_MONO = 0<br />
FONT_COLOUR = 1<br />
<br />
Constants for identifying keys:<br />
KEY_BACKSPACE = 8<br />
KEY_TAB = 9<br />
KEY_RETURN = 13<br />
KEY_SHIFT = 16<br />
KEY_CONTROL = 17<br />
KEY_MENU = 18<br />
KEY_PAUSE = 19<br />
KEY_CAPS_LOCK = 20<br />
KEY_ESCAPE = 27<br />
KEY_SPACE = 32<br />
KEY_PG_UP = 33<br />
KEY_PG_DOWN = 34<br />
KEY_END = 35<br />
KEY_HOME = 36<br />
KEY_LEFT = 37<br />
KEY_UP = 38<br />
KEY_RIGHT = 39<br />
KEY_DOWN = 40<br />
KEY_PRINT = 42<br />
KEY_INSERT = 45<br />
KEY_DELETE = 46<br />
KEY_0 = 48<br />
KEY_1 = 49<br />
KEY_2 = 50<br />
KEY_3 = 51<br />
KEY_4 = 52<br />
KEY_5 = 53<br />
KEY_6 = 54<br />
KEY_7 = 55<br />
KEY_8 = 56<br />
KEY_9 = 57<br />
KEY_A = 65<br />
KEY_B = 66<br />
KEY_C = 67<br />
KEY_D = 68<br />
KEY_E = 69<br />
KEY_F = 70<br />
KEY_G = 71<br />
KEY_H = 72<br />
KEY_I = 73<br />
KEY_J = 74<br />
KEY_K = 75<br />
KEY_L = 76<br />
KEY_M = 77<br />
KEY_N = 78<br />
KEY_O = 79<br />
KEY_P = 80<br />
KEY_Q = 81<br />
KEY_R = 82<br />
KEY_S = 83<br />
KEY_T = 84<br />
KEY_U = 85<br />
KEY_V = 86<br />
KEY_W = 87<br />
KEY_X = 88<br />
KEY_Y = 89<br />
KEY_Z = 90<br />
KEY_LWIN = 91<br />
KEY_RWIN = 92<br />
KEY_NUMPAD_0 = 96<br />
KEY_NUMPAD_1 = 97<br />
KEY_NUMPAD_2 = 98<br />
KEY_NUMPAD_3 = 99<br />
KEY_NUMPAD_4 = 100<br />
KEY_NUMPAD_5 = 101<br />
KEY_NUMPAD_6 = 102<br />
KEY_NUMPAD_7 = 103<br />
KEY_NUMPAD_8 = 104<br />
KEY_NUMPAD_9 = 105<br />
KEY_MULTIPLY = 106<br />
KEY_ADD = 107<br />
KEY_SEPARATOR = 108<br />
KEY_SUBTRACT = 109<br />
KEY_DECIMAL = 110<br />
KEY_DIVIDE = 111<br />
KEY_F1 = 112<br />
KEY_F2 = 113<br />
KEY_F3 = 114<br />
KEY_F4 = 115<br />
KEY_F5 = 116<br />
KEY_F6 = 117<br />
KEY_F7 = 118<br />
KEY_F8 = 119<br />
KEY_F9 = 120<br />
KEY_F10 = 121<br />
KEY_F11 = 122<br />
KEY_F12 = 123<br />
KEY_NUM_LOCK = 144<br />
KEY_SCROLL_LOCK = 145</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Mac&diff=194Installing SpecBAS for Mac2011-01-08T16:35:31Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
There has not yet been a port to Mac (as far as we are aware). The source for SpecBAS should be 'relatively' simple to adapt and to compile. The bass audio library is well tested for Mac OSX, and available at http://www.un4seen.com/<br />
<br />
If anyone can offer an example of, or information about a Mac version of SpecBAS, it would be good to see it posted up here.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Mac&diff=193Installing SpecBAS for Mac2011-01-08T15:51:55Z<p>P13z: Created page with "category:Specbas There has not yet been a port to Mac (as far as we are aware). The source for SpecBAS should be 'relatively' simple to adapt and to compile, and the bass au..."</p>
<hr />
<div>[[category:Specbas]]<br />
<br />
There has not yet been a port to Mac (as far as we are aware). The source for SpecBAS should be 'relatively' simple to adapt and to compile, and the bass audio library is available and well tested for Mac OSX.<br />
<br />
If anyone can offer an example of, or information about a Mac version of SpecBAS, it would be good to see it posted up here.</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Linux&diff=191Installing SpecBAS for Linux2011-01-03T22:56:14Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Linux systems<br />
<br />
==Downloading SpecBAS for Linux==<br />
<br />
The current version of SpecBAS for Linux can be found at http://reallyquick.co.uk/specbas/<br />
<br />
The SpecBAS_linux.tar.gz file contains the SpecBAS binary file, libbass.so and the relevant source files.<br />
<br />
==Running SpecBAS for Linux==<br />
<br />
To run the current version of SpecBAS, you will need to have the bass audio library installed. The easiest way to achieve this is to copy the libbass.so file, included in the SpecBAS_linux folder, to your /lib directory. The SpecBAS binary should then run from any location you wish to keep it.<br />
<br />
Upon fist execution, SpecBAS will create its working directory; /home/user/specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is available for anyone wishing to compile SpecBAS for Linux using Lazarus. The SpecBAS source files are also available at ftp://zxdunny.dyndns.org/ , negating the need to download the binary when acquiring the latest source files. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Linux&diff=190Installing SpecBAS for Linux2011-01-03T22:55:50Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Linux systems<br />
<br />
==Downloading SpecBAS for Linux==<br />
<br />
The current version of SpecBAS for Linux can be found at http://reallyquick.co.uk/specbas/<br />
<br />
The SpecBAS_linux.tar.gz file contains the SpecBAS binary file, libbass.so and the relevant source files.<br />
<br />
==Running SpecBAS for Linux==<br />
o <br />
To run the current version of SpecBAS, you will need to have the bass audio library installed. The easiest way to achieve this is to copy the libbass.so file, included in the SpecBAS_linux folder, to your /lib directory. The SpecBAS binary should then run from any location you wish to keep it.<br />
<br />
Upon fist execution, SpecBAS will create its working directory; /home/user/specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is available for anyone wishing to compile SpecBAS for Linux using Lazarus. The SpecBAS source files are also available at ftp://zxdunny.dyndns.org/ , negating the need to download the binary when acquiring the latest source files. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Windows&diff=189Installing SpecBAS for Windows2011-01-03T22:53:58Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Windows systems<br />
<br />
==Downloading SpecBAS for Windows==<br />
<br />
The current version of SpecBAS for Windows can be found at ftp://zxdunny.dyndns.org/<br />
<br />
The SpecOS.zip file contains the SpecBAS.exe file, bass.dll and the relevant source files.<br />
<br />
==Running SpecBAS for Windows==<br />
<br />
The current version of the SpecBAS.exe should run from any location you wish to keep it. It will require that the bass.dll file, included in the SpecOS folder, is installed or within the same directory.<br />
<br />
Upon fist execution, SpecBAS will create its working directory; \Documents and Settings\User\specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is available for anyone wishing to compile SpecBAS for Windows. The bass audio library is also available from http://www.un4seen.com/</div>P13zhttps://sinclair.wiki.zxnet.co.uk/w/index.php?title=Installing_SpecBAS_for_Linux&diff=188Installing SpecBAS for Linux2011-01-03T22:33:41Z<p>P13z: </p>
<hr />
<div>[[category:Specbas]]<br />
<br />
A quick guide to getting the current version of SpecBAS up and running on Linux systems<br />
<br />
==Downloading SpecBAS for Linux==<br />
<br />
The current version of SpecBAS for Linux can be found at http://reallyquick.co.uk/specbas/<br />
<br />
The SpecBAS_linux.tar.gz file contains the SpecBAS binary file, and the relevant source files.<br />
<br />
==Running SpecBAS for Linux==<br />
<br />
To run the current version of SpecBAS, you will need to have the bass audio library installed. The easiest way to achieve this is to copy the libbass.so file, included in the SpecBAS_linux folder, to your /lib directory. The SpecBAS binary should then run from any location you wish to keep it.<br />
<br />
Upon fist execution, SpecBAS will create its working directory; /home/user/specbas . This folder is effectively the root folder for SpecBAS/SpecOS, where SpecBAS will load files from, and save files to. SpecBAS will be unaware of any files located outside of this folder.<br />
<br />
==Compiling your own version==<br />
All the source is available for anyone wishing to compile SpecBAS for Linux using Lazarus. The SpecBAS source files are also available at ftp://zxdunny.dyndns.org/ , negating the need to download the binary when acquiring the latest source files. The bass audio library is also available from http://www.un4seen.com/</div>P13z