plusBASIC Programmer's Reference Guide - fvdhoef/aquarius-plus GitHub Wiki
-
Arithmetic Operators -
+
-
*
/
MOD
^
-
Relational Operators -
=
<>
<
>
<=
>=
-
Logical Operators -
NOT
OR
AND
XOR
-
String Operators -
+
%
Note: This is a work in progress. Please mind the dust while we flesh out these reference materials. Old Table of Contents
- 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.
- LEFT$() and RIGHT$() - Return left and right sections of a string.
- MID$() - Return or replace section of string
- STRING$() - Create string of repeated character.
- TRIM$(), TRIML$(), and TRIML$() - Remove characters from one or both ends of a string.
- FILEDIR$(), FILEEXT$(), TRIMDIR$() and TRIMEXT$() - Extract and remove path or extension from filespec.
- DEF BYTELIST and DEF INTLIST - Create a string list of 8-bit or 16-bit values.
- 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.
- 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.
- GETKEY and GETKEY$ - Wait for a keypress.
- INKEY, INKEY$, LWRKEY, LWRKEY$, UPRKEY, UPRKEY$ - Return last keypress.
- KEY - Check for keypress(es).
- CD and CD$ - Change, display, or return current filesystem path.
- DEL - Delete file or directory.
- DIR - Display directory contents.
- MKDIR - Create new directory.
- SAVE and APPEND - Save program or data or append data to file.
- DEF RGBLIST - Define a binary string list of RGB values.
- LOAD PALETTE and SAVE PALETTE - Load or save palette from or to file.
- SET PALETTE and RESET PALETTE - Set or reset palette RGB values.
- RGB() and RGB$() - Define a single RGB value.
- COPY - Copy text screen to serial printer or to and from paged memory.
- LOCATE, CURSOROFFSET, CURSORX, and CURSORY - Set or return cursor location.
- SET BORDER and RESET BORDER - Set or reset border character and colors.
- GETBORDERCHR, GETBORDERCHR$, GETBORDERCOLOR, and GETBORDERCOLOR$ - Get current border character or colors.
- SET COLOR and GETCOLOR - Set or get default screen printing colors.
- SET CURSOR, and CLEAR CURSOR - Enable or disable display of cursor on screen or temporarily hide the cursor.
- LOAD BITMAP, LOAD COLORMAP, SAVE BITMAP, and SAVE COLORMAP - Load or save bitmap data.
- DEF ATTRLIST, DEF PALETTELIST and DEF TILELIST - Create a string list of spritle/tile attributes, palette numbers, or tile 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.
- LOAD TILESET, and SAVE TILESET - Load or save tilemap from or to file.
- LOAD TILEMAP, and SAVE TILEMAP - Load or save tilemap definitions from file.
- 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.