词条 | GW-BASIC |
释义 |
|name = GW-BASIC |logo = |paradigm = |year = {{Start date and age|1983}} |designer = |developer = Microsoft |latest_release_version = 3.23 |latest_release_date = {{Start date and age|1988}} |typing = |implementations = |dialects = |influenced_by = IBM Cassette BASIC, IBM Disk BASIC, IBM BASICA |influenced = QBasic, QuickBasic, MSX BASIC |current version = |operating_system = DOS |license = |website = }}GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from BASICA, originally for Compaq. It is otherwise identical to Microsoft/IBM BASICA, but is a fully self-contained executable and does 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 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.[1][2] With the release of MS-DOS 5.0, GW-BASIC's place was eventually taken by QBasic, the interpreter part of the separately available QuickBASIC compiler.[3] FeaturesIBM BASICA and GW-BASIC were largely ports of MBASIC version 5.x, but with added features specifically for the IBM PC hardware. Common features of BASIC-80 5.x and BASICA/GW-BASIC include:
The ability to "crunch" program lines by omitting spaces, a common feature of earlier Microsoft BASIC implementations, was removed from BASIC-80 5.x and BASICA/GWBASIC. BASIC-80 programs not using PEEK/POKE statements would run under GW-BASIC. BASICA added a large number of features for the IBM PC such as sound, graphics, and memory commands. A few other features not present in BASIC-80 included the ability to execute the RND function with no parameters and the ability to also save programs in a "protected" format, preventing them from being LISTed. BASICA also allowed double-precision numbers to be used with mathematical and trigonometric functions such as COS, SIN, and ATN, which wasn't allowed in 8-bit versions of BASIC. This feature was normally not enabled and required the optional parameter /D at startup, i.e., Microsoft did not offer a generic version of MS-DOS until v3.20 in 1986; before then, all variants of the operating system were OEM versions. Depending on the OEM, BASIC was distributed as either BASICA.EXE or GWBASIC.EXE. The former should not be confused with IBM BASICA, which always came as a .COM file. Some variants of BASIC had extra features to support a particular machine. For example, the AT&T and Tandy versions of DOS included a special GW-BASIC that supported their enhanced sound and graphics capabilities. The initial version of GW-BASIC was the one included with Compaq DOS 1.13, released with the Compaq Portable in 1983, and was analogous to IBM BASICA 1.10. It used the CP/M-derived file control blocks for disk access and did not support subdirectories. Later versions added this feature and improved graphics and other capabilities. GW-BASIC 3.20 (1986) added EGA graphics support (no version of BASICA or GW-BASIC had VGA support) and was, in effect, the last new version released before it was superseded by QBasic. Buyers of Hercules Graphics Cards received a special version of GW-BASIC on the card's utility disk that was called HBASIC and which added support for its 720×348 monochrome graphics. Other versions of BASICA/GW-BASIC did not support Hercules graphics and could only display graphics on that card through the use of third-party CGA emulation, such as SIMCGA. GW-BASIC has a command line-based integrated development environment (IDE) based on Dartmouth BASIC. Using the cursor movement keys, any line displayed on screen can be edited. 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 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 keywords, with an option to save in ASCII text form.[4] The GW-BASIC command-line environment has commands to GW-BASIC allowed 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 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 NameThere 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|date=June 2008}} 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] See also
References1. ^{{cite web|url=http://www.geocities.com/KindlyRat/GWBASIC.html|title=GW-BASIC|date=|accessdate=2009-11-10|author="KindlyRat"|archiveurl=https://web.archive.org/web/20050726081451/http://www.geocities.com/KindlyRat/GWBASIC.html|archivedate=2005-07-26}} 2. ^{{cite web|url=http://peyre.sqweebs.com/GWBASIC/index.htm|title=GWBASIC Games & Other Programs|date=|accessdate=2009-11-10|author="Leon"|archiveurl=https://web.archive.org/web/20091026133328/http://peyre.sqweebs.com/GWBASIC/index.htm |archivedate=2009-10-26}} 3. ^{{cite web|url=http://www.emsps.com/oldtools/msbasv.htm#qbasic|title=Microsoft BASIC version information|accessdate=2008-06-12}} 4. ^{{cite web|url=http://www.xs4all.nl/~hwiegman/gwbasic.html |title=GW-BASIC Documentation and Utilities |archiveurl = https://web.archive.org/web/20071217161146/http://www.xs4all.nl/~hwiegman/gwbasic.html |archivedate = 2007-12-17}} 5. ^1 {{cite web|url=http://www.xs4all.nl/~hwiegman/gw-man/index.html|title=GW-BASIC User's Guide|year=1987|access-date=2008-06-28|author=}} 6. ^1 {{cite web|url=http://www.classiccmp.org/pipermail/cctech/2005-April/042999.html|title=GW-BASIC|date=2005-04-13|accessdate=2008-06-29|author=Gregory Whitten|deadurl=yes|archiveurl=https://web.archive.org/web/20080920032110/http://classiccmp.org/pipermail/cctech/2005-April/042999.html|archivedate=2008-09-20|df=}} 7. ^{{cite web|url=http://www.tldp.org/LDP/Linux-Dictionary/html/g.html|title=Linux Dictionary:G|date=|accessdate=2008-06-28|author=}} 8. ^{{cite web |url=http://classiccmp.org/pipermail/cctech/2005-April/042967.html |title=GW-BASIC |date=2005-04-13 |accessdate=2008-06-28 |author= |deadurl=yes |archiveurl=https://web.archive.org/web/20080629053601/http://classiccmp.org/pipermail/cctech/2005-April/042967.html |archivedate=2008-06-29 |df= }} External links
3 : Discontinued Microsoft BASICs|Programming languages created in 1983|BASIC interpreters |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。