小编Cig*_*ima的帖子

TMS320C55X 中的反正切实现

我正在学习 TMS320C55x 中的反正切实现,这是源代码:


;* AR0   assigned to _x
;* AR1   assigned to _r
;* T0   assigned to _nx
        PSH     T3
     || BSET    FRCT            ;fractional mode
    SUB #1, T0          ;nx-1
    MOV T0, BRC0        ;repeat nx times
        MOV     #2596 << #16, AC3       ; AC3.Hi = C5
        MOV #-9464 << #16, AC1  ; AC1.Hi = C3
    MOV #32617 << #16, AC2  ; AC2.Hi = C1
*
* Note: loading T3 on the instruction before a multiply that uses it will
* cause a …
Run Code Online (Sandbox Code Playgroud)

math assembly trigonometry numerical-methods

3
推荐指数
1
解决办法
50
查看次数

标签 统计

assembly ×1

math ×1

numerical-methods ×1

trigonometry ×1