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

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

?? llrem.asm

?? C語言庫函數的原型,有用的拿去
?? ASM
字號:
        title   llrem - signed long remainder routine
;***
;llrem.asm - signed long remainder routine
;
;       Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
;       defines the signed long remainder routine
;           __allrem
;
;*******************************************************************************


.xlist
include cruntime.inc
include mm.inc
.list

;***
;llrem - signed long remainder
;
;Purpose:
;       Does a signed long remainder of the arguments.  Arguments are
;       not changed.
;
;Entry:
;       Arguments are passed on the stack:
;               1st pushed: divisor (QWORD)
;               2nd pushed: dividend (QWORD)
;
;Exit:
;       EDX:EAX contains the remainder (dividend%divisor)
;       NOTE: this routine removes the parameters from the stack.
;
;Uses:
;       ECX
;
;Exceptions:
;
;*******************************************************************************

        CODESEG

_allrem PROC NEAR
.FPO (2, 4, 0, 0, 0, 0)

        push    ebx
        push    edi

; Set up the local stack and save the index registers.  When this is done
; the stack frame will look as follows (assuming that the expression a%b will
; generate a call to lrem(a, b)):
;
;               -----------------
;               |               |
;               |---------------|
;               |               |
;               |--divisor (b)--|
;               |               |
;               |---------------|
;               |               |
;               |--dividend (a)-|
;               |               |
;               |---------------|
;               | return addr** |
;               |---------------|
;               |       EBX     |
;               |---------------|
;       ESP---->|       EDI     |
;               -----------------
;

DVND    equ     [esp + 12]      ; stack address of dividend (a)
DVSR    equ     [esp + 20]      ; stack address of divisor (b)


; Determine sign of the result (edi = 0 if result is positive, non-zero
; otherwise) and make operands positive.

        xor     edi,edi         ; result sign assumed positive

        mov     eax,HIWORD(DVND) ; hi word of a
        or      eax,eax         ; test to see if signed
        jge     short L1        ; skip rest if a is already positive
        inc     edi             ; complement result sign flag bit
        mov     edx,LOWORD(DVND) ; lo word of a
        neg     eax             ; make a positive
        neg     edx
        sbb     eax,0
        mov     HIWORD(DVND),eax ; save positive value
        mov     LOWORD(DVND),edx
L1:
        mov     eax,HIWORD(DVSR) ; hi word of b
        or      eax,eax         ; test to see if signed
        jge     short L2        ; skip rest if b is already positive
        mov     edx,LOWORD(DVSR) ; lo word of b
        neg     eax             ; make b positive
        neg     edx
        sbb     eax,0
        mov     HIWORD(DVSR),eax ; save positive value
        mov     LOWORD(DVSR),edx
L2:

;
; Now do the divide.  First look to see if the divisor is less than 4194304K.
; If so, then we can use a simple algorithm with word divides, otherwise
; things get a little more complex.
;
; NOTE - eax currently contains the high order word of DVSR
;

        or      eax,eax         ; check to see if divisor < 4194304K
        jnz     short L3        ; nope, gotta do this the hard way
        mov     ecx,LOWORD(DVSR) ; load divisor
        mov     eax,HIWORD(DVND) ; load high word of dividend
        xor     edx,edx
        div     ecx             ; edx <- remainder
        mov     eax,LOWORD(DVND) ; edx:eax <- remainder:lo word of dividend
        div     ecx             ; edx <- final remainder
        mov     eax,edx         ; edx:eax <- remainder
        xor     edx,edx
        dec     edi             ; check result sign flag
        jns     short L4        ; negate result, restore stack and return
        jmp     short L8        ; result sign ok, restore stack and return

;
; Here we do it the hard way.  Remember, eax contains the high word of DVSR
;

L3:
        mov     ebx,eax         ; ebx:ecx <- divisor
        mov     ecx,LOWORD(DVSR)
        mov     edx,HIWORD(DVND) ; edx:eax <- dividend
        mov     eax,LOWORD(DVND)
L5:
        shr     ebx,1           ; shift divisor right one bit
        rcr     ecx,1
        shr     edx,1           ; shift dividend right one bit
        rcr     eax,1
        or      ebx,ebx
        jnz     short L5        ; loop until divisor < 4194304K
        div     ecx             ; now divide, ignore remainder

;
; We may be off by one, so to check, we will multiply the quotient
; by the divisor and check the result against the orignal dividend
; Note that we must also check for overflow, which can occur if the
; dividend is close to 2**64 and the quotient is off by 1.
;

        mov     ecx,eax         ; save a copy of quotient in ECX
        mul     dword ptr HIWORD(DVSR)
        xchg    ecx,eax         ; save product, get quotient in EAX
        mul     dword ptr LOWORD(DVSR)
        add     edx,ecx         ; EDX:EAX = QUOT * DVSR
        jc      short L6        ; carry means Quotient is off by 1

;
; do long compare here between original dividend and the result of the
; multiply in edx:eax.  If original is larger or equal, we are ok, otherwise
; subtract the original divisor from the result.
;

        cmp     edx,HIWORD(DVND) ; compare hi words of result and original
        ja      short L6        ; if result > original, do subtract
        jb      short L7        ; if result < original, we are ok
        cmp     eax,LOWORD(DVND) ; hi words are equal, compare lo words
        jbe     short L7        ; if less or equal we are ok, else subtract
L6:
        sub     eax,LOWORD(DVSR) ; subtract divisor from result
        sbb     edx,HIWORD(DVSR)
L7:

;
; Calculate remainder by subtracting the result from the original dividend.
; Since the result is already in a register, we will do the subtract in the
; opposite direction and negate the result if necessary.
;

        sub     eax,LOWORD(DVND) ; subtract dividend from result
        sbb     edx,HIWORD(DVND)

;
; Now check the result sign flag to see if the result is supposed to be positive
; or negative.  It is currently negated (because we subtracted in the 'wrong'
; direction), so if the sign flag is set we are done, otherwise we must negate
; the result to make it positive again.
;

        dec     edi             ; check result sign flag
        jns     short L8        ; result is ok, restore stack and return
L4:
        neg     edx             ; otherwise, negate the result
        neg     eax
        sbb     edx,0

;
; Just the cleanup left to do.  edx:eax contains the quotient.
; Restore the saved registers and return.
;

L8:
        pop     edi
        pop     ebx

        ret     16

_allrem ENDP

        end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品免视看| 欧美视频一区二区在线观看| 亚洲丶国产丶欧美一区二区三区| 精品免费视频一区二区| 欧美一区二视频| 日韩欧美国产综合在线一区二区三区 | 国产午夜精品理论片a级大结局| 欧美日韩高清在线| 欧美久久久久久蜜桃| 制服丝袜亚洲播放| 欧美va亚洲va国产综合| 久久亚洲免费视频| 亚洲国产精品传媒在线观看| 国产免费成人在线视频| 最新高清无码专区| 亚洲国产成人高清精品| 日韩成人dvd| 国产一区二区成人久久免费影院| 大尺度一区二区| 91丨porny丨最新| 欧美日韩国产一级二级| 欧美一区中文字幕| 国产日韩精品一区二区浪潮av| 17c精品麻豆一区二区免费| 亚洲五码中文字幕| 激情五月激情综合网| 成人激情动漫在线观看| 欧美亚洲尤物久久| 日韩你懂的在线播放| 国产精品天干天干在观线| 亚洲夂夂婷婷色拍ww47| 激情综合色综合久久| 成人黄色片在线观看| 欧美午夜精品理论片a级按摩| 日韩欧美国产系列| 日韩美女啊v在线免费观看| 免费看欧美女人艹b| 成人午夜视频在线观看| 欧美亚洲动漫精品| 久久综合色婷婷| 亚洲黄色免费网站| 国产一区不卡视频| 欧美电影影音先锋| 综合色天天鬼久久鬼色| 久久99精品久久久久久久久久久久| 成人黄色av网站在线| 欧美一区二区美女| 一区二区在线看| 国产99精品在线观看| 欧美一区二区啪啪| 一区二区三区精品久久久| 国产一区二区电影| 日韩精品中文字幕一区| 亚洲成人黄色影院| 在线区一区二视频| 亚洲欧美日韩在线| 成人aa视频在线观看| 国产午夜精品久久| 国内精品视频666| 日韩精品中文字幕一区二区三区| 亚洲夂夂婷婷色拍ww47 | 国产精品电影一区二区三区| 毛片av一区二区三区| 精品视频一区三区九区| 亚洲人xxxx| 成人av影视在线观看| 国产欧美在线观看一区| 国产一区久久久| 精品国产一区二区国模嫣然| 蜜桃视频第一区免费观看| 欧美日韩午夜精品| 天天爽夜夜爽夜夜爽精品视频| 色综合久久综合网欧美综合网| 国产人妖乱国产精品人妖| 久久国产精品第一页| 欧美一级艳片视频免费观看| 香蕉影视欧美成人| 7777精品伊人久久久大香线蕉最新版| 一区二区三区在线播| 91色视频在线| 夜夜亚洲天天久久| 欧美日本一区二区三区四区| 亚洲va欧美va天堂v国产综合| 欧美在线观看视频一区二区三区| 亚洲精品成人精品456| 欧美伊人久久久久久久久影院 | 麻豆传媒一区二区三区| 欧美一区二区三区免费在线看 | 日本一二三四高清不卡| 成人美女在线观看| 亚洲另类在线制服丝袜| 欧美日本在线观看| 九一久久久久久| 欧美国产禁国产网站cc| 91网站在线观看视频| 偷拍自拍另类欧美| 精品嫩草影院久久| 91在线小视频| 三级亚洲高清视频| 久久精品视频网| 99国产精品久久久| 日韩高清在线一区| 精品粉嫩aⅴ一区二区三区四区| 国产91丝袜在线18| 丝袜诱惑制服诱惑色一区在线观看| 欧美一区二区三区日韩| av电影在线观看一区| 五月婷婷另类国产| 久久久久久久电影| 欧美日韩免费电影| 国产不卡视频一区| 婷婷开心激情综合| 久久久久88色偷偷免费| 欧美日韩亚洲另类| 风流少妇一区二区| 丝袜诱惑亚洲看片| 综合激情成人伊人| 欧美精品一区二区三区蜜桃| bt欧美亚洲午夜电影天堂| 美国十次综合导航| 一区二区三区小说| 国产午夜久久久久| 欧美一区二区三区免费在线看| 不卡视频一二三| 蜜臀99久久精品久久久久久软件| 中文字幕亚洲一区二区va在线| 日韩免费视频一区二区| 日本高清无吗v一区| 国产麻豆视频精品| 蜜臀久久99精品久久久久宅男| 国产精品久久久久影院色老大| 欧美一区二区二区| 欧美在线一区二区三区| 97国产精品videossex| 国产一区二区在线视频| 日韩不卡免费视频| 亚洲电影欧美电影有声小说| 成人免费一区二区三区在线观看| 精品久久免费看| 欧美一二三四在线| 欧美巨大另类极品videosbest| 91视频国产资源| 成人午夜电影小说| 国产成人综合视频| 国产在线精品不卡| 美国毛片一区二区三区| 美女任你摸久久 | 狠狠色狠狠色合久久伊人| 五月天久久比比资源色| 亚洲一区av在线| 亚洲国产裸拍裸体视频在线观看乱了| 日韩美女视频一区| 亚洲男女一区二区三区| 亚洲女人的天堂| 亚洲乱码中文字幕| 亚洲精品国产一区二区三区四区在线| 中文字幕视频一区| 亚洲美女偷拍久久| 一区二区三区在线视频观看58| 亚洲免费观看高清完整版在线观看熊| 亚洲欧美日本在线| 亚洲综合精品久久| 日韩av电影天堂| 九九视频精品免费| 国产成人免费视频| av电影一区二区| 欧洲av一区二区嗯嗯嗯啊| 欧美丝袜第三区| 欧美成人女星排行榜| 国产亚洲福利社区一区| 中文字幕亚洲一区二区av在线 | 久久精品国产**网站演员| 精品一区二区日韩| av中文字幕亚洲| 91传媒视频在线播放| 欧美肥妇毛茸茸| 国产欧美精品一区二区三区四区 | 成人av网站在线观看免费| av不卡在线播放| 欧美日韩精品系列| 精品日韩一区二区三区免费视频| 久久精品夜色噜噜亚洲a∨| 国产精品激情偷乱一区二区∴| 1区2区3区国产精品| 日韩精品一二区| 成人精品亚洲人成在线| 欧美日韩精品电影| 国产亚洲一二三区| 午夜精品一区二区三区免费视频 | 久久精品一区蜜桃臀影院| 国产精品久久久久精k8| 亚洲国产精品人人做人人爽| 精品一区免费av| 一本大道久久a久久精品综合| 日韩欧美一区二区视频| 亚洲日本护士毛茸茸| 日韩国产高清影视| 99久久777色| 久久精品一区四区| 日韩激情一二三区|