GW-BASIC
GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from IBM BASICA. Functionally identical to BASICA, its BASIC interpreter is a fully self-contained executable and does not need the Cassette BASIC ROM found in the original. It was bundled with MS-DOS operating systems on IBM PC–compatibles by Microsoft. The language is 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 aspiring programmers to learn the fundamentals of computer programming. Microsoft also sold a BASIC compiler, BASCOM, compatible with GW-BASIC, for programs needing more speed. According to Mark Jones Lorenzo, given the scope of the language, "GW-BASIC is arguably the ne plus ultra of Microsoft's family of line-numbered BASICs stretching back to Altair BASIC — and perhaps even of line-numbered BASIC in general." With the release of MS-DOS 5.0, GW-BASIC's place was taken by QBasic, a slightly...
GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from IBM BASICA. Functionally identical to BASICA, its BASIC interpreter is a fully self-contained executable and does not need the Cassette BASIC ROM found in the original. It was bundled with MS-DOS operating systems on IBM PC–compatibles by Microsoft. The language is 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 aspiring programmers to learn the fundamentals of computer programming. Microsoft also sold a BASIC compiler, BASCOM, compatible with GW-BASIC, for programs needing more speed. According to Mark Jones Lorenzo, given the scope of the language, "GW-BASIC is arguably the ne plus ultra of Microsoft's family of line-numbered BASICs stretching back to Altair BASIC — and perhaps even of line-numbered BASIC in general." With the release of MS-DOS 5.0, GW-BASIC's place was taken by QBasic, a slightly abridged version of the interpreter part of the separately available QuickBASIC interpreter and compiler package. On May 21, 2020, Microsoft released the 8088 assembler source code for GW-BASIC 1.0 on GitHub under the MIT License. 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)= statement (e.g., ). 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 (32-bit MBF). GW-BASIC allows use of joystick and light pen input devices. GW-BASIC can read from and write to files and COM ports; it can also do event trapping for ports. Since the cassette tape port interface of the original IBM PC was never implemented on compatibles, cassette operations are not supported. GW-BASIC can play simple music using the PLAY statement, needing a string of notes represented in a music macro language, e.g., PLAY "edcdeeL2edfedL4c" . 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. GW-BASIC for the Tandy 1000 allows up to three channels of sound for the SOUND and PLAY commands.
References
- ^ "GW-BASIC" . 2005-04-13. Archived from the original on 2008-06-29 . Retrieved 2008-06-28 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1214607600.0
- ^ "The 25th Birthday of BASIC" (PDF) . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1795129200.0
- ^ KindlyRat. "GW-BASIC" . Archived from the original on 2005-07-26 . Retrieved 2009-11-10 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1257807600.0
- ^ Leon. "GWBASIC Games & Other Programs" . Archived from the original on 2009-10-26 . Retrieved 2009-11-10 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1257807600.0
- ^ "Microsoft BASIC version information" . Retrieved 2008-06-12 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1213225200.0
- ^ "Linux Dictionary:G" . Retrieved 2008-06-28 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1214607600.0
- ^ "GW-BASIC Documentation and Utilities" . Archived from the original on 2007-12-17. Wikipedia revision 1374883415, retrieved 2026-11-20 · 1795129200.0
- ^ a b "GW-BASIC User's Guide" . 1987 . Retrieved 2008-06-28 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1214607600.0
- ^ a b Gregory Whitten (2005-04-13). "GW-BASIC" . Archived from the original on 2008-09-20 . Retrieved 2008-06-29 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1214694000.0
- ^ Lorenzo, Mark (2017). Endless Loop: The History of the BASIC Programming Language . Philadelphia: SE Books. p. 122. ISBN 978-1974-27707-0 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1795129200.0
- ^ a b Turner, Rich. "Microsoft Open-Sources GW-BASIC" . Windows Command Line . Microsoft . Retrieved May 22, 2020 . Wikipedia revision 1374883415, retrieved 2026-11-20 · 1795129200.0
- geocities.com . · 1789340400.0
- GW-BASIC . 2005-04-13. retrieved 2008-06-28 · 1214607600.0
- The 25th Birthday of BASIC . · 1789340400.0
- web.archive.org . (archived copy) · 1789340400.0
- Leon. GWBASIC Games & Other Programs . retrieved 2009-11-10 · 1257807600.0
- Microsoft BASIC version information . retrieved 2008-06-12 · 1213225200.0
- Turner, Rich. Microsoft Open-Sources GW-BASIC . Windows Command Line . · 1789340400.0
- GW-BASIC Documentation and Utilities . · 1789340400.0
- GW-BASIC User's Guide . 1987. retrieved 2008-06-28 · 1214607600.0
- == Name == There are several theories on what the initials "GW" represent. Greg Whitten, an early Microsoft employee who developed the standards in the company's BASIC compiler line, says that . · 1789340400.0
- Other common theories as to the initials' origins include "Graphics and Windows", "Bill Gates|Gates, William" (Microsoft's president at the time), or "Gates–Whitten" (the two main designers of the . · 1789340400.0
Cite this
"GW-BASIC". 1789397131. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1374883415