The BCTR instruction is intended for use at the end of a loop. That is, before starting the loop the number of iterations over the loop is set up in the count register. At the end of each pass over the loop the count is decremented and the loop is repeated until the count drops to zero.
YREGS * Define register names ... SETUP LA R2,12 * Repeat 12 times LA R3,LOOP * Start point of loop ... * More initialization LOOP EQU * * Start of loop ... * Content of the loop goes here BCTR R2,R3 * Repeat until count drops to 0 ...
To the Opcodes Overview.
To the English Homepage for Hlasm.com.
To the General Homepage for Bixoft and Hlasm.com.
This site is a member of WebRing.
You are invited to browse the list of mainframe-loving sites.
|Dinos are not dead. They are alive and well and living in data centers all around you. They speak in tongues and work strange magics with computers. Beware the dino! And just in case you're waiting for the final demise of these dino's: remember that dinos ruled the world for 155-million years!|
[ Join Now | Ring Hub | Random | | ]
Below you find the logo of our sponsor and logos of the web-standards that this page adheres to.