bdfs1m14Structured Programming Macros

#STPR-Step Registers

Use this macro to generate inline code to increment or decrement 1 or more registers.

Format




reg
is a register that contains the value to be incremented or decremented. You can specify as many as 10 registers.

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

type/label
specifies the amount by which to increment or decrement the specified value, where label is the label of a location that contains the amount and is prefixed by one of the following:

A/label
specifies a 4-byte address contained at location label.

F/label
specifies a fullword starting at location label.

H/label
specifies a halfword starting at location label.

X/label
specifies a byte starting at location label.

I/label
specifies a 1-byte equated value.

P/label
specifies packed data at location label.

register
is a register that contains the amount by which to increment or decrement the specified value.

Entry Requirements

None.

Return Conditions

Programming Considerations

 All labels used in the SPM conditional expression can be no more than 32 characters long. Any additional characters are truncated. 

Examples

Related Macros