⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shift32r.asm

📁 Cordic algorithm description and C/Asm51 sourcecode examples
💻 ASM
字号:
;-----------------------------------------------------------------;; This routine shifts the 32-bit pointed to by R0 right once,     ;; returning the low bit in C.                                     ;;                                                                 ;;  INPUT:      R0       Point to 32-bit value, MSB first.         ;;  OUPUT:      R0       32-bits rotated right.                    ;;              C        LSB bit.                                  ;;  USES:       None.                                              ;;-----------------------------------------------------------------;shift32r:   push  0x000   push  acc   push  b   clr   c                 ; Clear high bit rotated in    mov   b,#4shift32r1:   mov   a,@r0             ; Fetch byte   rrc   a                 ; Rotate right   mov   @r0,a             ; Save back   inc   r0                ; Point to next   djnz  b,shift32r1       ; Loop as needed   pop   b   pop   acc   pop   0x000   ret

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -