This programm is to be written in SXB, the Structured Extended BASIC. 

SXB is Structured Extended Basic, built into the TiCodEd development environment. SXB introduces modern programming concepts
to the classic Extended BASIC. It allows you to program without line numbers and GOTO-Statements. It introduces new kinds of
loops and labels for the use of GOSUB. Labels are any non-resevered words, starting with a letter and continue with letters,
numbers or underscores, ended by a colon. Usually labels are used on a line on its own, followed by indented code, and an 
un-indented RETURN statement.

The code gets translated to classic TI Extended BASIC by TiCodEd to run on the original module or to be compiled.


REPEAT...UNTIL <CONDITION>	A foot-controlled loop; code is executed at least once before the boolean CONDITION is checked.
WHILE <CONDITION>...ENDWHILE	A head-controlled loop; the boolean CONDITION is checked first. May be omitted entirely if the condition is false.
CASE x OF...<value> : <STMT>...[ELSE <STMT>]...ENDCASE	Transfers control based on arbitrary numeric or string values of variable x.
BEGIN...<CODE>...END	Explicit code blocks used to group multiple statements within IF-THEN-ELSE or CASE statements and only there.
CONST name=value	Defines a named constant (name) replaced by its literal value during XB code generation.
IF K IN[set] THEN OR IF K NOT IN[set] THEN	Tests if variable K is included within a defined set of values ([set]).
BIN$( HEX-STRING )	Includes binary data in a string by converting the static HEX-STRING during tokenization, so only constant strings are allowed.
// comment text	Ignored and not included in the exported standard XB file.
# debug line code	Line is included only if the Debug option is enabled in project settings.
$xx OR $xxxx	Used to denote a two or four digit hexadecimal number where a numeric literal is required.
 