bdfs1m1dStructured Programming Macros

DCLREG-Declare General Registers

Use this macro to define all general registers with a name starting with the letter R. For example, general register 5 is defined as R5. The new register definitions can then be used with other TPF structured programming macros (SPMs).

Format




Entry Requirements

None.

Return Conditions

Control is returned to the next sequential instruction.

Programming Considerations

Coding a DCLREG macro is equivalent to coding the following DCL macro statements:

         DCL   R0,REGISTER,0
         DCL   R1,REGISTER,1
         DCL   R2,REGISTER,2
         DCL   R3,REGISTER,3
         DCL   R4,REGISTER,4
         DCL   R5,REGISTER,5
         DCL   R6,REGISTER,6
         DCL   R7,REGISTER,7
         DCL   R8,REGISTER,8
         DCL   R9,REGISTER,9
         DCL   R10,REGISTER,10
         DCL   R11,REGISTER,11
         DCL   R12,REGISTER,12
         DCL   R13,REGISTER,13
         DCL   R14,REGISTER,14
         DCL   R15,REGISTER,15

See DCL-Declare for more information about the DCL macro.

Examples

The following defines all general registers with a name that starts with the letter R.

    DCLREG

Related Macros

DCL-Declare.