Basic Functions =============== Index to Basic Functions ------------------------ +--------------------------+-----------+---------------------------------+ | Function | Type | Description | +==========================+===========+=================================+ | :doc:`abs` | Function | Returns absolute value of | | | | argument | +--------------------------+-----------+---------------------------------+ | :doc:`arg` | Function | Sets up argument for CALL | +--------------------------+-----------+---------------------------------+ | :doc:`asc` | Function | Returns decimal equivalent of | | | | string | +--------------------------+-----------+---------------------------------+ | :doc:`atn` | Function | Returns Arc-Tangent of argument | +--------------------------+-----------+---------------------------------+ | :doc:`beep` | Command | Generates tone from sound | | | | generator | +--------------------------+-----------+---------------------------------+ | :doc:`call` | Statement | Calls machine-code subroutine | +--------------------------+-----------+---------------------------------+ | :doc:`char` | Function | Specific character set in | | | | graphics mode | +--------------------------+-----------+---------------------------------+ | :doc:`chr` | Function | Returns string equivalent of | | | | argument | +--------------------------+-----------+---------------------------------+ | :doc:`circle` | Statement | Draws circle on LCD | +--------------------------+-----------+---------------------------------+ | :doc:`clear` | Command | Clears all variables | +--------------------------+-----------+---------------------------------+ | :doc:`close` | Statement | Closes files | +--------------------------+-----------+---------------------------------+ | :doc:`cls` | Command | Clears the display screen | +--------------------------+-----------+---------------------------------+ | :doc:`com` | Command | Activates/deactivates | | | | communications interrupt | +--------------------------+-----------+---------------------------------+ | :doc:`cont` | Command | Continues execution of program | +--------------------------+-----------+---------------------------------+ | :doc:`cos` | Function | Returns cosine of argument | +--------------------------+-----------+---------------------------------+ | :doc:`crt` | Command | Switches console to RS-232 port | +--------------------------+-----------+---------------------------------+ | :doc:`curoff-curon` | Command | Switches cursor off and on | +--------------------------+-----------+---------------------------------+ | :doc:`data` | Statement | Holds data for use by program | +--------------------------+-----------+---------------------------------+ | :doc:`date` | Function | Returns current date string | +--------------------------+-----------+---------------------------------+ | :doc:`day` | Function | Returns current day string | +--------------------------+-----------+---------------------------------+ | :doc:`defseg` | Command | Defines RAM page | +--------------------------+-----------+---------------------------------+ | :doc:`delete` | Command | Delete program lines | +--------------------------+-----------+---------------------------------+ | :doc:`dim` | Statement | Initialises arrays | +--------------------------+-----------+---------------------------------+ | :doc:`edit` | Command | Enters Basic editor | +--------------------------+-----------+---------------------------------+ | :doc:`end` | Statement | Terminates execution | +--------------------------+-----------+---------------------------------+ | :doc:`eof` | I/O | Detects end of file | | | Function | | +--------------------------+-----------+---------------------------------+ | :doc:`err-erl` | Function | Returns error code/line number | +--------------------------+-----------+---------------------------------+ | :doc:`error` | Statement | Simulates Basic error | +--------------------------+-----------+---------------------------------+ | :doc:`exp` | Function | Returns e to the power of the | | | | argument | +--------------------------+-----------+---------------------------------+ | :doc:`files` | Command | Displays current files | +--------------------------+-----------+---------------------------------+ | :doc:`fix` | Function | Strips argument to integer | +--------------------------+-----------+---------------------------------+ | :doc:`for` | Statement | Starts FOR...NEXT loop | +--------------------------+-----------+---------------------------------+ | :doc:`fre` | Statement | Returns number of free bytes | +--------------------------+-----------+---------------------------------+ | :doc:`gosub` | Statement | Branches to subroutine | +--------------------------+-----------+---------------------------------+ | :doc:`goto` | Statement | Branches to alternative line | +--------------------------+-----------+---------------------------------+ | :doc:`help` | Statement | Initialises HELP key text | | | | pointer | +--------------------------+-----------+---------------------------------+ | :doc:`if` | Statement | Conditional branch | +--------------------------+-----------+---------------------------------+ | :doc:`if-then-else` | Statement | Conditionally executes one of | | | | two statements | +--------------------------+-----------+---------------------------------+ | :doc:`inchr` | I/O | Returns single character from | | | Statement | keyboard | +--------------------------+-----------+---------------------------------+ | :doc:`inkey` | I/O | Returns keyboard status | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`inkey-dollar` | I/O | Returns single character from | | | Statement | keyboard if input pending | +--------------------------+-----------+---------------------------------+ | :doc:`inp` | I/O | Returns value at port address | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`input` | Statement | Returns data input from | | | | keyboard | +--------------------------+-----------+---------------------------------+ | :doc:`input-using` | Statement | Validates data input from | | | | keyboard | +--------------------------+-----------+---------------------------------+ | :doc:`input-hash` | I/O | Input data from file | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`instr` | Function | Returns position of second | | | | string in first string | +--------------------------+-----------+---------------------------------+ | :doc:`int` | Function | Returns integer part of | | | | argument | +--------------------------+-----------+---------------------------------+ | :doc:`jsr` | Function | Returns fixed-field string | +--------------------------+-----------+---------------------------------+ | :doc:`key` | Command | Initialises soft keys | +--------------------------+-----------+---------------------------------+ | :doc:`key-n` | Command | Activates/deactivates soft keys | +--------------------------+-----------+---------------------------------+ | :doc:`kill` | Command | Deletes file | +--------------------------+-----------+---------------------------------+ | :doc:`left` | Function | Returns left part of string | +--------------------------+-----------+---------------------------------+ | :doc:`len` | Function | Returns lengths of string | +--------------------------+-----------+---------------------------------+ | :doc:`let` | Statement | Assigns value of variable | +--------------------------+-----------+---------------------------------+ | :doc:`linchr` | I/O | Returns single character from | | | Statement | RS-232 | +--------------------------+-----------+---------------------------------+ | :doc:`line` | Statement | Draws straight line | +--------------------------+-----------+---------------------------------+ | :doc:`linput` | I/O | Returns entry from RS-232 | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`list` | Command | Lists program at LCD | +--------------------------+-----------+---------------------------------+ | :doc:`llist` | I/O | Lists program at RS-232 | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`lload` | Statement | Loads program from RS-232 | +--------------------------+-----------+---------------------------------+ | :doc:`ln` | Function | Returns natural logarithm | +--------------------------+-----------+---------------------------------+ | :doc:`load` | Command | Loads program from file | +--------------------------+-----------+---------------------------------+ | :doc:`loc` | I/O | Number of records read/written | | | Function | | +--------------------------+-----------+---------------------------------+ | :doc:`locate` | Command | Sets cursor position | +--------------------------+-----------+---------------------------------+ | :doc:`log` | Function | Returns logarithm to base 10 | +--------------------------+-----------+---------------------------------+ | :doc:`lopchr` | I/O | Sends single character to | | | Statement | RS-232 | +--------------------------+-----------+---------------------------------+ | :doc:`lprint` | I/O | Outputs to RS-232 | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`ltron` | I/O | Sends trace output to RS-232 | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`maxfiles` | I/O | Maximum no. of files to be | | | Statement | opened | +--------------------------+-----------+---------------------------------+ | :doc:`mid` | Function | Returns mid portion of string | +--------------------------+-----------+---------------------------------+ | :doc:`name` | Command | Re-names file | +--------------------------+-----------+---------------------------------+ | :doc:`new` | Command | Initialises program space | +--------------------------+-----------+---------------------------------+ | :doc:`next` | Statement | Concludes FOR.. .NEXT loop | +--------------------------+-----------+---------------------------------+ | :doc:`on-break` | I/O | Vectors program on BREAK key | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`on-com` | I/O | Vectors program on | | | Statement | communication | +--------------------------+-----------+---------------------------------+ | :doc:`on-comms` | I/O | Vectors program on COMMS | | | Statement | failure | +--------------------------+-----------+---------------------------------+ | :doc:`on-error` | Statement | Vectors program on Syntax error | +--------------------------+-----------+---------------------------------+ | :doc:`on-gosub` | Statement | Conditional branch to | | | | subroutine | +--------------------------+-----------+---------------------------------+ | :doc:`on-goto` | Statement | Conditional branch | +--------------------------+-----------+---------------------------------+ | :doc:`on-key` | I/O | Vectors program on soft keys | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`on-power` | I/O | Vectors program on POWER key | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`on-power-resume` | I/O | Restarts program on power up | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`on-time` | Statement | Vectors program on system time | +--------------------------+-----------+---------------------------------+ | :doc:`opchr` | Statement | Outputs 1 or more ASCII | | | | characters | +--------------------------+-----------+---------------------------------+ | :doc:`open` | I/O | Opens file for input/output | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`out` | I/O | Outputs to specified port | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`peek` | Statement | Returns decimal byte value of | | | | memory locations | +--------------------------+-----------+---------------------------------+ | :doc:`pi` | Statement | Value of PI = 3.14159 | +--------------------------+-----------+---------------------------------+ | :doc:`point` | Statement | Returns condition of pixel | +--------------------------+-----------+---------------------------------+ | :doc:`poke` | Statement | Sets memory location with | | | | decimal value | +--------------------------+-----------+---------------------------------+ | :doc:`pop` | Statement | Returns value from machine code | | | | linkage/stack | +--------------------------+-----------+---------------------------------+ | :doc:`pos` | Statement | Returns cursor position | +--------------------------+-----------+---------------------------------+ | :doc:`power-n` | Statement | Specify auto time off | +--------------------------+-----------+---------------------------------+ | :doc:`power-cont` | Command | Disables power off key and time | | | | outs | +--------------------------+-----------+---------------------------------+ | :doc:`power-off` | Command | Switches HUNTER off | +--------------------------+-----------+---------------------------------+ | :doc:`power-off-resume` | Command | Switches HUNTER off | +--------------------------+-----------+---------------------------------+ | :doc:`print` | Statement | Outputs to LCD | +--------------------------+-----------+---------------------------------+ | :doc:`print-hash` | I/O | Output data to file | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`pset-preset` | Statement | Set/re-set pixel | +--------------------------+-----------+---------------------------------+ | :doc:`push` | Statement | Puts value onto machine code | | | | linkage stack | +--------------------------+-----------+---------------------------------+ | :doc:`read` | Statement | Returns value from DATA | | | | statement | +--------------------------+-----------+---------------------------------+ | :doc:`rem` | Statement | Enters remarks to Basic text | +--------------------------+-----------+---------------------------------+ | :doc:`restore` | Statement | Resets Read pointer | +--------------------------+-----------+---------------------------------+ | :doc:`resume` | Statement | Restarts program at specified | | | | line | +--------------------------+-----------+---------------------------------+ | :doc:`return` | Statement | Returns from subroutine | +--------------------------+-----------+---------------------------------+ | :doc:`right` | Function | Returns right portion of string | +--------------------------+-----------+---------------------------------+ | :doc:`rnd` | Function | Produces random number | +--------------------------+-----------+---------------------------------+ | :doc:`run` | Command | Starts a program execution | +--------------------------+-----------+---------------------------------+ | :doc:`save` | Command | Writes program to file | +--------------------------+-----------+---------------------------------+ | :doc:`screen` | Command | Changes screen mode | +--------------------------+-----------+---------------------------------+ | :doc:`sgn` | Function | Returns a value for the sign of | | | | its argument | +--------------------------+-----------+---------------------------------+ | :doc:`sin` | Function | Returns Sine of argument | +--------------------------+-----------+---------------------------------+ | :doc:`sound` | Command | Generates specified tone | +--------------------------+-----------+---------------------------------+ | :doc:`space` | Function | Returns string of spaces | +--------------------------+-----------+---------------------------------+ | :doc:`spc` | Function | Prints spaces | +--------------------------+-----------+---------------------------------+ | :doc:`sqr` | Function | Returns square root of its | | | | argument | +--------------------------+-----------+---------------------------------+ | :doc:`srch` | Function | Returns target string array | | | | position | +--------------------------+-----------+---------------------------------+ | :doc:`stop` | Statement | Terminates program execution | +--------------------------+-----------+---------------------------------+ | :doc:`str` | Function | Returns string equivalent of a | | | | numerical argument | +--------------------------+-----------+---------------------------------+ | :doc:`string` | Function | Returns string of characters | +--------------------------+-----------+---------------------------------+ | :doc:`swap` | Function | Exchange contents of two | | | | variables | +--------------------------+-----------+---------------------------------+ | :doc:`tab` | I/O | Formats Print output | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`tan` | Function | Returns tangent of argument | +--------------------------+-----------+---------------------------------+ | :doc:`time` | Function | Returns current time string | +--------------------------+-----------+---------------------------------+ | :doc:`tron-troff` | Command | Turns trace on/off | +--------------------------+-----------+---------------------------------+ | :doc:`val` | Function | Returns numeric value of string | +--------------------------+-----------+---------------------------------+ | :doc:`varptr` | Function | Returns address of variable | +--------------------------+-----------+---------------------------------+ | :doc:`wand` | Command | Defines wand decode software | +--------------------------+-----------+---------------------------------+ | :doc:`while-wend` | Statement | Conditional execution of | | | | statements | +--------------------------+-----------+---------------------------------+ | :doc:`winchr` | I/O | Inputs a single character from | | | Statement | an optical wand | +--------------------------+-----------+---------------------------------+ | :doc:`winput` | I/O | Inputs string from optical wand | | | Statement | | +--------------------------+-----------+---------------------------------+ | :doc:`write` | I/O | Write data to file | | | Statement | | +--------------------------+-----------+---------------------------------+ .. toctree:: :maxdepth: 1 :hidden: :glob: *