“C -Code an MIPS -Assembly Converter online” Code-Antworten

C -Code an MIPS -Assembly Converter online

addi $3, $0, 15
start: addi $3, $3, -1
add $2, $2, $2
bne $0, $3, start
count:
Wandering Wryneck

C -Code an MIPS -Assembly Converter online

if X<=Y then
   Y= Y +1
else if X != Z then
   Y = Y - 1
else
   Z = Z + 1
Jonathan Ooi

C -Code an MIPS -Assembly Converter online

#include<stdio.h>
void main()
{
int sum=0;

for(int i=101;i<100,i<200;i=i+2) {
    sum+=i;
}
printf("Sum of odd number between 100 to 200 is: %d",sum);
}
Phan Phuvathanak

C -Code an MIPS -Assembly Converter online

for (i=1; i<=N; i++) {
a[i] = c[i]*16; }
Vast Vulture

C -Code an MIPS -Assembly Converter online


toUnsignedString:
# $a0 : nbre entier non signe 
# $a1: adresse du chaine de caractères 
# $a2: base valide  
	sw $a0,0($sp)
	sw $a1,-4($sp)
	sw $ra,-8($sp)
	sw $v0,-12($sp)	
	addi $sp,$sp,-16	
	
toUnsignedStringBoucle1:
	div $a0,$a2
	mflo $a0
	addi $a1,$a1,1
	bne $a0,$0,toUnsignedStringBoucle1
	sb $0,0($a1)
	lw $a0,16($sp)
toUnsignedStringBoucle2:
	addi $a1,$a1,-1
	div $a0,$a2
	mfhi $a0
	jal forDigit
	sb $v0,0($a1)
	mflo $a0
	bne $a0,$0,toUnsignedStringBoucle2
	
	addi $sp,$sp,16			
	lw $a0,0($sp)
	lw $a1,-4($sp)
	lw $ra,-8($sp)
	lw $v0,-12($sp)	
	jr $ra
Grumpy Gaur

C -Code an MIPS -Assembly Converter online

while(S[i]!=k)
{
  i++;
  temp = temp+p+6;
  if(i==j)
    break;
}
a=a+b;
Evil Echidna

C -Code an MIPS -Assembly Converter online

print("salam")
Silly Skunk

C -Code an MIPS -Assembly Converter online

int j = 5;
int i = 0;
int k = 5;
while (i < 10)
{
if((i == j) || ((i + j) < k))
k += 2;
else
k += 1;
}
Bewildered Bison

C -Code an MIPS -Assembly Converter online

#include<stdio.h>
int main()
{
printf("Hello");
return 0;
}
ARSHIYA CHUTKE

C -Code an MIPS -Assembly Converter online

int i=0, j=0, k=2;
while(i==j){
i++; j++;
if(i>>2==k)
 j=0;
 }
Charming Cowfish

Ähnliche Antworten wie “C -Code an MIPS -Assembly Converter online”

Fragen ähnlich wie “C -Code an MIPS -Assembly Converter online”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen