TAL Programmer's Guide
2 Getting Started
096254 Tandem Computers Incorporated 2–1
To get you started quickly, this section presents a sample program and describes the
basic commands for developing and running a program.
Sample Source File The sample program adds two numbers together. The source code for the sample
program is in a source file named MYSRC. Figure 2-1 shows the content of the sample
source file.
Figure 2-1. Sample Source File
!This is a source file named MYSRC.
?SOURCE $SYSTEM.SYSTEM.EXTDECS (INITIALIZER)
 !Include system procedure
PROC myproc MAIN; !Declare procedure MYPROC
 BEGIN
 INT var1; !Declare variables
 INT var2;
 INT total;
 CALL initializer; !Handle start-up message
 var1 := 5; !Assign value to VAR1
 var2 := 10; !Assign value to VAR2
 total := var1 + var2; !Assign sum to TOTAL
 END; !End MYPROC
This section describes how to:
1. Create the source file
2. Compile the source file into an object file
3. Run the object file










