Difference between revisions of "CSC231 Final Exam Fall 2017"
Line 5: | Line 5: | ||
* Make a copy of it under the name 231Lib2.asm | * Make a copy of it under the name 231Lib2.asm | ||
* Add a new function to 231Lib2.asm called _cowPrint() that gets a message in ecx, edx (similarly to _printString), and that prints a message with a cow, similarly to the bash command cowsay. See below for an example. | * Add a new function to 231Lib2.asm called _cowPrint() that gets a message in ecx, edx (similarly to _printString), and that prints a message with a cow, similarly to the bash command cowsay. See below for an example. | ||
− | * The message can be at most 80 characters, and will be printed | + | * The message can be at most 80 characters, and at least 1 character in length, and will be printed on one ine only. The Linux '''cowsay''' command wraps long messages but you are not supposed to implement this feature. |
::<source lang="text"> | ::<source lang="text"> | ||
cs231a@aurora ~ $ /usr/games/cowsay Hello CSC231 | cs231a@aurora ~ $ /usr/games/cowsay Hello CSC231 |