Topic : The GFA-Basic Compendium
Author : GFA Systemtechnik GmbH
Version : GFABasic.HYP v2.98 (12/31/2023)
Subject : Documentation/Programming
Nodes : 899
Index Size : 28056
HCP-Version : 3
Compiled on : Atari
@charset : atarist
@lang :
@default : Document not found
@help : Help
@options : +g -i -s +z
@width : 75
@hostname : STRNGSRV
@hostname : CAB
@hostname : HIGHWIRE
@hostname : THING
View Ref-FileWith the release of 3 one is provided with both an extensive
programming and powerful language which is easy to use via its quick and
friendly Editor. The entire framework and design of the language encourages
structured programming and provides the user with the necessary tools.
The Interpreter provides for simple debugging by means of the special commands
provided. The Editor supports structured programming by automatic indentation
of loops and conditions. Additionally, subroutines can be represented in the
program listing by name only, and 'opened' to their full length by pressing a
key.
In the area of conditional commands, various additions have been made to the
commands IF-ELSE-ENDIF, which already existed in earlier versions of ,
e.g. ELSE IF, SELECT-CASE. Both the values of variables and the variables
themselves can be passed to procedures. Furthermore, the loop types FOR-NEXT,
REPEAT-UNTIL, WHILE-WEND, and DO-LOOP available in earlier versions of
have been extended with DO-UNTIL, DO-WHILE, LOOP-UNTIL, and
LOOP-WHILE.
System level programming is achieved through the ability to call operating
system routines (GEMDOS, BIOS, XBIOS). Many of these routines are also
available in the form of simple instructions. The programming of Interrupts
with EVERY and AFTER is also possible. Assembler and C routines may be
interleaved into programs with instructions like RCALL, C:, CALL, and MONITOR.
The most important VDI routines and all AES functions, e.g. menu and form
management, are available as built-in functions.
provides genuine Integer arithmetic, which offers high computing
speed, as well as floating-point arithmetic with high computational accuracy
(13 decimal places), while further variable types BYTE, WORD, and bit
operations BCLR(), BSET(), BTST(), BCHG(), SHL(), SHR(), ROL(), ROR(), etc.,
have been included. Graphics programs can easily make use of the Line-A
routines which are implemented as instructions.