HomeUpSearchMail
NEW

Overview of BASICODE-3

A forum that handles issues with BASICODE in general, please join the BASICODE e-group.
Other BASICODE overviews:
Content of this page:

General rules

Allowed BASICODE-3 commands

The following commands are allowed: PRINT, INPUT, LET, GOTO, GOSUB, RETURN, FOR...TO...STEP, NEXT, IF...THEN (no ELSE), ON...GOTO, ON...GOSUB, DIM, READ, DATA, RESTORE, REM.
DEF FN (or DEFFN) is allowed (only one variable, no recursion, only arithmetic and logical expressions). Remember this command was not part of the BASICODE-3 definition of 1986 (only in the 2nd print of the standard).

Allowed BASICODE functions

The following functions are allowed: TAB, ABS, SGN, INT, SQR, SIN, COS, TAN, ATN, EXP, LOG (natural logarithm), ASC, VAL, LEN, CHR$, LEFT$, MID$, RIGHT$.

Allowed BASICODE operators

The following operators were allowed: AND, OR, NOT, + (also with strings), -, *, /, ^ (exponent), <, =, >, <=, <>, >=

Subroutines

Line numbers

The following line numbers method is used in BASICODE-3:
0 - 999: The BASICODE translator subroutines;
1000 - 1010: mandatory in the form of:
1000 A=<total memory space needed of all strings>: GOTO 20: REM program-name
1010 <rest of program>
1011 - 19999: The rest of the BASICODE program;
20000 - 24999: possible machine-dependant subroutines;
25000 - 29999: DATA-lines;
30000 - 31999: REM-lines with a short description of the program and links to literature;
32000 - 32767: REM-lines with name and address of author.


From BASICODE-3; Boek&Casette, (c) Kluwer Technische book, 2nd print, 1988, ISBN 90 201 2111 1

Running BASICODE programs

A working program can be made by having the BASICODE program (using line numbers from 1000 and up) and merge before that one the BASICODE translator (which uses line number from 0 to 999) for your system. When merged one gets a fully operation program fit for the BASIC interpretator of the system one is using. This program can run by using the RUN command.

Disclaimer and Copyright
HomeUpSearchMail

Major content related changes: September 10, 2005