image of READY prompt

Wang2200.org

The following information was compiled from various Wang data sheets. The picture is blurred, though, because a machine of a particular model could be and often was upgraded to support other commands. For example, a model A CPU could be upgraded to a model B CPU, and the 2200S could have a microcode ROM upgrade to add matrix support.

Below are the lists of commands, statements, and functions available in each standard version of the 2200 CPU.

This document only is concerned with the first generation, Wang BASIC. There is a separate page about BASIC-2.

This page does not cover BASIC-2. BASIC-2 was developed for the 2200 VP and later CPUs. It is 99% backwards compatible with Wang BASIC, but generalizes the syntax in many cases and adds a number of new commands and capabilities.

Wang 2200A BASIC Commands (link)

Standard BASIC statements

  • COM
  • DATA
  • DEFFN
  • DEFFN'
  • DIM
  • END
  • FOR
  • GOSUB
  • GOSUB'
  • GOTO
  • IF END THEN
  • IF ... THEN
  • %(image)
  • INPUT
  • LET
  • NEXT
  • PRINT
  • PRINTUSING
  • READ
  • REM
  • RESTORE
  • RETURN
  • SELECT
  • STOP
  • TRACE

Standard BASIC functions

  • ABS
  • ARCCOS
  • ARCSIN
  • ARCTAN
  • COS
  • EXP
  • HEX
  • INT
  • LEN
  • LOG
  • RND
  • SGN
  • SIN
  • STR
  • SQR
  • TAB
  • TAN
  • X^N
  • #PI

Standard BASIC commands

  • CLEAR
  • CONTINUE
  • LIST
  • RENUMBER
  • RUN
  • SKIP

I/O BASIC statements

  • BACKSPACE
  • DATALOAD
  • DATARESAVE
  • LOAD
  • REWIND

I/O BASIC commands

  • LOAD
  • SAVE

Wang 2200B BASIC Commands (link)

All 2200A statements, commands, and functions, plus:

Standard BASIC statements

  • ADD
  • AND
  • BIN
  • BOOL
  • CONVERT
  • HEXPRINT
  • INIT
  • KEYIN
  • ON...GOSUB
  • ON...GOTO
  • OR
  • PACK
  • ROTATE
  • UNPACK
  • XOR

Standard BASIC functions

  • NUM
  • POS
  • VAL

I/O BASIC statements

  • PLOT
  • DATALOAD BT
  • DATASAVE BT
  • COPY
  • DATALOAD BA
  • DATALOAD DA
  • DATALOAD DC
  • DATALOAD DC OPEN
  • DATASAVE BA
  • DATASAVE DA
  • DATASAVE DC
  • DATASAVE DC CLOSE
  • DATASAVE DC OPEN
  • DBACKSPACE
  • DSKIP
  • LIMITS
  • LOAD DC
  • MOVE
  • MOVE END
  • SAVE DC
  • SCRATCH
  • SCRATCH DISK
  • VERIFY

I/O BASIC commands

  • LOAD DA
  • SAVE DA

Wang 2200C BASIC Commands (link)

All 2200B statements, commands, and functions, plus:

Standard BASIC statements

  • COM CLEAR
  • DEFFN' HEX
  • ON ERROR
  • RETURN CLEAR

Wang 2200S and WCS/10 (link)

All 2200A statements, commands, and functions, plus:

Standard BASIC statements

  • CONVERT
  • HEXPRINT
  • KEYIN
  • ON
  • RETURN CLEAR

Standard BASIC functions

  • VAL
  • NUM

Wang 2200T, WCS/20 and WCS/30 (link)

All 2200C statements, commands, and functions, plus these new commands:

Matrix Statements

  • MAT +
  • MAT =
  • MAT IDN
  • MAT INV,d
  • MAT *
  • MAT READ
  • MAT ()*
  • MAT -
  • MAT TRN
  • MAT ZER
  • MAT INPUT
  • MAT PRINT
  • MAT REDIM

Matrix Sort

  • MAT COPY
  • MAT CONVERT
  • MAT MERGE
  • MAT SEARCH
  • MAT MOVE
  • MAT SORT

General I/O

  • $GIO
  • $IF ON
  • $PACK
  • $UNPACK
  • $TRAN