Loop Command

The LOOP instruction repeats a block of instructions for a certain number of times. This number will be held in the CX register. Each time we reach this instruction, the CPU will decrement the CX register and jump to a specified instruction until CX becomes zero. This instruction looks like "LOOP 1A00" where the number indicates the instruction address to loop to.

Return