SPI Programming Manual (G06.24+, H06.03+, J06.03+)

SPI Programming Examples
SPI Programming Manual427506-006
E-4
Running the C Programs
Running the C Programs
The SECBUILD macro creates six runnable object files:
A Note on Program Output
The example programs use DSM Template Services formatting procedures to display
the contents of SPI buffers. Template Services uses an asterisk (*) to mark the current-
token pointer and a hyphen (-) to mark the last-put-token pointer. When both point to
the same token, only the hyphen is displayed. For more information about these
procedures, see the
DSM Template Services Manual
.
Source File Examples
Example E-1: Basic Buffer Manipulations in TAL
The TAL source file in Example E-1 on page E-5 demonstrates the basic buffer
manipulation activities illustrated in Figure 2-4
on page 2-18. The program uses DSM
Template Services to display the contents of the buffer after each manipulation. Run
the program to see the effect of SPI procedure calls on the contents of the buffer and
the locations of the buffer pointers.
Source File
SET0204
Object File
SET0204O
Example Object File
E-2 SEC0204O
E-4 SEC0205O
E-6 SEC0206O
E-8 SEC0207O
E-10 SECREQRO
E-12 SECSERVO
Run automatically by SECREQO, the requester from E-10. Choose from the first five programs.