nasm astrcat_s函数 x86】的更多相关文章

xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrcat_s dllmain: mov eax,1 ret 12 astrcat_s: push ebp mov ebp,esp push ebx mov ecx,[p1] ; dst char ptr mov eax,[p2] ; src char ptr mov edx,[p3] ; dwDst…
xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrspn dllmain: mov eax,1 ret 12 ;---------------------------------------------------; ; 返回不属于一组字符的字符串中第一个字符的索引 ;---------------------------------------…
xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrcspn dllmain: mov eax,1 ret 12 ;---------------------------------------------------; ; 返回属于一组字符的字符在字符串中第一次出现的索引 ;------------------------------------…
xxx.asm: %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrchr dllmain: mov eax,1 ret 12 astrchr: push ebp mov ebp,esp mov eax,[p1] ; char ptr mov ecx,[p2] ; char .for: ;-------------------------------------…
xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrlen dllmain: mov eax,1 ret 12 astrlen: push ebp mov ebp,esp mov ecx,[p1] ; char ptr xor eax,eax .for: cmp byte [ecx],0 je .return inc ecx inc eax jmp…
xxx.asm: %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain dllmain: mov eax,1 ret 12 aat: push ebp mov ebp,esp ; 函数必须保留所有寄存器,但eax,ecx和edx除外 ; esp则必须根据调用约定进行更新 mov ecx,[p1] ; array ptr mov edx,[p2] ; index mov eax,[p3]…
xxx.asm: %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrstr dllmain: mov eax,1 ret 12 ;-------------------------------------------------------------; ; 返回一个指针,该指针指向字符串中第一次出现的搜索字符串 ;-----------------------…
xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrset_s dllmain: mov eax,1 ret 12 ;------------------------------------------------; ; 将字符串的字符设置为字符 ;------------------------------------------------;…
xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrrev dllmain: mov eax,1 ret 12 ;------------------------------------------------; ; 反转字符串的字符. ;------------------------------------------------; astrr…
xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrrchr dllmain: mov eax,1 ret 12 ;------------------------------------------------; ; 扫描字符串以查找字符的最后一次出现. ;---------------------------------------------…