Skip to content

plusBASIC Programmer's Reference TOC

Curtis F Kaylor edited this page Feb 4, 2025 · 29 revisions

plusBASIC Programmer's Reference Guide - Table of Contents

Math Functions

  • ABS() and SGN() - Return absolute value and signum of argument.
  • INT() - Return expression rounded down to nearest integer.
  • RND() - Return new or previous psuedo-random number or seeds the random number generator.
  • SIN(), COS(), TAN(), ATN() - Return sine, cosine, tangent, and arctangent of argument.
  • SQR(), LOG(), and EXP() - Return square root, natural logarithm, and argument to the power of e.

String Statements and Functions

Conversion Functions

  • ASC() and CHR$() - Convert string to and from numeric ASCII code.
  • BYTE() - Convert character in string to signed byte.
  • HEX$(), ASC$() and DEC() - Convert byte, integer or ASCII string to and from hexadecimal string,
  • LWR(), LWR$(), UPR(), and UPR$() - Convert string or ASCII code to lowercase or uppercase.
  • STR$() and VAL() - Convert number to and from ASCII string.
  • WORD(), WORD$(), and INT() - Convert unsigned or unsigned integer to and from two character decimal string.

Variable, Array, and Memory Statements and Functions

  • CLEAR - Clear BASIC workspace or array data.
  • COMPARE - Compare numeric arrays or sections of memory.
  • COPY - Copy bytes from one block of memory to another.
  • LEN() - Return length of string or array.

Keyboard Statements and Functions

Filesystem Statements and Functions

  • DIR - Display disk directory.

File I/O Statements and Functions

Palette Statements and Functions

Text Screen Statements and Functions

Sprite and Tilemap Statements and Functions

  • DEF ATTRLIST - Create a string list of sprite and/or tile attributes.
  • DEF PALETTELIST - Create a string list of palette numbers.
  • DEF TILELIST - Create a string list of palette indexes.
  • DEF SPRITE, SET SPRITE and GETSPRITE$ - Create a sprite definition and set and return sprite properties.
  • SET TILE and GETTILE$ - Write and read tile definition to and from Video RAM.
  • FILL TILEMAP - Fill tilemap with specified tile, attributes and palette.
  • GET TILEMAP and PUT TILEMAP - Copy clip from array or string variable from and to tilemap.
  • SET TILEMAP and TILEMAP() - Set and return tilemap cell contents.
  • SET TILEMAP OFFSET, TILEMAPX, and TILEMAPY - Set and return tilemap scroll position.
  • TILEOFFSET and TILEOFFSET() - Return first available tile index.
Clone this wiki locally