C код в MIPS Assembly Converter Online
addi $3, $0, 15
start: addi $3, $3, -1
add $2, $2, $2
bne $0, $3, start
count:
Wandering Wryneck
addi $3, $0, 15
start: addi $3, $3, -1
add $2, $2, $2
bne $0, $3, start
count:
if X<=Y then
Y= Y +1
else if X != Z then
Y = Y - 1
else
Z = Z + 1
#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);
}
for (i=1; i<=N; i++) {
a[i] = c[i]*16; }
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
while(S[i]!=k)
{
i++;
temp = temp+p+6;
if(i==j)
break;
}
a=a+b;
print("salam")
int j = 5;
int i = 0;
int k = 5;
while (i < 10)
{
if((i == j) || ((i + j) < k))
k += 2;
else
k += 1;
}
#include<stdio.h>
int main()
{
printf("Hello");
return 0;
}
int i=0, j=0, k=2;
while(i==j){
i++; j++;
if(i>>2==k)
j=0;
}