I'm trying to program this C program into assembly can anyone help please! This is a confusing language to learn.
while (A[i+1] != -1{
switch (k) {
case 2: if ( A >= A[i+1] )
temp = A ;
A = A[i+1] ;
A[i+1] = temp; }
break;
case 3: if ( A <= A[i+1] )
temp = A ;
A = A[i+1] ;
A[i+1] = temp; }
break;
case 4: if ( A != A[i+1] )
temp = A ;
A = A[i+1] ;
A[i+1] = temp; }
1++;
}
while (A[i+1] != -1{
switch (k) {
case 2: if ( A >= A[i+1] )
temp = A ;
A = A[i+1] ;
A[i+1] = temp; }
break;
case 3: if ( A <= A[i+1] )
temp = A ;
A = A[i+1] ;
A[i+1] = temp; }
break;
case 4: if ( A != A[i+1] )
temp = A ;
A = A[i+1] ;
A[i+1] = temp; }
1++;
}