![]() | ![]() ![]() ![]() |
Sometimes there is a need for small nested loops. One solution:
mov cl,outer_cycle_num
outer_cycle:
; [ outer cycle code ]
mov ch,inner_cycle_num
inner_cycle:
; [ inner cycle code ]
dec ch
jne inner_cycle
loop outer_cyclethis is 2 bytes shorter than DEC CL/JNE combination.