亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? strcat.asm

?? C標準庫源代碼,能提高對C的理解,不錯的哦
?? ASM
字號:
        page    ,132
        title   strcat - concatenate (append) one string to another
;***
;strcat.asm - contains strcat() and strcpy() routines
;
;       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
;
;Purpose:
;       STRCAT concatenates (appends) a copy of the source string to the
;       end of the destination string, returning the destination string.
;
;*******************************************************************************

        .xlist
        include cruntime.inc
        .list


page
;***
;char *strcat(dst, src) - concatenate (append) one string to another
;
;Purpose:
;       Concatenates src onto the end of dest.  Assumes enough
;       space in dest.
;
;       Algorithm:
;       char * strcat (char * dst, char * src)
;       {
;           char * cp = dst;
;
;           while( *cp )
;                   ++cp;           /* Find end of dst */
;           while( *cp++ = *src++ )
;                   ;               /* Copy src to end of dst */
;           return( dst );
;       }
;
;Entry:
;       char *dst - string to which "src" is to be appended
;       const char *src - string to be appended to the end of "dst"
;
;Exit:
;       The address of "dst" in EAX
;
;Uses:
;       EAX, ECX
;
;Exceptions:
;
;*******************************************************************************

page
;***
;char *strcpy(dst, src) - copy one string over another
;
;Purpose:
;       Copies the string src into the spot specified by
;       dest; assumes enough room.
;
;       Algorithm:
;       char * strcpy (char * dst, char * src)
;       {
;           char * cp = dst;
;
;           while( *cp++ = *src++ )
;                   ;               /* Copy src over dst */
;           return( dst );
;       }
;
;Entry:
;       char * dst - string over which "src" is to be copied
;       const char * src - string to be copied over "dst"
;
;Exit:
;       The address of "dst" in EAX
;
;Uses:
;       EAX, ECX
;
;Exceptions:
;*******************************************************************************


        CODESEG

%       public  strcat, strcpy      ; make both functions available
strcpy  proc
        push    edi                 ; preserve edi
        mov     edi,[esp+8]         ; edi points to dest string
        jmp     short copy_start

strcpy  endp

        align   16

strcat  proc

        .FPO    ( 0, 2, 0, 0, 0, 0 )

        mov     ecx,[esp+4]         ; ecx -> dest string
        push    edi                 ; preserve edi
        test    ecx,3               ; test if string is aligned on 32 bits
        je      short find_end_of_dest_string_loop

dest_misaligned:                    ; simple byte loop until string is aligned
        mov     al,byte ptr [ecx]
        inc     ecx
        test    al,al
        je      short start_byte_3
        test    ecx,3
        jne     short dest_misaligned

        align   4

find_end_of_dest_string_loop:
        mov     eax,dword ptr [ecx] ; read 4 bytes
        mov     edx,7efefeffh
        add     edx,eax
        xor     eax,-1
        xor     eax,edx
        add     ecx,4
        test    eax,81010100h
        je      short find_end_of_dest_string_loop
        ; found zero byte in the loop
        mov     eax,[ecx - 4]
        test    al,al               ; is it byte 0
        je      short start_byte_0
        test    ah,ah               ; is it byte 1
        je      short start_byte_1
        test    eax,00ff0000h       ; is it byte 2
        je      short start_byte_2
        test    eax,0ff000000h      ; is it byte 3
        je      short start_byte_3
        jmp     short find_end_of_dest_string_loop
                                    ; taken if bits 24-30 are clear and bit
                                    ; 31 is set
start_byte_3:
        lea     edi,[ecx - 1]
        jmp     short copy_start
start_byte_2:
        lea     edi,[ecx - 2]
        jmp     short copy_start
start_byte_1:
        lea     edi,[ecx - 3]
        jmp     short copy_start
start_byte_0:
        lea     edi,[ecx - 4]
;       jmp     short copy_start

;       edi points to the end of dest string.
copy_start::
        mov     ecx,[esp+0ch]       ; ecx -> sorc string
        test    ecx,3               ; test if string is aligned on 32 bits
        je      short main_loop_entrance

src_misaligned:                     ; simple byte loop until string is aligned
        mov     dl,byte ptr [ecx]
        inc     ecx
        test    dl,dl
        je      short byte_0
        mov     [edi],dl
        inc     edi
        test    ecx,3
        jne     short src_misaligned
        jmp     short main_loop_entrance

main_loop:                          ; edx contains first dword of sorc string
        mov     [edi],edx           ; store one more dword
        add     edi,4               ; kick dest pointer
main_loop_entrance:
        mov     edx,7efefeffh
        mov     eax,dword ptr [ecx] ; read 4 bytes

        add     edx,eax
        xor     eax,-1

        xor     eax,edx
        mov     edx,[ecx]           ; it's in cache now

        add     ecx,4               ; kick dest pointer
        test    eax,81010100h

        je      short main_loop
        ; found zero byte in the loop
; main_loop_end:
        test    dl,dl               ; is it byte 0
        je      short byte_0
        test    dh,dh               ; is it byte 1
        je      short byte_1
        test    edx,00ff0000h       ; is it byte 2
        je      short byte_2
        test    edx,0ff000000h      ; is it byte 3
        je      short byte_3
        jmp     short main_loop     ; taken if bits 24-30 are clear and bit
                                    ; 31 is set
byte_3:
        mov     [edi],edx
        mov     eax,[esp+8]         ; return in eax pointer to dest string
        pop     edi
        ret
byte_2:
        mov     [edi],dx
        mov     eax,[esp+8]         ; return in eax pointer to dest string
        mov     byte ptr [edi+2],0
        pop     edi
        ret
byte_1:
        mov     [edi],dx
        mov     eax,[esp+8]         ; return in eax pointer to dest string
        pop     edi
        ret
byte_0:
        mov     [edi],dl
        mov     eax,[esp+8]         ; return in eax pointer to dest string
        pop     edi
        ret

strcat  endp

        end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利视频三区| 综合色中文字幕| 欧美日韩不卡一区| 欧美日韩精品一区二区在线播放| 91丨porny丨蝌蚪视频| 91亚洲精华国产精华精华液| 成人美女视频在线看| 99久久精品久久久久久清纯| 色香色香欲天天天影视综合网| 色综合亚洲欧洲| 欧美日韩美女一区二区| 91精品国产91久久综合桃花| 精品国产污网站| 国产拍欧美日韩视频二区| 中文字幕免费不卡| 成人免费在线播放视频| 亚洲成人福利片| 久久精工是国产品牌吗| 国产成人亚洲精品青草天美| 99re这里只有精品首页| 欧美日韩国产精品成人| 精品国产麻豆免费人成网站| 国产精品福利影院| 午夜国产不卡在线观看视频| 国产一区中文字幕| 91麻豆精东视频| 欧美成人精品二区三区99精品| 欧美国产国产综合| 婷婷激情综合网| 国产suv精品一区二区三区| 在线免费观看日韩欧美| ww亚洲ww在线观看国产| 一区二区三区在线视频免费| 麻豆精品国产传媒mv男同| 波多野结衣亚洲一区| 91精品一区二区三区久久久久久 | 日韩福利电影在线| 国产精品亚洲视频| 欧美军同video69gay| 欧美国产日本韩| 久草热8精品视频在线观看| 94-欧美-setu| 欧美精品一区二区三区在线| 亚洲福利电影网| 岛国精品一区二区| 日韩欧美国产综合| 天使萌一区二区三区免费观看| 成人听书哪个软件好| 日韩欧美色综合网站| 亚洲一区中文日韩| av在线播放成人| 久久精品一二三| 美国十次综合导航| 欧美日韩精品一区二区天天拍小说| 国产精品午夜电影| 久久激情五月婷婷| 欧美日韩国产三级| 一区二区免费在线| 波多野结衣中文字幕一区| 国产亚洲欧美一级| 国产在线精品一区二区不卡了 | 国产成人免费视频一区| 日韩欧美国产一区二区在线播放| 亚洲大片在线观看| 欧美视频你懂的| 亚洲成人av电影| 欧美综合亚洲图片综合区| 国产精品久久久久影院亚瑟| 国产乱码精品一区二区三区忘忧草| 制服丝袜亚洲精品中文字幕| 天天影视色香欲综合网老头| 欧美性感一类影片在线播放| 亚洲激情综合网| 欧美午夜免费电影| 日韩av在线播放中文字幕| 欧美精品在线一区二区三区| 日韩电影在线免费观看| 91麻豆精品久久久久蜜臀| 蜜桃久久av一区| 久久久久久久免费视频了| 国产盗摄一区二区三区| 中文字幕久久午夜不卡| 成人高清在线视频| 一个色妞综合视频在线观看| 欧洲亚洲精品在线| 免费视频最近日韩| 久久久久久97三级| 97精品久久久午夜一区二区三区 | 天堂在线一区二区| 欧美一区二区三区视频免费| 精一区二区三区| 日本一区二区电影| 欧美亚洲一区三区| 麻豆国产精品官网| 国产农村妇女精品| 欧美在线一区二区三区| 日韩福利视频导航| 欧美国产综合一区二区| 色综合天天性综合| 蜜桃视频在线观看一区| 亚洲国产高清aⅴ视频| 在线一区二区视频| 精品一区二区三区久久久| 国产精品久久久一本精品| 欧美日韩在线亚洲一区蜜芽| 久久成人免费网| 亚洲视频一区二区免费在线观看| 欧美日韩国产a| 粉嫩久久99精品久久久久久夜| 亚洲一区二区视频在线观看| 日韩久久精品一区| 91在线视频播放地址| 日本特黄久久久高潮| 国产精品不卡在线| 日韩一级黄色片| 色视频欧美一区二区三区| 久久99久久久欧美国产| 亚洲一区二区三区四区的 | 99久久国产综合色|国产精品| 天天影视涩香欲综合网| 国产精品入口麻豆九色| 欧美一区二区日韩一区二区| 99精品视频中文字幕| 久热成人在线视频| 亚洲国产精品久久久男人的天堂| 国产三级一区二区| 欧美成人精品二区三区99精品| 在线视频中文字幕一区二区| 成人动漫av在线| 韩国精品主播一区二区在线观看 | 国产精品视频看| 欧美一区二区三区视频在线观看| 91丨九色丨国产丨porny| 美女视频网站黄色亚洲| 亚洲va天堂va国产va久| 亚洲狼人国产精品| 日韩美女啊v在线免费观看| 国产亚洲自拍一区| 精品国产精品一区二区夜夜嗨| 欧美一区二区三区四区在线观看| 在线免费不卡视频| 一本久道久久综合中文字幕| 99精品视频一区| 97国产精品videossex| www.激情成人| proumb性欧美在线观看| 成人午夜在线免费| 国产高清在线精品| 国产成人啪免费观看软件| 国产成人免费视频一区| 成人午夜av电影| 91在线观看免费视频| 91欧美一区二区| 在线观看国产91| 91精品婷婷国产综合久久竹菊| 欧美群妇大交群的观看方式| 欧美日韩黄色一区二区| 欧美精选一区二区| 欧美mv日韩mv国产网站app| 久久综合久色欧美综合狠狠| 精品国产一区二区三区四区四| 26uuu久久综合| 国产精品电影一区二区| 亚洲免费av网站| 视频一区二区三区入口| 免费观看一级欧美片| 国内外成人在线| 99久久亚洲一区二区三区青草| 91猫先生在线| 日韩一区二区中文字幕| 国产性做久久久久久| 亚洲精品水蜜桃| 日韩中文字幕亚洲一区二区va在线 | 国产美女精品在线| 国产精品主播直播| 91浏览器入口在线观看| 欧美日韩视频在线观看一区二区三区| 成人福利电影精品一区二区在线观看| 91视频在线观看| 3d成人h动漫网站入口| 中文字幕免费不卡| 天堂av在线一区| 成人性生交大合| 欧美人伦禁忌dvd放荡欲情| 日韩精品专区在线影院重磅| 国产精品美女www爽爽爽| 亚洲综合男人的天堂| 黑人精品欧美一区二区蜜桃| 一本色道久久综合亚洲aⅴ蜜桃| 91精品麻豆日日躁夜夜躁| 欧美激情资源网| 日本伊人精品一区二区三区观看方式| 国产精品一卡二| 欧美日韩国产欧美日美国产精品| 国产日韩av一区二区| 婷婷久久综合九色国产成人| 91在线精品一区二区三区| 日韩欧美一级特黄在线播放| 亚洲激情六月丁香| 成人免费电影视频|