Create Release Version

The "create release version" utility helps you create your distributin version. It will do the following for you:
1. Copy your programs into an SM32 program library, optionally removing the source code as they are copied.
2. Copies sm32.exe, the DATA directory and the HTML\IMAGES directory to the release directory.
3. Creates a configuration file to use the created program library, to start execution with your initial program and to specify your entity 254 program (see below).

Utility Input

Destination Directory:
The default directory is ..\release. So if your development directory is:
C:\SM32\development
the the default release directory is:
C:\SM32\release
You can override this by entering a directory name. The directory is created if it does not exist.

Program Library:
The program library name defaults to SMPGMLIB, it can be changed with the edit box. You can include (via check boxes) all the programs from the PROGS directory and from the UTIL directory. There is also a check box which selects removal of source code. When this utility removes source code it simply replace the source for each statement with "NS".

Entity 254:
Conceptually entity 254 is a program space that executes a basic program when your program goes into console mode. It has it's own set of variables. This program is normally "$__BEDIT". If you load "$__BEDIT" and list line 4010 you will see the:
INPUT ">",A$
that is the input for your console mode commands. This feature of SM32 allows us to have a special release version program that executes if the release version ever falls into console mode. "$__FATAL" is such a program. You probably will personalize "$__FATAL". If you choose "$__BEDIT" for entity 254 the programs from UTIL are also be included (you would probably also uncheck Remove Source Code).

If you leave all the defaults your intial statement will be:
10 ENTITY 254,14,"$__FATAL";CALL "$__SETUP";RUN "START"