1 / 8

Practical Microsoft Assembler: Mastering Loops and Counter Techniques

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.

zocha
Télécharger la présentation

Practical Microsoft Assembler: Mastering Loops and Counter Techniques

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