HomeUpSearchMail
NEW

Overview of BASICODE-2

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

General rules

  • BASICODE has a standard method of putting programs on a tape (frequency and ASCII codes)
  • BASICODE variables names are maximum two characters long. The first character has to be a capital letter and the optional second letter can be a number or a capital letter.
  • All variables beginning with O are reserved for use inside the BASICODE Translator.
  • BASICODE-2 reserved variable names are: A, AT, CN, CT, FN, FR, HO, IF, IN$, RV, SR, SR$, and VE 
    BY
    can't be used when incorporating BB4W (did not exists when BASICODE was developed) in list of BASICODE capable systems
  • String have a maximum length of 255 characters.
  • A BASICODE line is maximum 60 characters (also the DEF FN command).
  • BASICODE screens is preferable 40 chapters wide (but can be smaller like 25 characters)
  • (HO,VE) = (0,0) is top left corner of text screen

Allowed BASICODE-2 commands

The following commands are allowed: PRINT, INPUT, GOTO, GOSUB, RETURN, LET, FOR...TO...STEP, NEXT, IF..THEN (no ELSE), ON...GOTO, ON...GOSUB, RUN, STOP, END, DIM, READ, DATA, RESTORE, REM. No DEF FN (or DEFFN).

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-2:
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: subroutines;
25000 - 29999: DATA-lines;
30000 - 32767: REM-lines with name and address of author.

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