I have written a code for factual computing on C, but I want to translate it into assembly language to work on PCSPIM I am trying but how do I think ?? Can anyone help please?
C code:
#include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; Zero Genesis (long argument, long * result) {if (logic & lt; 2) {printf ("% ld", * result); } And {long before = argument - 1; * Result = * Result * First; Logic = first; White (logic, result); }} Int main () {long argument, answer, * result; Printf ("factorial"); Scanf ("% ld", & amp; logic); Results = & amp; answer; * Result = Logic; Printf ("% ld! =", Argument); White (logic, result); } SPIM is an MIPS interpreter, therefore you must write those processes to the MIPS assembly.
No comments:
Post a Comment