Microprocessor & Assembly Language Lecture at University of Basrah

2 rd grade n.w
1 / 8
Embed
Share

Explore special topics in microprocessor and assembly language at the University of Basrah with instructor Ghazwan Abdulnabi Al-Ali. Learn about LOOP instruction, program examples, and more in this educational session.

  • Microprocessor
  • Assembly Language
  • University
  • Basrah
  • Lecture

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. 2rd Grade Computer Science Dept/ College of Education for Pure Sciences Special Topics: Microprocessor & Assembly Language Lecture 6 Instructor: Ghazwan Abdulnabi Al-Ali University of Basrah, Iraq

  2. Microprocessor & Assembly Language University of Basrah LOOP instruction This instruction is used to repat statements for many times . where the number of repeating is in CX (Counter Register): structure MOV CX, Rep_Number Continue: statements . LOOP Continue Each time The value in CX is decremented by 1 and statements will repeated until CX value reach to zero. 2

  3. Microprocessor & Assembly Language University of Basrah Ex1 Write a program to find (X*Y) using LOOP instruction. 3

  4. Microprocessor & Assembly Language University of Basrah Solution: mov cl,4 mov al,0 mov bl,2 cont:add al, bl loop cont 4

  5. Microprocessor & Assembly Language University of Basrah EX.2 Write a program to find (X^Y) using LOOP instruction 5

  6. Microprocessor & Assembly Language University of Basrah EX.3 Write an assembly language program to generate B where b is the inverse of A. 6

  7. Microprocessor & Assembly Language University of Basrah 7

  8. Microprocessor & Assembly Language University of Basrah Thank You 8

Related


More Related Content