0
我正在使用匯編代碼實現選擇排序。在選擇排序功能,之後我把寄存器入堆棧,參數的值更改 下面是主要的號召,與SIZE = 15裝配 - 寄存器被推入堆棧後的參數更改
array_selection_sort(arrayOfNumbers1, SIZE);
而這裏的排序功能
void array_selection_sort(int arrayOfIntegers[], int arraySize)
{
__asm{
// BEGIN YOUR CODE HERE
push ebp
mov ebp, esp
push eax
push ebx
push ecx
push edx
push esi
push edi
//assign variables
//ebx = array, ecx = array size - 1, edi = j, edx as temp, esi and edi used for swapping
mov ebx, [ebp + 8]
mov ecx, arraySize
}
從15到2130567168行
move ebp, esp
右後ARRAYSIZE變化有什麼錯我的代碼?
謝謝,我現在明白了 – hvuong91 2015-03-04 02:50:26