Question: This is the specification if what the assembly functions need to perform. /* begin assignment specification */ void classify (void) { Covert the following C

/* begin assignment specification */ void classify (void) { Covert the following C code to equivalent assembly. Everywhere you see "return" replace with "jmp return" Don't forget to declare "match" in the area at the bottom. Note that the C driver defines i, j, k, and tri_type, so the assembly code does not need to. if (i == 0 || j == 0 || k == 0) { tri.type = 0; /* can't be a triangle */ return; } /* count matching sides */ match = 0; if (i j) match += 1; if (i k) match += 2; if 6 == k) match += 3; /* select possible scalene triangles */ if (match) { if (match == 1) { if ((i+j)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
