Difference between revisions of "CSC103 Homework 4 2012"

From dftwiki3
Jump to: navigation, search
(Problem #1)
(Problem #1)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
----
 
----
 
<br />
 
<br />
<bluebox>This assignment is optional.  You will not be penalized if you do not submit a solution for it.  But if you do this assignment, its grade can be used to replace the lowest grade you will have received on an prior or future assignment.  If the grade you get on this assignment is the lowest of all assignments, then it will not count for anything.
+
<bluebox>This assignment is '''optional'''.  You will not be penalized if you do not submit a solution for it.  But if you do this assignment, its grade can be used to replace the lowest grade you will have received on an prior or future assignment.  If the grade you get on this assignment is the lowest of all assignments, then it will not count for anything.
 +
<br />
 +
You '''cannot''' work on this assignment in a group.  You have to work on it individually, by yourself.
 
</bluebox>
 
</bluebox>
  
Line 8: Line 10:
 
=Problem #1=
 
=Problem #1=
  
Write an assembly language program that is similar to the program for Problem 4 of [[CSC103 Assembly Language Lab 2012 | the assembly language lab]], but differs in an important detail.  Your program should start with '''var1''' and '''var2''' containing 55, and will keep on incrementing '''var1''' (that is adding 1 to it) and decrementing '''var2''' (that is subtracting 1 from 1) until '''var1''' reaches '''70''' and '''var2''' reaches '''60'''.
+
Write an assembly language program that is similar to the program for Problem 4 of [[CSC103 Assembly Language Lab 2012 | the assembly language lab]], but differs in an important detail.  Your program should start with '''var1''' and '''var2''' containing 55, and will keep on incrementing '''var1''' (that is adding 1 to it) and decrementing '''var2''' (that is subtracting 1 from 1) until '''var1''' reaches '''60''' and '''var2''' reaches '''50'''.  At this point the program will stop.
  
 
   
 
   

Latest revision as of 22:18, 22 February 2012

--D. Thiebaut 16:48, 22 February 2012 (EST)



This assignment is optional. You will not be penalized if you do not submit a solution for it. But if you do this assignment, its grade can be used to replace the lowest grade you will have received on an prior or future assignment. If the grade you get on this assignment is the lowest of all assignments, then it will not count for anything.


You cannot work on this assignment in a group. You have to work on it individually, by yourself.


Problem #1

Write an assembly language program that is similar to the program for Problem 4 of the assembly language lab, but differs in an important detail. Your program should start with var1 and var2 containing 55, and will keep on incrementing var1 (that is adding 1 to it) and decrementing var2 (that is subtracting 1 from 1) until var1 reaches 60 and var2 reaches 50. At this point the program will stop.


Copy/Paste your program into the text editor of your choice, and your name to the sheet of paper, and hand it in class on 2/29/12.