Difference between revisions of "CSC231 Homework 8 Solution Program 2010"
(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] | ||
− | + | and al, 1 | |
− | + | mov byte[esi], al | |
− | mov byte[esi], | ||
inc esi | inc esi | ||
loop .for | loop .for | ||
Line 380: | Line 380: | ||
</pre></code> | </pre></code> | ||
− | + | </onlydft> | |
<br /> | <br /> | ||
<br /> | <br /> |