Initial commit
This commit is contained in:
41
LIB386/LIB_MENU/ASM_SORT.ASM
Normal file
41
LIB386/LIB_MENU/ASM_SORT.ASM
Normal file
@@ -0,0 +1,41 @@
|
||||
.386P
|
||||
.model SMALL, SYSCALL
|
||||
|
||||
;----------------------------------------------------------------------------
|
||||
.data
|
||||
;----------------------------------------------------------------------------
|
||||
|
||||
public NoLanguage MySortCompFunc
|
||||
|
||||
strcmp proto SYSCALL
|
||||
|
||||
.code
|
||||
|
||||
;//-------------------------------------------------------------------------
|
||||
|
||||
MySortCompFunc proc uses ebx ecx edx esi edi ebp,\
|
||||
ptra:DWORD, ptrb:DWORD
|
||||
|
||||
mov eax, ptrb
|
||||
mov ecx, ptra
|
||||
push [eax]
|
||||
push [ecx]
|
||||
|
||||
call strcmp
|
||||
|
||||
add esp, 8
|
||||
|
||||
ret
|
||||
|
||||
MySortCompFunc endp
|
||||
|
||||
;----------------------------------------------------------------------------
|
||||
; The
|
||||
End
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user