Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

loops and programming manual, Lab Reports of Object Oriented Programming

programming related solution manual of topic loops

Typology: Lab Reports

2020/2021

Uploaded on 01/25/2021

ahsan-ahmed-5
ahsan-ahmed-5 🇵🇰

1 document

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab Manual for Computer Organization and Assembly
Language Lab-08 Loops
pf3
pf4
pf5
pf8

Partial preview of the text

Download loops and programming manual and more Lab Reports Object Oriented Programming in PDF only on Docsity!

Lab Manual for Computer Organization and Assembly

Language

Lab- 08 Loops

Department of Computer Science,

Table of Contents

 - Page 
  • Table of Contents Contents
    1. Introduction
    1. Objective
    1. Concept Map
    • 3.1 Loop Instruction
    1. Walk Through Task
    • 4.1 Program to print digit 0 to 9, using loop.
    • 4.2 Program to print small letter alphabets a to z, using loop.
    1. Procedure& Tools
    • 5.1 Tools
    1. Practice Tasks
    • 6.1 Practice Task 1 [Expected time = 15mins]
    • 6.2 Practice Task 3 [Expected time = 15mins]
    • 6.3 Practice Task 5 [Expected time = 10mins]
    • 6.4 Practice Task 6 [Expected time = 10mins]
    • 6.5 Practice Task 7 [Expected time = 10mins]
    • 6.6 Practice Task 8 [Expected time = 10mins]
    • 6.7 Practice Task 9 [Expected time = 10mins]
    • 6.8 Out comes
    1. Evaluation Task (Unseen) [Expected time = 30mins for tasks]
    1. Evaluation criteria
    1. Further Reading
    • 9.1 Slides

Department of Computer Science, Page 4 The above code snippet could be written as – mov ECX, 10 l1: loop l The execution of the Loop instruction involves two steps:

  1. First, it subtracts 1 from ECX.
  2. Next, it compares ECX to zero.
  • If CX is not equal to zero; a jump is taken to the label identified by destination.
  • Otherwise, if CX equals zero, no jump takes place and control passes to the instruction following the loop.

4. Walk Through Task

4.1 Program to print digit 0 to 9, using loop.

Department of Computer Science, Page 5

4.2 Program to print small letter alphabets a to z, using loop.

Department of Computer Science, Page 7

6.4 Practice Task 6 [Expected time = 10 mins]

Write a program to print numbers 0- 9?

6.5 Practice Task 7 [Expected time = 1 0 mins]

Write a program to print 0- 9 in reverse order?

6.6 Practice Task 8 [Expected time = 1 0 mins]

Write a program to print first five odd numbers in reverse order?

6.7 Practice Task 9 [Expected time = 1 0 mins]

Write a program to print first five even numbers in reverse order?

6.8 Out comes

After completing this lab, student will be able to implement and solve loop problem in assembly language.

7. Evaluation Task (Unseen) [Expected time = 30 mins for tasks]

The lab instructor will give you unseen task depending upon the progress of the class.

8. Evaluation criteria

The evaluation criteria for this lab will be based on the completion of the following tasks. Each task is assigned the marks percentage which will be evaluated by the instructor in the lab whether the student has finished the complete/partial task(s). Table 3 : Evaluation of the Lab Sr. No. Task No Description Marks 1 4 Problem Modeling 20 2 6 Procedures and Tools 10 3 7 Practice tasks and Testing 35 4 8 Evaluation Tasks (Unseen) 20 5 Comments 5 6 Good Programming Practices 10

9. Further Reading

This section provides the references to further polish your skills.

Department of Computer Science, Page 8

9.1 Slides

The slides and reading material can be accessed from the folder of the class instructor available at \fs\lectures$\