Difference between revisions of "CSC231 Homework 4 Solution"

From dftwiki3
Jump to: navigation, search
(New page: =Homework #4 Solution= ==Problem #1== <code><pre> ;;; ; ------------------------------------------------------------------- ;;; ; hw4a.asm ;;; ; Lei Lei ;;; ; ;;; ; Given the following de...)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<onlydft>
 
=Homework #4 Solution=
 
=Homework #4 Solution=
  
 
==Problem #1==
 
==Problem #1==
<code><pre>
+
<source lang="asm">
 
;;; ; -------------------------------------------------------------------
 
;;; ; -------------------------------------------------------------------
 
;;; ; hw4a.asm
 
;;; ; hw4a.asm
Line 132: Line 133:
 
 
  
</pre></code>
+
</source>
  
  
 
==Problem #2==
 
==Problem #2==
<code><pre>
+
<source lang="asm">
 +
;;; ; -------------------------------------------------------------------
 
;;; ; hw4b.asm
 
;;; ; hw4b.asm
 
;;; ; Julia Burch
 
;;; ; Julia Burch
 
;;; ; 231a-aa
 
;;; ; 231a-aa
 
;;; ;
 
;;; ;
 +
;;; ; Computes and prints the first 10 rows of Pascal's triangle.
 
;;; ; OUTPUT:
 
;;; ; OUTPUT:
 
;;; ;  1 0 0 0 0 0 0 0 0 0
 
;;; ;  1 0 0 0 0 0 0 0 0 0
Line 230: Line 233:
 
ret
 
ret
  
</pre></code>
+
</source>
 +
</onlydft>
 +
 
 +
[[Category:CSC231]]

Latest revision as of 15:14, 21 October 2014


...