Laboratory Report Cover Sheet
DeVry University
College of Engineering and Information Sciences

 



 

Course Number: ECET330

 

Professor:

 

Laboratory Number: 3

 

Laboratory Title: Introduction to Loops and Subroutines in Assembly Language

 

Submittal Date:Click here to enter a date.

 

 

 

 

 

Objectives:

 

 

 

  1. To become familiar with conditional branch instructions

  2. Understanding how to write loops

  3. Understanding how to write subroutines

 

Observations/Measurements:

 

 

 

IV. 1.A. Copy and paste the source code.

 

IV. 1. B. Copy and paste the register window at the second iteration where the carry becomes set. Highlight the carry flag to show that it is set.

 

IV. 1. C Copy and paste the register window to show the final result.

 

IV. 2.A. Copy and paste the source code.

 

IV. 2. B. Copy and paste the assembly, register, and memory after the first JSR instruction to verify that stack holds the return address.

 

IV. 2. C Copy and paste the memory window to show the values of Sum1 and Sum2.

 

Questions:

 

 

 

 

 

 

 

  1. What does the CPU do (in terms of register contents and stack) when it executes a JSR instruction?

2. What does the CPU do (in terms of register values and stack) when it executes a RTS instruction?

 

    • 11 years ago
    This was graded A+ Use Only As A Guide
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      week3lab.docx