. 6.11. IA-32,

int main (int argc, char*, argv[])

{

for (j=n-1; j>0; j=j-1)

{for(k=j-1; k >= 0; k = k - 1)

{if (LIST[k] > LIST[j])

{TEMP = LIST[k];

LIST[k] = LIST[j];

LIST[j] = TEMP;

}

}

}

}

6.12. IA-32

. 6.13, IA-32, . LIST . EDI ( j), ( k). DL . LIST(k) LIST(j) , .


<< >>