everyBASIC
Docs ยป Microsoft GW-BASIC

gwbasic

Microsoft GW-BASIC

Microsoft GW-BASIC
Keywords

  • ABS
  • ASC
  • ATN
  • AUTO
  • BEEP
  • BLOAD
  • BSAVE
  • CALL
  • CDBL
  • CHAIN
  • CHDIR
  • CHR$
  • CINT
  • CIRCLE
  • CLEAR
  • CLOSE
  • CLS
  • COLOR
  • COM
  • COMMON
  • CONT
  • COS
  • CSNG
  • CSRLIN
  • CVD
  • CVI
  • CVS
  • DATA
  • DATE$
  • DEF
  • DEFDBL
  • DEFINT
  • DEFSNG
  • DEFSTR
  • DELETE
  • DIM
  • DRAW
  • EDIT
  • END
  • ENVIRON
  • ENVIRON$
  • EOF
  • ERASE
  • ERDEV
  • ERL
  • ERR
  • ERROR
  • EXP
  • EXTERR
  • FIELD
  • FILES
  • FIX
  • FOR
  • FRE
  • GET
  • GOSUB
  • GOTO
  • HEX$
  • IF
  • INKEY$
  • INP
  • INPUT
  • INPUT$
  • INSTR
  • INT
  • IOCTL
  • IOCTL$
  • KEY
  • KILL
  • LEFT$
  • LEN
  • LET
  • LINE
  • LINE INPUT
  • LIST
  • LLIST
  • LOAD
  • LOC
  • LOCATE
  • LOCK
  • LOF
  • LOG
  • LPOS
  • LPRINT
  • LSET
  • MERGE
  • MID$
  • MKD$
  • MKDIR
  • MKI$
  • MKL$
  • MKS$
  • MOD
  • NAME
  • NEW
  • NEXT
  • OCT$
  • ON
  • ON ERROR GOTO
  • ON-GOSUB
  • ON-GOTO
  • OPEN
  • OPTION
  • OUT
  • PAINT
  • PALETTE
  • PCOPY
  • PEEK
  • PEN
  • PLAY
  • PMAP
  • POINT
  • POKE
  • POS
  • PRESET
  • PRINT
  • PSET
  • PUT
  • RANDOMIZE
  • READ
  • REM
  • RENUM
  • RESET
  • RESTORE
  • RESUME
  • RETURN
  • RIGHT$
  • RMDIR
  • RND
  • RSET
  • RUN
  • SAVE
  • SCREEN
  • SGN
  • SHELL
  • SIN
  • SOUND
  • SPACE$
  • SPC
  • SQR
  • STICK
  • STOP
  • STR$
  • STRIG
  • STRING$
  • SWAP
  • SYSTEM
  • TAB
  • TAN
  • TIME$
  • TIMER
  • TROFF
  • TRON
  • UNLOCK
  • USR
  • VAL
  • VARPTR
  • VARPTR$
  • VIEW
  • VIEW_PRINT
  • WAIT
  • WEND
  • WHILE
  • WIDTH
  • WINDOW
  • WRITE

If it was not the last, GW-BASIC was certainly the most advanced evolution of the original, line-numbered, first-generation Microsoft BASIC-80. Its original source-code has been open by Microsoft and it has at least one modern, open-source implementation for modern operating systems, so it can still be considered an active BASIC which can make old-time programmers "feel at home".

Where it is/was used

  • IBM-PC and compatibles with DOS 3.22 or later

Noteworthy characteristics

Environment and usage

GW-BASIC's interpreter was an executable in the MS-DOS floppy disk which could be started from DOS with gwbasic. Command-line options could be given to redirect input or output, to set the maximum number of open files and the size of their buffers and records (like the MAXFILES keyword), to determine memory block size and highest address, and to force some mathematical functions to return double-precision values instead of single-precision values. Also, the command-line can be used for running a BASIC program file (.BAS extension) without the REPL environment being shown.

The environment is very similar to previous Microsoft BASIC-80-derived ones: a standard REPL interface where commands and statements can be used in direct mode, or numbered lines can be entered to be stored as part of a program. Overwriting, inserting or deleting content of a listed line will change the stored contents as long as RETURN is pressed after the modification.

The bottom line of the interpreter screen shows commands or statements that can be entered by pressing function keys (Fn), just like in the MSX BASIC environment. Likewise, such shortcuts can be edited.

Extensions

Curiosities

Related to...

Influenced by

Influence for

Versions and successors

  • PC-BASIC is a self-proclaimed "bug for bug" implementation of GW-BASIC and its versions in Python for modern machines running Windows, GNU/Linux and Mac. It actually does much more than that, by emulating different PC hardware of GW-BASIC's time, such as EGA/VGA/Hercules video cards and Tandy 3-voice sounds, and by happily working with Unicode and a number of DOS codepages. Its website has a fairly extensive documentation with a complete keywords reference.

References

  • https://hwiegman.home.xs4all.nl/gw-man/index.html - an online, HTML version of Microsoft's GW-BASIC User's Guide and GW-Basic User's Reference
Interpreters, IBM, IBM-PC, Windows, Linux, Mac, Numbered Lines BASIC
Previous Next

everyBASIC

Table of Contents

Table of Contents

  • Microsoft GW-BASIC
    • Where it is/was used
    • Noteworthy characteristics
    • Environment and usage
    • Extensions
    • Curiosities
    • Related to...
      • Influenced by
      • Influence for
    • Versions and successors
    • References

Home Login Links

  • BASICs we know of
    • Apple II INTEGER BASIC
    • Altair BASIC
    • ANSI BASIC
    • Applesoft BASIC
    • Atari BASIC
    • Acorn Atom BASIC
    • BBC BASIC
    • bootBASIC
    • Bywater BASIC
    • Commodore BASIC
    • Dartmouth BASIC
    • DEC BASIC-PLUS
    • Decimal BASIC
    • FreeBASIC
    • Gambas
    • Microsoft GW-BASIC
    • HP Time-Shared BASIC
    • Liberty BASIC
    • Numbered Lines BASIC
    • MiniBASIC (Joe Strout's)
    • minibasic (McLean's)
    • Microsoft BASIC-80
    • Amiga Microsoft BASIC
    • Microsoft Atari BASIC
    • Microsoft QuickBASIC
    • MSX BASIC
    • Sinclair BASIC
    • Structured BASICs
    • TI BASIC
    • TRS-80
    • Color BASIC
    • TrueBASIC
    • twinBASIC
    • ugBASIC
    • MS Visual Basic for DOS
  • BASIC keywords reference
  • Links