🔁 Assembly Loops & Branching

In Assembly, controlling flow is manual and precise. You’ll jump around labels and use conditional instructions to make loops and decisions.

⏩ Branching Instructions

🔄 Looping with Labels

You manually create loops by jumping back to labels until a condition breaks the loop.

📚 Example Code: Loop Counting Down

💡 Pro Tip: Flags are your control signals — after cmp, they decide which jump happens.

🖥️ Simulated Output

Loop ran 5 times, ecx reached 0 and stopped.