Difference between revisions of "CSC231 Homework 8 Solution Program 2010"

From dftwiki3
Jump to: navigation, search
(Created page with '--~~~~ ---- <code><pre> ;;; ; File: hw8.asm ;;; ; Author: Tiffany Q. Liu ;;; ; Acct: 231a-ac ;;; ; Date: November 17, 2010 ;;; ; Desc: Programs Conway's Game of Life in one di…')
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
----
 
----
  
 +
<onlydft>
 
<code><pre>
 
<code><pre>
  
Line 148: Line 149:
 
xor edx, edx
 
xor edx, edx
 
mov eax, dword[x]
 
mov eax, dword[x]
mov ebx, 2
+
        and    al, 1
div ebx
+
mov byte[esi], al
mov byte[esi], dl
 
 
inc esi
 
inc esi
 
loop .for
 
loop .for
Line 380: Line 380:
  
 
</pre></code>
 
</pre></code>
 
+
</onlydft>
 
<br />
 
<br />
 
<br />
 
<br />

Latest revision as of 15:44, 7 November 2012

--D. Thiebaut 23:35, 21 November 2010 (UTC)



...