Difference between revisions of "CSC231 Homework 6 Solution"

From dftwiki3
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code><pre>
+
<onlydft>
 +
<source lang="asm">
 
;;; hw6.asm
 
;;; hw6.asm
 
;;; Ellysha Raelen Recto
 
;;; Ellysha Raelen Recto
Line 193: Line 194:
 
;;; is from the last bit of first 8th byte of image
 
;;; is from the last bit of first 8th byte of image
 
;;; registers modified: edx, ecx, eax, ebx
 
;;; registers modified: edx, ecx, eax, ebx
;;; written by: Ellysha Raelen Recto
 
 
;;; -------------------------------------------------------------
 
;;; -------------------------------------------------------------
 
decode1byte:
 
decode1byte:
Line 210: Line 210:
 
;;; printByte: prints 1 byte of secret msg
 
;;; printByte: prints 1 byte of secret msg
 
;;; registers modified: edx, ecx, eax, ebx
 
;;; registers modified: edx, ecx, eax, ebx
;;; written by: Ellysha Raelen Recto
 
 
;;; -------------------------------------------------------------
 
;;; -------------------------------------------------------------
 
printByte:
 
printByte:
Line 227: Line 226:
 
;;; a byte from the image
 
;;; a byte from the image
 
;;; registers modified: edx, eax
 
;;; registers modified: edx, eax
;;; written by: Ellysha Raelen Recto
 
 
;;; -------------------------------------------------------------
 
;;; -------------------------------------------------------------
 
read1bit:
 
read1bit:
Line 239: Line 237:
  
  
</pre></code>
+
</source>
 +
</onlydft>
 +
[[Category:CSC231]][[Category:nasm]]

Latest revision as of 13:39, 20 September 2014


...