IUP Computer Science   
COSC 300

Quiz #2      22 Nov 2005

Consider the following elements from a C++ program, then write the equivalent in MIPS assembly language.  Show any data directives and any instructions you need to do this.

double    total;
double    mixed;
int            hold;
float        mess;

if (mixed * total > 25.63)
{
    mixed = hold + 12;
    total = total - mess;
{
else
    cout << total;
mess = 0.0;