80 likes | 214 Views
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: … …
E N D
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