Previous Topic: SVC Instructions in an Online ProgramNext Topic: Methods of Calling an Online Assembler Subprogram


Making Your Assembler Program Reentrant

All programs that are designed to run in an online DC environment should be written using fully reentrant coding techniques. This means that the program should never update its own storage. Any variable storage that your program needs to update should be in an area reserved for the exclusive use of a single task. Typically, you would define a DSECT to map this area. Several techniques can be used to achieve this goal. Two or more of these techniques can be combined in a single program.

A non-reentrant assembler routine can be used in an online DC environment under certain limited circumstances, but this is not recommended for reasons explained below.