汇编语言写冒泡排序
求教大虾们,怎么用汇编语言写冒泡排序
mov ecx,count //count 为数组长度,数组元素为双字
dec ecx
L1: push ecx
mov esi,array
L2: mov eax,[esi]
cmp [esi+4],eax
jg L3
xchg eax,[esi+4]
mov [esi],eax
L3: add esi,4
loop L2
pop ecx
loop L1
L4: ret