Guide: Loop
To follow this guide, you’ll need to use the loop.asm file located in the guides/loop/support directory.
This program illustrates how to use the loop instruction, as well as how to index an array of dwords.
Note: The
loopinstruction jumps to the given label when thecountregister is not equal to 0. In the case ofx86thecountregister isecx.Note: For a detailed description of the
loopinstruction check out the documentation.