This is the C++ code I'm working with;
Code:
extern "C" int Sort (char [] [20], int, int);
Code:
Sort (Strings, 10, 20); cout << "Sorted Strings are" << endl; for (i = 0; i < 10; i++) cout << '\t' << Strings [i] << endl;
Code:
_Sort proc push ebp mov ebp, esp push edi mov eax, [ebp+08] mov array_ptr, eax mov eax, [ebp+12] mov array_length, eax mov eax, [ebp+16] mov bytes_per_line, eax mov eax, array_length cmp eax, 0 ;jump if array has length of 0 jnae EndTRow mov ebx, found_length inc ebx ;add 1 to found_length's sum cmp ebx, eax ;jump if at last row ja EndTrow ; mov found_length, ebx Tcolumns: mov eax, char_position mov ebx, bytes_per_line cmp eax, ebx jnb TRows ... ...and it becomes useless jargon here EndTrow: pop edi pop ebp ret _Sort endp
