bdfs1m12Structured Programming Macros

#STPF-Step a Fullword

Use this macro to generate inline code to increment or decrement a fullword value at a specified location. You can also use this macro to step shared common storage.

Format




reg1
is a working register for the macro.

reg1,reg2
are a pair of registers used by the Compare and Swap (CS) instruction. See ESA/370 Principles of Operation or ESA/390 Principles of Operation for more information about the CS instruction. Use this form to change the contents of a fullword in shared storage to ensure the field is always updated consistently.

number
is the amount by which to increment or decrement the specified value. If you specify a positive number, the value at the specified location will be incremented. If you specify a negative number, the value at the specified location will be decremented.

location
is the label of the area that contains the value to be incremented or decremented.

Entry Requirements

None.

Return Conditions

Programming Considerations

Examples

Related Macros