Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Counting HLASM Toolkit Feature User's Guide GC26-8710-10 |
|
This case applies when a count is to be decremented by 1 each time, and the loop is to be terminated when the count reaches zero. This is achieved by specifying just the FROM keyword. In the situation where only two parameters are used, a BCT loop terminator is generated. For example:
produces:
For a slightly shorter loop, write the FROM keyword with three parameters to designate an additional register. In this case, a BCTR is generated as the loop terminator. For example:
produces:
If no value appears in the FROM keyword, the load instruction is not generated. |
Copyright IBM Corporation 1990, 2014
|