Cleanup
This commit is contained in:
parent
da0206b640
commit
edb70fb03e
27
cv2.asm
27
cv2.asm
@ -2,7 +2,7 @@
|
||||
|
||||
segment .data
|
||||
|
||||
arr1 dt 1.0, -4.1, 1.1, -5.0
|
||||
arr1 dt 1.6, -4.1, 1.1, -5.0
|
||||
|
||||
segment .text
|
||||
|
||||
@ -11,29 +11,16 @@ segment .text
|
||||
getSorted:
|
||||
enter 0,0
|
||||
|
||||
fld tword [esi]
|
||||
fstp dword [edi]
|
||||
|
||||
leave
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;for(unsigned int i = 0; i < N ; i++)
|
||||
; for(unsigned int j = i + 1; j < N; j++)
|
||||
; if (newArr[i] > newArr[j]) SWAP newArr[i],newArr[j]
|
||||
|
||||
leave
|
||||
ret
|
||||
|
||||
CMAIN:
|
||||
|
||||
push 4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user