ECET330 week 3 ilab

Question # 00067933 Posted By: solutionshere Updated on: 05/10/2015 02:15 PM Due on: 05/10/2015
Subject General Questions Topic General General Questions Tutorials:
Question
Dot Image

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



Course Number:ECET330

Professor: Alireza Kavianpour

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

Results:

Able to create a program that gets the sum of the values in an array, as well as multiple arrays

Conclusions:

This week lab taught us how to write not only one loop but two loops in one single program. At first, it was difficult to execute subroutine instructions. But after going over notes and lectures, we understand how to use subroutines.



Team:

May Saw

EET

Name

Program

Signature

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?

Grade:

Deliverable

Points Available

Points Achieved

Laboratory Cover Sheet

8

Working Circuit(s)/Program(s)

10

Observations/Measurements

8

Questions

4

Total Points

30

Comments:

Dot Image
Tutorials for this Question
  1. Tutorial # 00063826 Posted By: solutionshere Posted on: 05/10/2015 02:16 PM
    Puchased By: 3
    Tutorial Preview
    single program. At first, it was difficult to execute subroutine ...
    Attachments
    Saw-M-ECET330_W3_iLab.docx (90.11 KB)
    Recent Feedback
    Rated By Feedback Comments Rated On
    c...o2 Rating Service cost is pocket-friendly 08/25/2015

Great! We have found the solution of this question!

Whatsapp Lisa