Practical Microsoft Assembler: Mastering Loops and Counter Techniques
80 likes | 228 Vues
Dive into the essentials of Microsoft Assembler with our guide on loops and counters. Learn how to implement the CX register for counting iterations and create effective looping structures. Explore examples, including "LOOP" and conditional jumps like "LOOPE," "LOOPZ," and "LOOPNE." Understand the key components of assembly language, including labels and the "MOV" instruction, to manipulate data. This resource is perfect for beginners and those looking to sharpen their programming skills in assembly language.
Practical Microsoft Assembler: Mastering Loops and Counter Techniques
E N D
Presentation Transcript
Cos 365 Practical Microsoft Assembler
Loops • 3 components • Counter = cx • Label • Loop “labelname”
Loop example Mov cx, 10 Mov ax, 1 A1: add ax, ax loop A1 Call Writeint_signed
Loop(..) • Guess what? • Loope • Loopz • Loopne • Loopze
Loope example Mov cx, 50 A1: … … cmp [aname+si], 0 loope A1