ASSEMBLY
Here you can find a couple of programs I have written in MIPS assembly language during my freshman year in college -- at UNL.I don't like programming in MIPS in particular; nevertheless, I think it is the nicest one among assembly languages.
You may want to download and use SPIM to run these programs.
dec_to_bin
MIPS is probably not the best language to write a decimal to binary converter; but, this little program gets the job done! First ever MIPS code I have written, take it easy.
source: [ html ] [ s ]
floating_point
This program is not a very nice one. Great one if you want to punish your CPU though. Very long execution time, crazy loops with floating-point numbers, summations, etc. A must-run!
source: [ html ] [ s ]
f_to_c_converter
MIPS is probably not the best language to write a fahrenheit to celcius converter either; but, this little program gets the job done as well!
source: [ html ] [ s ]
string_search
Never heard of string in MIPS? Well, check this out: string search in MIPS! Search queries are not hardcoded, it is prompted.
source: [ html ] [ s ]