CS250 Project 4: Writing C-compatible Functions In Assembly

Due Monday, April 29

There is a file located in the class example area, p4test.c, that calls and tests 4 C functions. Create a matching assembly file (a .s file) that defines each of these 4 functions. You'll need 5 functions total, since return_five_returner returns a function, which you'll also have to define. Don't change the c file (except for testing), but rather make your assembly functions work with the code that's already there.

Sample output:
seth@nimrod:~/cs250/c_funtion_project $ ./a.out
Mantis
Dragonfly
Moth
Water Strider
Mayfly
Termite
halves_to_100(437) returns 3
halves_to_100(1837) returns 5
halves_to_100(100.1) return 1
halves_to_100(89.2) return 0
Got it!
With the spaces replaced by underscores:
This_phrase_has_spaces.