Skip to content

BASIC-80 Commands and Statements

All BASIC-80 commands and statements are described in this reference.

Alphabetical Listing

A

  • AUTO - Automatic line numbering

C

  • CALL - Call assembly language subroutine
  • CHAIN - Chain to another program
  • CLEAR - Clear program variables and set memory limits
  • CLOAD - Load program from cassette (not in VT180)
  • CLOSE - Close file(s)
  • COMMON - Define variables to pass to chained program
  • CONT - Continue program execution
  • CSAVE - Save program to cassette (not in VT180)

D

  • DATA - Store data values in program
  • DEF FN - Define user function
  • DEF USR - Define assembly language subroutine address (not implemented)
  • DEFINT/SNG/DBL/STR - Set default variable types
  • DELETE - Delete program lines
  • DIM - Dimension arrays

E

  • EDIT - Edit program line
  • END - End program execution
  • ERASE - Erase arrays from memory
  • ERR and ERL - Error number and line variables
  • ERROR - Simulate error condition

F

G

I

K

  • KILL - Delete file from disk

L

  • LET - Assign value to variable
  • LIST - List program lines
  • LLIST - List program to printer
  • LOAD - Load program from disk
  • LPRINT - Print to line printer

M

  • MERGE - Merge program from disk
  • MID$ - Replace characters in string

N

  • NAME - Rename disk file
  • NEW - Delete program in memory
  • NULL - Set null character count

O

P

  • POKE - Write byte to memory location
  • PRINT - Print to screen
  • PRINT# - Print to file
  • PUT - Write record to random file

R

  • RANDOMIZE - Seed random number generator
  • READ - Read DATA values
  • REM - Remark/comment
  • RENUM - Renumber program lines
  • RESUME - Resume after error

S

  • SAVE - Save program to disk
  • STOP - Stop program execution
  • SWAP - Exchange two variables

T

W

By Category

Program Control

  • CHAIN - Chain to another program
  • CLEAR - Clear variables and memory
  • COMMON - Pass variables to chained program
  • CONT - Continue execution
  • END - End program
  • NEW - Delete program
  • STOP - Stop execution

Flow Control

Input/Output

File I/O

File Management

Data Handling

  • DATA - Store data in program
  • READ - Read DATA values

Arrays

Variables and Assignment

Functions

  • DEF FN - Define user function
  • DEF USR - Define assembly subroutine address (not implemented)

Error Handling

String Manipulation

  • MID$ - Replace substring

Memory and Hardware

  • CALL - Call machine language
  • OUT - Output to port
  • POKE - Write to memory
  • WAIT - Wait for port

Program Editing

  • AUTO - Automatic line numbering
  • DELETE - Delete program lines
  • EDIT - Edit program line (CLI line editor)
  • LIST - List program lines
  • LLIST - List program to printer
  • RENUM - Renumber program lines

System

Modern Extensions (MBASIC only)

See Also