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

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

?? arith.asm

?? 匯編的PIC程序
?? ASM
?? 第 1 頁 / 共 3 頁
字號:
;                            :   183 (SIGNED :excluding CALL & RETURN)
;
;       Note : The above timing is the worst case timing, when the
;               register ACCb = FFFF. The speed may be improved if
;               the register ACCb contains a number ( out of the two
;               numbers ) with less number of 1s.
;
;               The performance specs are for Unsigned arithmetic ( i.e,
;               with "SIGNED equ  FALSE ").
;
;               Upon return from subroutine, the input registers
;
;
;**********************************************************
;               Multiplication Macro
;**********************************************************
;
mulMac  MACRO
	variable i

	i = 0

	#if SIGNED
	  .while i < 15
	#else
	  .while i < 16
	#endif
	     .if i < 8
		btfss      ACCbLO,i        ; test low byte
	     .else
		btfss      ACCbHI,i-8      ; test high byte
	     .fi
		goto    NoAdd#v(i)      ; LSB is 0, so no need to addwf
		movfp    ACCaLO,wreg
		addwf     ACCdLO           ;addwf lsb
		movfp    ACCaHI,wreg
		addwfc    ACCdHI           ;addwf msb
NoAdd#v(i)
		rrcf     ACCdHI
		rrcf     ACCdLO
		rrcf     ACCcHI
		rrcf     ACCcLO
		bcf      _carry
		i = i+1
	  .endw
	#if SIGNED
		rrcf     ACCdHI
		rrcf     ACCdLO
		rrcf     ACCcHI
		rrcf     ACCcLO
		bcf     _carry
	#endif
;
	ENDM
;
	PAGE
;***************************************************************
;                       Double Precision Negate Macros
;***************************************************************
AltNegMac       MACRO   fileRegLo,fileRegHi
			movfp    fileRegLo,wreg
			negw     fileRegLo
			movfp    fileRegHi,wreg
			clrf     fileRegHi
			subwfb    fileRegHi
		ENDM

;
negMac  MACRO   fileRegLo, fileRegHi
	comf    fileRegLo       ; negate FileReg ( -FileReg -> FileReg )
	incf     fileRegLo
	btfsc      _z
	decf     fileRegHi
	comf    fileRegHi
	ENDM
;
NegMac32        MACRO   x3,x2,x1,x0
	movfp   x3,wreg
	negw    x3
	movfp   x2,wreg
	clrf    x2
	subwfb  x2
	movfp   x1,wreg
	clrf    x1
	subwfb  x1
	movfp   x0,wreg
	clrf    x0
	subwfb  x0
		ENDM
;
	PAGE
;*******************************************************************;
;               Double Precision Multiply ( 16x16 -> 32 )
;         ( ACCb*ACCa -> ACCb,ACCc ) : 32 bit output with high word
;  in ACCd ( ACCdHI,ACCdLO ) and low word in ACCc ( ACCcHI,ACCcLO ).
;
D_mpyF                          ;results in ACCd(16 msb's) and ACCc(16 lsb's)
;
     #if   SIGNED
;
	movfp    ACCaHI,wreg
	xorwf     ACCbHI,w
	movwf     sign
	btfss      ACCbHI,MSB        ; if MSB set go & negate ACCb
	goto    chek_A_MSB_MPY
;
	negMac  ACCbLO,ACCbHI
;
chek_A_MSB_MPY
	btfss      ACCaHI,MSB        ; if MSB set go & negate ACCa
	goto    continue_MPY
	negMac  ACCaLO,ACCaHI
;
     #endif
;
continue_MPY
	clrf    ACCdHI
	clrf    ACCdLO
	bcf     _carry

;
; use the mulMac macro 16 times
;
	mulMac
;
    #if SIGNED
	btfss   sign,MSB        ; negate (ACCc,ACCd)
	return
	NegMac32 ACCcHI,ACCcLO,ACCdHI, ACCdLO
	return
    #else
	return
    #endif
;
	PAGE
;*******************************************************************
;                       Double Precision Division
;
;               ( Optimized for Code : Looped Code )
;
;*******************************************************************;
;   Division : ACCb(16 bits) / ACCa(16 bits) -> ACCb(16 bits) with
;                                               Remainder in ACCc (16 bits)
;      (a) Load the Denominator in location ACCaHI & ACCaLO ( 16 bits )
;      (b) Load the Numerator in location ACCbHI & ACCbLO ( 16 bits )
;      (c) CALL D_div
;      (d) The 16 bit result is in location ACCbHI & ACCbLO
;      (e) The 16 bit Remainder is in locations ACCcHI & ACCcLO
;
;   Performance :
;            Program Memory  :   31 (UNSIGNED)
;                                39 (SIGNED)
;               Clock Cycles    : 300 (UNSIGNED : excluding CALL & RETURN)
;                               : 312 (SIGNED : excluding CALL & RETURN)
;
;       NOTE :
;               The performance specs are for Unsigned arithmetic ( i.e,
;               with "SIGNED equ  FALSE ").
;
;*******************************************************************
;       Double Precision Divide ( 16/16 -> 16 )
;
;         ( ACCb/ACCa -> ACCb with remainder in ACCc ) : 16 bit output
; with Quotiont in ACCb (ACCbHI,ACCbLO) and Remainder in ACCc (ACCcHI,ACCcLO).
;
;               B/A = (Q) + (R)/A
;       or      B = A*Q + R
;
;                       where   B :     Numerator
;                               A :     Denominator
;                               Q :     Quotiont (Integer Result)
;                               R :     Remainder
;
;       Note :  Check for ZERO Denominator or Numerator is not performed
;               A ZERO Denominator will produce incorrect results
;
;       SIGNED Arithmetic :
;                       In case of signed arithmetic, if either
;  numerator or denominator is negative, then both Q & R are
;  represented as negative numbers
;               -(B/A) = -(Q) + (-R)/A
;       or      -B = (-Q)*A + (-R)
;
;*******************************************************************
;
D_divS
;
	bsf      _fs0
	bsf      _fs1            ; set no auto-incrment for fsr0

     #if    SIGNED
	CALL    S_SIGN
     #endif
;
	clrf     count
	bsf      count,4         ; set count = 16
	clrf     ACCcHI
	clrf     ACCcLO
	clrf     ACCdLO
	clrf     ACCdHI
;
;  Looped code
;
divLoop
	bcf      _carry
	rlcf     ACCbLO
	rlcf     ACCbHI
	rlcf     ACCcLO
	rlcf     ACCcHI
	movfp    ACCaHI,wreg
	subwf     ACCcHI,w          ;check if a>c
	btfss      _z
	goto    notz
	movfp    ACCaLO,wreg
	subwf     ACCcLO,w        ; if msb equal then check lsb
notz
	btfss      _carry    ; carry set if c>a
	goto    nosub           ; if c < a
subca
	movfp    ACCaLO,wreg     ; c-a into c
	subwf     ACCcLO
	movfp    ACCaHI,wreg
	subwfb    ACCcHI
	bsf      _carry              ;shift a 1 into d (result)
nosub
	rlcf     ACCdLO
	rlcf     ACCdHI
	decfsz     count
	goto    divLoop

;
    #if SIGNED
	btfss      sign,MSB
	return
	movlw    ACCcLO
	movwf     fsr0
	call    negate
	movlw    ACCdLO
	movwf     fsr0
	call    negate
	return
    #else
	return
    #endif
;
	PAGE
;*******************************************************************
;                       Double Precision Division
;
;               ( Optimized for Speed : straight Line Code )
;
;*******************************************************************;
;   Division : ACCb(16 bits) / ACCa(16 bits) -> ACCb(16 bits) with
;                                               Remainder in ACCc (16 bits)
;
;      (a) Load the Denominator in location ACCaHI & ACCaLO ( 16 bits )
;      (b) Load the Numerator in location ACCbHI & ACCbLO ( 16 bits )
;      (c) CALL D_div
;      (d) The 16 bit result is in location ACCbHI & ACCbLO
;      (e) The 16 bit Remainder is in locations ACCcHI & ACCcLO
;
;               B/A = (Q) + (R)/A
;       or      B = A*Q + R
;
;                       where   B :     Numerator
;                               A :     Denominator
;                               Q :     Quotiont (Integer Result)
;                               R :     Remainder
;
;       Note :  Check for ZERO Denominator or Numerator is not performed
;               A ZERO Denominator will produce incorrect results
;
;       SIGNED Arithmetic :
;                       In case of signed arithmetic, if either
;  numerator or denominator is negative, then both Q & R are
;  represented as negative numbers
;               -(B/A) = -(Q) + (-R)/A
;       or      -B = (-Q)*A + (-R)
;
;   Performance :
;            Program Memory  :   325 (UNSIGNED)
;                                354 (SIGNED)
;               Clock Cycles    : 250 (UNSIGNED : excluding CALL & RETURN)
;                               : 260 (SIGNED : excluding CALL & RETURN)
;
;*******************************************************************;
;       division macro
;
divMac  MACRO
	variable i

       i = 0
      .while i < 16
;
		bcf      _carry
		rlcf     ACCbLO
		rlcf     ACCbHI
		rlcf     ACCcLO
		rlcf     ACCcHI
		movfp    ACCaHI,wreg
		subwf     ACCcHI,w          ;check if a>c
		btfss      _z
		goto    notz#v(i)
		movfp    ACCaLO,wreg
		subwf     ACCcLO,w        ;if msb equal then check lsb
notz#v(i)       btfss     _carry    ;carry set if c>a
		goto    nosub#v(i)           ; if c < a
subca#v(i)      movfp    ACCaLO,wreg        ;c-a into c
		subwf     ACCcLO
		movfp    ACCaHI,wreg
		subwfb    ACCcHI
		bsf      _carry            ;shift a 1 into d (result)
nosub#v(i)      rlcf     ACCdLO
		rlcf     ACCdHI
       i=i+1
      .endw
;
	ENDM
;
	PAGE
;*******************************************************************
;       Double Precision Divide ( 16/16 -> 16 )
;
;         ( ACCb/ACCa -> ACCb with remainder in ACCc ) : 16 bit output
; with Quotiont in ACCb (ACCbHI,ACCbLO) and Remainder in ACCc (ACCcHI,ACCcLO).
;
;   NOTE  :  Before calling this routine, the user should make sure that
;            the Numerator(ACCb) is greater than Denominator(ACCa). If
;            the case is not true, the user should scale either Numerator
;            or Denominator or both such that Numerator is greater than
;            the Denominator.
;
;
;*******************************************************************
;
D_divF
;
     #if   SIGNED
	movfp    ACCaHI,wreg
	xorwf     ACCbHI,w
	movwf     sign
	btfss      ACCbHI,MSB        ; if MSB set go & negate ACCb
	goto    chek_A_MSB_DIV
;
	negMac  ACCbLO,ACCbHI
;
chek_A_MSB_DIV
	btfss   ACCaHI,MSB        ; if MSB set go & negate ACCa
	goto    continue_DIV
	negMac  ACCaLO,ACCaHI

     #endif
;
continue_DIV
	clrf     ACCcHI
	clrf     ACCcLO
	clrf     ACCdLO
	clrf     ACCdHI

;
; straight line code : using the macro divMac
;
	divMac
;
    #if SIGNED
	btfss   sign,MSB        ; negate (ACCc,ACCd)
	return
	negMac  ACCcLO,ACCcHI
	negMac  ACCdLO,ACCdHI
	return
    #else
	return
    #endif
;
	PAGE
;*******************************************************************
;
;            Square Root By Newton Raphson Method
;
;    This routine computes the square root of a 16 bit number(with
;  low byte in NumLo & high byte in NumHi ). After loading NumLo &
;  NumHi with the desired number whose square root is to be computed,
;  branch to location Sqrt ( by "GOTO  Sqrt" ). " CALL  Sqrt" cannot
;  be issued because the Sqrt function makes calls to Math routines
;  and the stack is completely used up.
;       The result = sqrt(NumHi,NumLo) is returned in location SqrtLo.
;  The total number of iterations is set to ten. If more iterations
;  are desired, change "LupCnt equ .10" to the desired value. Also,
;  the initial guess value of the square root is given set as
;  input/2 ( in subroutine "init" ). The user may modify this scheme
;  if a better initial approximation value is known. A good initial
;  guess will help the algorithm converge at a faster rate and thus
;  less number of iterations required.
;       Two utility math routines are used by this program : D_divS
;  and D_add. These two routines are listed as seperate routines
;  under double precision Division and double precision addition
;  respectively.
;
;  Note : If square root of an 8 bit number is desired, it is probably
;         better to have a table look scheme rather than using numerical
;         methods.
;               This method is computationally quite intensive and
;         slow, but very accurate and the convergence rate is high

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区欧美二区| 欧美自拍偷拍午夜视频| 91丨porny丨蝌蚪视频| 欧美二区乱c少妇| 国产精品日产欧美久久久久| 日韩av中文字幕一区二区| 成人免费高清视频| 日韩欧美电影一二三| 一区二区不卡在线播放 | 捆绑变态av一区二区三区| 99亚偷拍自图区亚洲| 久久众筹精品私拍模特| 日本不卡不码高清免费观看| 日韩欧美中文字幕精品| 一区二区三区资源| jlzzjlzz亚洲日本少妇| 久久久国际精品| 久久电影网站中文字幕| 欧美日韩一卡二卡| 亚洲影视资源网| 色婷婷亚洲一区二区三区| 中文字幕精品—区二区四季| 精品一区二区综合| 日韩三级视频在线看| 亚洲国产精品欧美一二99| 91丨九色丨黑人外教| 国产精品久久久久一区二区三区共| 久久91精品国产91久久小草| 91精品国产一区二区三区蜜臀| 亚洲裸体xxx| 91麻豆精品在线观看| 一区二区中文视频| 91香蕉视频污在线| 国产精品成人一区二区艾草| 成人激情免费网站| 国产精品久久久久久久久动漫| 成人性生交大片免费看中文网站| 国产亚洲视频系列| 国产成人av一区二区三区在线| 久久免费午夜影院| 高潮精品一区videoshd| 国产亚洲欧美日韩日本| 北条麻妃国产九九精品视频| 美女视频免费一区| 日韩手机在线导航| 韩国理伦片一区二区三区在线播放| 日韩欧美国产小视频| 韩国精品主播一区二区在线观看| 国产肉丝袜一区二区| av电影在线观看完整版一区二区| 中文字幕一区二区三区在线不卡| 91麻豆免费观看| 性做久久久久久久久| 日韩一区二区三区视频| 国产乱码精品一品二品| 亚洲欧洲日韩综合一区二区| 91福利国产成人精品照片| 日韩成人精品在线| 国产婷婷精品av在线| 99精品黄色片免费大全| 亚洲成av人影院在线观看网| 精品少妇一区二区三区在线播放| 国产成人精品亚洲午夜麻豆| 最新热久久免费视频| 欧美精品aⅴ在线视频| 久久国产精品第一页| 国产精品国产精品国产专区不片| 色偷偷成人一区二区三区91| 蜜臀a∨国产成人精品| 中文一区一区三区高中清不卡| 91免费看视频| 美女网站在线免费欧美精品| 亚洲欧洲日产国产综合网| 91精品国产免费久久综合| 国产精品1区2区| 亚洲一区二区三区在线看| 精品国产一区a| 在线观看亚洲一区| 国产精一品亚洲二区在线视频| 洋洋成人永久网站入口| 国产亚洲一区字幕| 3d动漫精品啪啪| 99国产精品久久| 久久精品国产网站| 樱花草国产18久久久久| 久久精品在线观看| 欧美一区二区视频在线观看2022| 成人福利视频在线看| 美国欧美日韩国产在线播放| 一区二区三区欧美| 国产精品丝袜久久久久久app| 欧美精品成人一区二区三区四区| 99精品国产一区二区三区不卡| 亚洲国产精品精华液2区45| 日韩欧美成人午夜| 欧美精品视频www在线观看| 91丝袜高跟美女视频| 成人免费毛片app| 国产一区在线观看视频| 秋霞成人午夜伦在线观看| 亚洲一区二区三区在线| 亚洲欧美另类小说视频| 久久精品欧美日韩精品| 久久综合九色综合欧美98| 日韩欧美久久久| 日韩三区在线观看| 日韩精品中文字幕一区| 欧美一区二区视频在线观看| 67194成人在线观看| 成人综合在线视频| 亚洲三级在线观看| 精品免费国产一区二区三区四区| 一本久久a久久免费精品不卡| 成人小视频在线观看| 国产酒店精品激情| 精品影院一区二区久久久| 日本午夜精品视频在线观看 | 亚洲国产cao| 亚洲成在人线在线播放| 洋洋av久久久久久久一区| 亚洲国产精品久久久男人的天堂| 亚洲中国最大av网站| 亚洲va在线va天堂| 午夜免费久久看| 奇米在线7777在线精品| 精品在线你懂的| 国产成人亚洲综合a∨婷婷| 国产电影一区在线| 99视频在线精品| 欧美综合欧美视频| 欧美电影免费观看完整版| 精品成人在线观看| 欧美激情综合五月色丁香| 国产精品欧美一区喷水| 亚洲综合视频在线观看| 久久不见久久见中文字幕免费| 韩国三级在线一区| 91片黄在线观看| 欧美日韩在线播放三区四区| 日韩欧美亚洲国产另类| 亚洲国产精品99久久久久久久久 | 日韩av一区二| 国产自产v一区二区三区c| 福利一区二区在线| 欧美自拍丝袜亚洲| 精品国偷自产国产一区| 国产精品免费视频观看| 亚洲午夜免费电影| 国内精品久久久久影院色| av动漫一区二区| 日韩一级在线观看| 亚洲美女在线一区| 麻豆成人av在线| 99re视频精品| 日韩三级av在线播放| 国产精品国产a| 日本一区中文字幕| 波多野结衣91| 精品日韩欧美在线| 亚洲精品美腿丝袜| 国产精品综合一区二区三区| 日本高清无吗v一区| 亚洲精品一区二区在线观看| 亚洲影院久久精品| proumb性欧美在线观看| 日韩一区二区视频| 亚洲国产美国国产综合一区二区| 国产在线精品国自产拍免费| 91久久精品午夜一区二区| 久久青草欧美一区二区三区| 亚洲国产日韩精品| 成人aa视频在线观看| 精品国产网站在线观看| 亚洲香肠在线观看| av不卡免费在线观看| ww久久中文字幕| 五月婷婷激情综合| 色狠狠色噜噜噜综合网| 国产精品无遮挡| 激情亚洲综合在线| 欧美一级艳片视频免费观看| 亚洲综合精品自拍| 91官网在线免费观看| 亚洲欧洲日韩在线| 高清av一区二区| 中文字幕精品—区二区四季| 国产中文一区二区三区| 91精品国产麻豆国产自产在线 | 欧美一级在线视频| 亚洲成人第一页| 在线视频国产一区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 欧美高清在线一区| 国产九色sp调教91| 久久精品亚洲一区二区三区浴池 | 一本久道中文字幕精品亚洲嫩 | 色综合久久久久综合体桃花网| 欧美激情一区二区三区蜜桃视频| 国产老妇另类xxxxx| 国产香蕉久久精品综合网|