GW-BASIC

GW-BASIC
GW-BASIC
GW-BASIC 3.23
Appeared in 1983
Developer Microsoft (for Compaq)
Stable release 3.23 (1988)
Influenced by IBM Cassette BASIC, IBM Disk BASIC, IBM BASICA
Influenced QBasic, QuickBasic
OS DOS

GW-BASIC was a dialect of the programming language BASIC developed by Microsoft from BASICA, originally for Compaq. It is compatible with Microsoft/IBM BASICA, but was disk based and did not need the ROM BASIC. It was bundled with MS-DOS operating systems on IBM PC compatibles by Microsoft. Microsoft also sold a BASIC compiler, BASCOM, compatible with GW-BASIC, for programs needing more speed. The language was suitable for simple games, business programs and the like. Since it was included with most versions of MS-DOS, it was also a low cost way for many would-be programmers to learn the fundamentals of computer programming.[1][2] With the release of MS-DOS 5.0, GW-BASIC's place was eventually taken by QBasic, a cut-down version of the separately available QuickBASIC compiler.[3]

Contents

Syntax

GW-BASIC has a command line-based integrated development environment (IDE) based on Dartmouth BASIC. It also includes function key shortcuts at the bottom of the screen. Like other early microcomputer versions of BASIC, GW-BASIC lacked many of the structures needed for structured programming such as local variables, and GW-BASIC programs executed relatively slowly, because it was an interpreted programming language. All program lines must be numbered; all non-numbered lines are considered to be commands in direct mode to be executed immediately. Program source files are normally saved in binary compressed format with tokens replacing commands, with an option to save in ASCII text form.[4]

The GW-BASIC command-line environment has commands to RUN,LOAD,SAVE,LIST the current program, or quit to the operating SYSTEM; these commands can also be used as program statements. There is little support for structured programming in GW-BASIC. All IF/THEN/ELSE conditional statements must be written on one line, although WHILE/WEND statements may group multiple lines. Functions can only be defined using the single line DEF FNf(x)=<mathematical function of x> statement (e.g., DEF FNLOG(base,number)=LOG(number)/LOG(base)). The data type of variables can be specified with a character at the end of the variable name: A$ is a string of characters, A% is an integer, etc. Groups of variables can also be set to default types based on the initial letter of their name by use of the DEFINT, DEFSTR, etc., statements. The default type for undeclared variables not identified by such typing statements, is single-precision floating point.[5]

GW-BASIC allowed use of joystick, mouse and light pen input devices of its time. GW-BASIC can read from and write to files and COM ports; it can also do event trapping for ports. Since the cassette port interface of the original IBM PC was never implemented on compatibles, cassette operations are not supported. GW-BASIC is able to play simple music using the PLAY statement, needing a string of notes represented in a music macro language (e.g. PLAY "edcdeee2dfedc4"). More low-level control is possible with the SOUND statement, which takes the arguments of a frequency in hertz and a length in clock ticks for the standard internal PC speaker in IBM machines. Consequently sound is limited to single channel beeps and whistles as befits a 'business' machine. Home-based PCs such as the Tandy 1000 allowed up to three channels of sound for the SOUND and PLAY commands.[5]

Name

There are several theories on what the initials "GW" stand for. Greg Whitten, an early Microsoft employee who developed the standards in the company's BASIC compiler line, says Bill Gates picked the name GW-BASIC. Whitten refers to it as Gee-Whiz BASIC and is unsure if Gates named the program after him.[6] The Microsoft User Manual from Microsoft Press also refers to it by this name.[citation needed] It may have also been nicknamed Gee-Whiz because it had a large number of graphics commands.[6] Other common theories as to the initials' origins include "Graphics and Windows", "Gates, William" (Microsoft's president at the time), or "Gates-Whitten" (the two main designers of the program).[7][8]

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Basic (langage) — BASIC Pour les articles homonymes, voir Basic. {{{image}}}   Sigles d une seule lettre   Sigles de deux lettres   Sigles de trois lettres …   Wikipédia en Français

  • BASIC — Información general Paradigma estructurado imperativo Apareció en 1964 Diseñado por John George Kemeny; Thomas Eugene Kurtz …   Wikipedia Español

  • Basic English — Basic English, also known as Simple English, is an English based controlled language created (in essence as a simplified subset of English) by linguist and philosopher Charles Kay Ogden as an international auxiliary language, and as an aid for… …   Wikipedia

  • BASIC — Класс языка: алгоритмическое, процедурное, объектное программирование Появился в: 1963 г. Расширение файлов: .bas Типизация данных: нестрогая Бейсик (от BASIC, сокращение от англ.  …   Википедия

  • BASIC-256 — с …   Википедия

  • Basic AG — Rechtsform Aktiengesellschaft Gründung 1997 Sitz Mü …   Deutsch Wikipedia

  • Basic writing — Basic writing, or developmental writing, is a discipline of composition studies which focuses on the writing of students sometimes otherwise called remedial or underprepared , usually freshman college students. Contents 1 Defining Basic Writing 2 …   Wikipedia

  • Basic-Englisch — Basic English ist eine vereinfachte Form des Englischen, in der lediglich die wichtigsten Wörter der englischen Sprache vorkommen. Die von Charles Kay Ogden im Jahr 1930 geschaffene Englischvariante wird manchmal auch als Plansprache bezeichnet,… …   Deutsch Wikipedia

  • Basic Englisch — Basic English ist eine vereinfachte Form des Englischen, in der lediglich die wichtigsten Wörter der englischen Sprache vorkommen. Die von Charles Kay Ogden im Jahr 1930 geschaffene Englischvariante wird manchmal auch als Plansprache bezeichnet,… …   Deutsch Wikipedia

  • Basic Channel — Moritz von Oswald Mark Ernestus en 2007 au festival MUTEK Surnom Maurizio …   Wikipédia en Français

  • Basic Channel (label) — Basic Channel Basic Channel Moritz von Oswald Mark Ernestus en 2007 au festival MUTEK Alias Maurizio …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”