1 / 8

Cos 365 Practical

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: … …

zocha
Download Presentation

Cos 365 Practical

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cos 365 Practical Microsoft Assembler

  2. Loops • 3 components • Counter = cx • Label • Loop “labelname”

  3. Loop example Mov cx, 10 Mov ax, 1 A1: add ax, ax loop A1 Call Writeint_signed

  4. Loop(..) • Guess what? • Loope • Loopz • Loopne • Loopze

  5. Loope example Mov cx, 50 A1: … … cmp [aname+si], 0 loope A1

  6. conditional jumps…again!

  7. and again…

  8. …(^&^$@!!

More Related