encyclopegia.org

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 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.

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

  1. GW-BASIC · retrieved 2008-06-27 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC." 2008-06-27. https://web.archive.org/web/20080629053601/http://classiccmp.org/pipermail/cctech/2005-April/042967.html. Accessed 24 November 2026.

    Chicago "GW-BASIC." 2008-06-27. https://web.archive.org/web/20080629053601/http://classiccmp.org/pipermail/cctech/2005-April/042967.html.

    APA encyclopegia.org. (2008). GW-BASIC. Retrieved November 24, 2026, from https://web.archive.org/web/20080629053601/http://classiccmp.org/pipermail/cctech/2005-April/042967.html

  2. The 25th Birthday of BASIC · retrieved 2026-11-19 · rev 1374883415
    Cite this reference

    MLA "The 25th Birthday of BASIC." "The 25th Birthday of BASIC" (PDF). 2026-11-19. https://byte.tsundoku.io/pdfs/198910_Byte_Magazine_Vol_14-10_Mac_Portable.pdf#page=336. Accessed 24 November 2026.

    Chicago "The 25th Birthday of BASIC." "The 25th Birthday of BASIC" (PDF). 2026-11-19. https://byte.tsundoku.io/pdfs/198910_Byte_Magazine_Vol_14-10_Mac_Portable.pdf#page=336.

    APA "The 25th Birthday of BASIC" (PDF). (2026). The 25th Birthday of BASIC. Retrieved November 24, 2026, from https://byte.tsundoku.io/pdfs/198910_Byte_Magazine_Vol_14-10_Mac_Portable.pdf#page=336

  3. GW-BASIC · retrieved 2009-11-09 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC." KindlyRat. 2009-11-09. https://web.archive.org/web/20050726081451/http://www.geocities.com/KindlyRat/GWBASIC.html. Accessed 24 November 2026.

    Chicago "GW-BASIC." KindlyRat. 2009-11-09. https://web.archive.org/web/20050726081451/http://www.geocities.com/KindlyRat/GWBASIC.html.

    APA KindlyRat. (2009). GW-BASIC. Retrieved November 24, 2026, from https://web.archive.org/web/20050726081451/http://www.geocities.com/KindlyRat/GWBASIC.html

  4. GWBASIC Games & Other Programs · retrieved 2009-11-09 · rev 1374883415
    Cite this reference

    MLA "GWBASIC Games & Other Programs." Leon. 2009-11-09. https://web.archive.org/web/20091026133328/http://peyre.sqweebs.com/GWBASIC/index.htm. Accessed 24 November 2026.

    Chicago "GWBASIC Games & Other Programs." Leon. 2009-11-09. https://web.archive.org/web/20091026133328/http://peyre.sqweebs.com/GWBASIC/index.htm.

    APA Leon. (2009). GWBASIC Games & Other Programs. Retrieved November 24, 2026, from https://web.archive.org/web/20091026133328/http://peyre.sqweebs.com/GWBASIC/index.htm

  5. Microsoft BASIC version information · retrieved 2008-06-11 · rev 1374883415
    Cite this reference

    MLA "Microsoft BASIC version information." 2008-06-11. http://www.emsps.com/oldtools/msbasv.htm#qbasic. Accessed 24 November 2026.

    Chicago "Microsoft BASIC version information." 2008-06-11. http://www.emsps.com/oldtools/msbasv.htm#qbasic.

    APA encyclopegia.org. (2008). Microsoft BASIC version information. Retrieved November 24, 2026, from http://www.emsps.com/oldtools/msbasv.htm#qbasic

  6. Linux Dictionary:G · retrieved 2008-06-27 · rev 1374883415
    Cite this reference

    MLA "Linux Dictionary:G." 2008-06-27. http://www.tldp.org/LDP/Linux-Dictionary/html/g.html. Accessed 24 November 2026.

    Chicago "Linux Dictionary:G." 2008-06-27. http://www.tldp.org/LDP/Linux-Dictionary/html/g.html.

    APA encyclopegia.org. (2008). Linux Dictionary:G. Retrieved November 24, 2026, from http://www.tldp.org/LDP/Linux-Dictionary/html/g.html

  7. GW-BASIC Documentation and Utilities · retrieved 2026-11-19 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC Documentation and Utilities." 2026-11-19. https://web.archive.org/web/20071217161146/http://www.xs4all.nl/~hwiegman/gwbasic.html. Accessed 24 November 2026.

    Chicago "GW-BASIC Documentation and Utilities." 2026-11-19. https://web.archive.org/web/20071217161146/http://www.xs4all.nl/~hwiegman/gwbasic.html.

    APA encyclopegia.org. (2026). GW-BASIC Documentation and Utilities. Retrieved November 24, 2026, from https://web.archive.org/web/20071217161146/http://www.xs4all.nl/~hwiegman/gwbasic.html

  8. GW-BASIC User's Guide · retrieved 2008-06-27 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC User's Guide." a b "GW-BASIC User's Guide". 2008-06-27. http://www.xs4all.nl/~hwiegman/gw-man/index.html. Accessed 24 November 2026.

    Chicago "GW-BASIC User's Guide." a b "GW-BASIC User's Guide". 2008-06-27. http://www.xs4all.nl/~hwiegman/gw-man/index.html.

    APA a b "GW-BASIC User's Guide". (2008). GW-BASIC User's Guide. Retrieved November 24, 2026, from http://www.xs4all.nl/~hwiegman/gw-man/index.html

  9. GW-BASIC · retrieved 2008-06-28 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC." a b Gregory Whitten (2005-04-13). 2008-06-28. https://web.archive.org/web/20080920032110/http://classiccmp.org/pipermail/cctech/2005-April/042999.html. Accessed 24 November 2026.

    Chicago "GW-BASIC." a b Gregory Whitten (2005-04-13). 2008-06-28. https://web.archive.org/web/20080920032110/http://classiccmp.org/pipermail/cctech/2005-April/042999.html.

    APA a b Gregory Whitten (2005-04-13). (2008). GW-BASIC. Retrieved November 24, 2026, from https://web.archive.org/web/20080920032110/http://classiccmp.org/pipermail/cctech/2005-April/042999.html

  10. 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 · retrieved 2026-11-19 · rev 1374883415
    Cite this reference

    MLA "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." Lorenzo, Mark (2017). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.

    Chicago "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." Lorenzo, Mark (2017). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Lorenzo, Mark (2017). (2026). 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. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  11. Microsoft Open-Sources GW-BASIC · retrieved 2026-11-19 · rev 1374883415
    Cite this reference

    MLA "Microsoft Open-Sources GW-BASIC." a b Turner, Rich. 2026-11-19. https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/. Accessed 24 November 2026.

    Chicago "Microsoft Open-Sources GW-BASIC." a b Turner, Rich. 2026-11-19. https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/.

    APA a b Turner, Rich. (2026). Microsoft Open-Sources GW-BASIC. Retrieved November 24, 2026, from https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/

  12. geocities.com . · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "geocities.com ." geocities. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "geocities.com ." geocities. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA geocities. (2026). geocities.com . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  13. GW-BASIC . 2005-04-13. retrieved 2008-06-28 · retrieved 2008-06-27 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC . 2005-04-13. retrieved 2008-06-28." GW-BASIC. 2008-06-27. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "GW-BASIC . 2005-04-13. retrieved 2008-06-28." GW-BASIC. 2008-06-27. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA GW-BASIC. (2008). GW-BASIC . 2005-04-13. retrieved 2008-06-28. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  14. The 25th Birthday of BASIC . · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "The 25th Birthday of BASIC ." 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "The 25th Birthday of BASIC ." 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA encyclopegia.org. (2026). The 25th Birthday of BASIC . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  15. web.archive.org . (archived copy) · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "web.archive.org . (archived copy)." web. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "web.archive.org . (archived copy)." web. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA web. (2026). web.archive.org . (archived copy). Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  16. Leon. GWBASIC Games & Other Programs . retrieved 2009-11-10 · retrieved 2009-11-09 · rev 1374883415
    Cite this reference

    MLA "Leon. GWBASIC Games & Other Programs . retrieved 2009-11-10." Leon. 2009-11-09. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "Leon. GWBASIC Games & Other Programs . retrieved 2009-11-10." Leon. 2009-11-09. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA Leon. (2009). Leon. GWBASIC Games & Other Programs . retrieved 2009-11-10. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  17. Microsoft BASIC version information . retrieved 2008-06-12 · retrieved 2008-06-11 · rev 1374883415
    Cite this reference

    MLA "Microsoft BASIC version information . retrieved 2008-06-12." Microsoft BASIC version information. 2008-06-11. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "Microsoft BASIC version information . retrieved 2008-06-12." Microsoft BASIC version information. 2008-06-11. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA Microsoft BASIC version information. (2008). Microsoft BASIC version information . retrieved 2008-06-12. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  18. Turner, Rich. Microsoft Open-Sources GW-BASIC . Windows Command Line . · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "Turner, Rich. Microsoft Open-Sources GW-BASIC . Windows Command Line ." Turner, Rich. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "Turner, Rich. Microsoft Open-Sources GW-BASIC . Windows Command Line ." Turner, Rich. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA Turner, Rich. (2026). Turner, Rich. Microsoft Open-Sources GW-BASIC . Windows Command Line . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  19. GW-BASIC Documentation and Utilities . · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC Documentation and Utilities ." 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "GW-BASIC Documentation and Utilities ." 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA encyclopegia.org. (2026). GW-BASIC Documentation and Utilities . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  20. GW-BASIC User's Guide . 1987. retrieved 2008-06-28 · retrieved 2008-06-27 · rev 1374883415
    Cite this reference

    MLA "GW-BASIC User's Guide . 1987. retrieved 2008-06-28." GW-BASIC User's Guide. 2008-06-27. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "GW-BASIC User's Guide . 1987. retrieved 2008-06-28." GW-BASIC User's Guide. 2008-06-27. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA GW-BASIC User's Guide. (2008). GW-BASIC User's Guide . 1987. retrieved 2008-06-28. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  21. == 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 . · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "== 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 ." == Name == There are several theories on what the initials "GW" represent. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "== 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 ." == Name == There are several theories on what the initials "GW" represent. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA == Name == There are several theories on what the initials "GW" represent. (2026). == 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 . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

  22. Graphics and Windows · retrieved 2026-09-13 · rev 1374883415
    Cite this reference

    MLA "Graphics and Windows." Other common theories as to the initials' origins include "Graphics and Windows", "Bill Gates|Gates, William" (Microsoft. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415. Accessed 24 November 2026.

    Chicago "Graphics and Windows." Other common theories as to the initials' origins include "Graphics and Windows", "Bill Gates|Gates, William" (Microsoft. 2026-09-13. https://en.wikipedia.org/w/index.php?oldid=1374883415.

    APA Other common theories as to the initials' origins include "Graphics and Windows", "Bill Gates|Gates, William" (Microsoft. (2026). Graphics and Windows. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1374883415

Cite this article

MLA

"GW-BASIC." encyclopegia.org, 2026, https://encyclopegia.org/wiki/gw-basic. Accessed 24 November 2026.

Chicago

"GW-BASIC." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/gw-basic.

APA

encyclopegia.org. (2026). GW-BASIC. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/gw-basic

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Lotus 1-2-3

enwiki · references available

Euphoria (programming language)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1374883415 · 0.5 · snapshot enwiki-001374883415

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.