Skip to content

Missing commands and functions from PC BASIC #120

@aowendev

Description

@aowendev

Allocated but not used

  • EOF # -1 if file number has reached end of file, else 0.
  • LOC # location in current file number
  • LOF # length of current file number
  • USING with PRINT
  • SPC with PRINT
  • SCREEN code point at given position

There are 12 unallocated tokens. $ff should be reserved for double-byte tokens which will be user defined commands extensions. Checkmarks indicate preferences.

Functions

  • DATE should return 32-bit system variable value (using stack BCDE function)
  • ERL line number of last error
  • ERR number of last error
  • FRE available BASIC memory
  • MOUSE mouse values
  • POINT if a pixel is set
  • POS current column position
  • STICK joystick values

Commands

  • AUTO auto produce line numbers
  • CHAIN load a program and run it while retaining variables
  • DEF SEG define memory area to be used by BLOAD, BSAVE, CALL, PEEK, POKE and USR.
  • ERASE deallocate array
  • GET various
  • PUT various
  • LINE graphics instruction
  • NOISE audio
  • OPTION BASE start of arrays to 1 or 0
  • PAINT graphics fill
  • SWAP switch two variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions