Constant
Variables
- Variable names have to start with A-Z and range between 1E-39 and 1E38.
- String variable names end with a $ e.g. TEXT$. The user has to supply the
starting address of the string in the coresponding variable TEXT.
- Only one dimensional arrays are possible. The number of elements in the array
must be specified in a DIM statement. The user has to supply the starting
address of the array in the memory in the coresponding variable.
e.g.: meas=#4100: DIM MEAS(20): MEAS(9)=542: PRINT MEAS(9)
Expressions
- FREE returns the number of bytes left in the page
- PAGE returns the current page number
- RND returns a random number between 0 and 1
- STAT returns the value of the INS8060 Status Register
- TOP returns the highest address of the NIBL program in the
current page
Program entry
- AUTO n generates line numbers starting at number n (ctrl c to quit)
- AUTO n,m generates line numbers starting at n with increment m (ctrl c to quit)
- BYE quit floating point basic
- EDIT n allows for editing of line n. Characters may be inserted
with cntrl Q and deleted with cntrl X, cntrl C will exit EDIT
- LINK x link with user routine
- LIST
- LIST n
- LIST n-m
- NEW
- NEW x
Decleration Statements
- CLEAR clears all variables and stacks
- DATA
- DEF FN
- DIM
- LET
DEF FN must be followed by a character A-Z, so 26 user defined functions
are possible. An expression between brackets can be added to transfer a
parameter e.g.:
DEF FNA (SQROOT) = SQR(SQROOT)
INPUT A
PRINT FNA(A): REM prints square root of A
DEF FNB = SIN(X)+1
INPUT X
PRINT FNB
Program Flow Control
- DO / UNTIL
- END
- FOR / NEXT / STEP
- GOTO
- GOSUB / RETURN
- ON ... GOSUB / GOTO
- IF ... THEN ...: ELSE
- IF ... THEN n: ELSE
- IF ...: ELSE
- READ
- RESTORE
- RESTORE n
Numeric functions
Floating point numbers have to be between 10E-39 and 10E38.
Maximal nesting of 5 brackets. Numbers larger than 8.388.607 have to
be entered in exponantial form. Normal accuracy is 6 digits.
- + - / * **
- DIV
- MOD
- ABS
- SQR
- ATN
- SIN
- COS
- TAN
- INT
- LB logarithm on base 2
- LG logarithm on base 10
- LN logaritm on e
- EXP
- SGN
Logical Operators
Relational Operators
String Functions
- ASC
- LEN
- VAL
- CHR$
- LEFT$
- MID$
- RIGHT$
- STR$
String Concatination &
e.g.
VAR = TOP: VAR1 = TOP + 72
VAR1$ = "123456": VAR$ = RIGHT$(VAR1$,2)&CHR$(65)&"LT"&MID$(VAR1$,2,3)
PRINT VAR$
String Comparisment
- IF var$ = "string" ...
- IF var1$ = var2$ ...
Input/Output
- INPUT "string" ...
- INPUT ...
- PRINT
- PR
- TAB(x)
- SPC(x)
- VERT(x)
- VERT(-x)
- PEEK
- POKE
- #DFC1 (hexadecimal number)
|