System

Comments

System Variables
System variables, are constant variables for the programmer. Those variables get values or modified at run-time by the SB’s subsystem.

OSNAME Operating System name
OSVER Operating System Version (0xAABBCC (A=major, B=minor, C=patch))
SBVER SmallBASIC Version (0xAABBCC)
PI 3.14..
XMAX Graphics display, maximum x (width-1)
YMAX Graphics display, maximum y (height-1) value
BPP Graphics display: bits per pixel (color resolution)
VIDADR Video RAM address (only on specific drivers)
CWD Current Working Directory
HOME User’s home directory
COMMAND Command-line parameters
TRUE The value 1
FALSE The value 0