Difference between revisions of "CSC231 Final Exam Fall 2017"

From dftwiki3
Jump to: navigation, search
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 as one line.  The Linux '''cowsay''' command wraps long messages but you are not supposed to implement this feature.
+
* 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

Revision as of 17:15, 10 December 2017


...