Difference between revisions of "CSC231 Homework 6 Solution"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <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 | ||
− | |||
;;; ------------------------------------------------------------- | ;;; ------------------------------------------------------------- | ||
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 | ||
− | |||
;;; ------------------------------------------------------------- | ;;; ------------------------------------------------------------- | ||
printByte: | printByte: | ||
Line 227: | Line 226: | ||
;;; a byte from the image | ;;; a byte from the image | ||
;;; registers modified: edx, eax | ;;; registers modified: edx, eax | ||
− | |||
;;; ------------------------------------------------------------- | ;;; ------------------------------------------------------------- | ||
read1bit: | read1bit: | ||
Line 239: | Line 237: | ||
− | </ | + | </source> |
+ | </onlydft> | ||
+ | [[Category:CSC231]][[Category:nasm]] |