In Assembly, controlling flow is manual and precise. You’ll jump around labels and use conditional instructions to make loops and decisions.
jmp label — unconditional jumpje label — jump if equal (zero flag set)jne label — jump if not equaljg label — jump if greater (signed)jl label — jump if less (signed)You manually create loops by jumping back to labels until a condition breaks the loop.
cmp, they decide which jump happens.