SecondBASIC Documentation v3

Home / General Information / System Identifiers

System Identifiers

Identifiers take on 2 roles in SecondBASIC: variables for ease of use and easy reference, and reserved words that tells the compiler how to handle variables or other pieces of data as well as well as sets compiler options.

SecondBASIC has a total of 12 system identifiers, but only 9 are an alias for actual numerical or string values.


Part Description
@On, @True, @Byte 1
@Off, @False 0
@Int 2
@Long 4
@String Returns the default length for string variables.
@Tab Inserts 4 spaces into a string or Print command.
@Asm Used for specifying an Assembly file for specific commands and functions.
@Sbs Used for specifying a SecondBASIC source file for specific commands and functions.
@Txt Used for specifying a plain text file for specific commands and functions.
sbReadByte, sbReadWord Used for specifying the size when reading data from SRAM.
Integer, Long, String Used for specifying a variables data type with the Dim, Local, and Global commands.