bdfs1m0tStructured Programming Macros

#CONS-Convert Binary to Character Decimal with Zero Suppression

Use this macro to generate inline code to convert a binary number to character decimal with leading blanks.

Note:
See Table 1 for a summary of all the conversion macros.

Format




INPUT=reg1
specifies a register, reg1, that contains the binary number to be converted.

TO=reg2
specifies a register, reg2, that points to the location that will contain the converted value.

LENGTH=maxval
specifies the length of the resulting character decimal string, where maxval is the length.

You can specify a maximum value of 15 for the MAX parameter.

WORK=workarea
specifies an 8-byte work area.

Entry Requirements

None.

Return Conditions

Programming Considerations

Examples

Related Macros

#COND-Convert Binary to Character Decimal.