correction nombres negatifs
This commit is contained in:
parent
53671e6d19
commit
7ac9aa98fa
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@
|
|||
somme proc
|
||||
mov r0, r0, LSL #1 ; decalage de 1 vers la gauche -> multiplication par 2
|
||||
ldr r2, =TabCos
|
||||
ldrh r1, [r2, r0] ; récupération du cos au format 1.15
|
||||
ldrsh r1, [r2, r0] ; récupération du cos au format 1.15
|
||||
ldr r2, =TabSin
|
||||
ldrh r3, [r2, r0] ; récupération du sin au format 1.15
|
||||
ldrsh r3, [r2, r0] ; récupération du sin au format 1.15
|
||||
mul r1, r1, r1 ; carré du cos au format 2.30
|
||||
mla r0, r3, r3, r1 ; carré du sin puis somme des carrés au format 1.30
|
||||
mov r0, r0, LSL #1 ; remise au format 1.15
|
||||
|
|
Loading…
Reference in a new issue