6
1.2.2 What’s New in BHT-BASIC 3.5 Upgraded from
BHT-BASIC 3.0?
Based on BHT-BASIC 3.0, BHT-BASIC 3.5 newly supports the following functions:
[ 1 ] Compiler
Object linkage editor, Linker
Object linkage editor, LinkerObject linkage editor, Linker
Object linkage editor, Linker
While BHT-BASIC 3.0 Compiler compiles a single source program into a single user program,
BHT-BASIC 3.5 Compiler can convert more than one source program into individual object
programs (intermediate code files for a user program) and then combine them together
through Linker to build a user program. With Linker, you may use existing object programs for
development of user programs.
Libraries
LibrariesLibraries
Libraries
The Librarian allows you to build libraries out of object files resulting from compiling, which
makes it easier to use existing application programs. This facilitates the use of existing
application programs for development of other programs.
Projects
ProjectsProjects
Projects
BHT-BASIC 3.5 has added a concept of Project that makes it easier to use multiple source
pro-grams for producing a user program.
[ 2 ] Statements
Added statements
Added statementsAdded statements
Added statements
Based on BHT-BASIC 3.0, BHT-BASIC 3.5 newly supports several statements for making
distinction between global variables and local variables, and for defining functions and
constants.
Newly added statements
CALL
CONST
DECLARE
FUNCTION...END FUNCTION
GLOBAL
PRIVATE
SUB...END SUB
Calls a SUB function in addition to an FN3 function.
Defines symbolic constants to be replaced with labels.
Declares user-defined function FUNCTION or SUB
externally defined.
Names and defines user-defined function FUNCTION.
Declares one or more work variables or register variables
defined in a file, as global variables.
Declares one or more work variables or register variables
defined in a file, as local variables.
Names and defines user-defined function SUB.
BHT-BASIC 3.5 provides the constants definition file "BHTDEF.INC." Reading the "BHT-DEF.
INC" as an included file allows you to use constant names defined in that file.
Example ’$INCLUDE:’BHTDEF.INC’
OUT .pnLEDCtrl,.pvLEDGrn 'Turn LED (green) ON
Comentarios a estos manuales