Jump to content

BASIC extension: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Moved a sentence to a different section
→‎Functionality: Added a bit more to the functionality.
Line 6: Line 6:


== Functionality ==
== Functionality ==
Typical toolkit functionality included editing extensions, such as commands to renumber a program, perform block line deletions and so on, and additional keywords to perform new functions.
Typical toolkit functionality included editing extensions, such as commands to renumber a program, perform block line deletions and so on, facilities to make [[structured programming]] possible, and additional keywords to perform new functions. In the case of the latter, these new functions often allowed the programmer to easily access the computer's [[computer graphics|graphics]], [[sound effects|sound]] and other hardware which would have otherwise been achieved by arcane usage of ''[[PEEK and POKE]]'' commands and [[machine language]] [[routine]]s.


== Examples ==
== Examples ==

Revision as of 12:35, 1 October 2005

BASIC toolkits (aka BASIC extensions) - not to be confused with widget toolkits - were a common type of program for 1980s 8-bit home computers. Generally third-party extensions, they added additional features to the built-in BASIC interpreter.

Toolkits ran as terminate and stay resident extensions to the BASIC interpreter supplied with the machine. At the time, such interpreters almost always came programmed into the ROM of the computer, making it impossible to modify or patch the code. It was also extremely rare for manufacturers to offer upgrades or bugfixes except as part of new models of machine.

As the original language was held in immutable ROM, it generally was difficult for a toolkit to directly extend the language, except by adding new keywords to perform functions not implemented by the original interpreter.

Functionality

Typical toolkit functionality included editing extensions, such as commands to renumber a program, perform block line deletions and so on, facilities to make structured programming possible, and additional keywords to perform new functions. In the case of the latter, these new functions often allowed the programmer to easily access the computer's graphics, sound and other hardware which would have otherwise been achieved by arcane usage of PEEK and POKE commands and machine language routines.

Examples

The Lightning BASIC toolkit extended the Amstrad PCW's Mallard BASIC language with many new facilities - see the Mallard BASIC article for details.

The Beta BASIC extension to Sinclair BASIC on the ZX Spectrum computer started out as a simple toolkit but grew into an interpreter in its own right.

The Super Expander was a cartridge for the Commodore VIC-20. It was designed to provide several extensions to the BASIC interpreter on the computer, mostly to help with programming graphics and sound.

See also