diff --git a/soft/PjtKEIL_StepSon/Src/GestionSon.s b/soft/PjtKEIL_StepSon/Src/GestionSon.s index 045a1eb..38d6d83 100644 --- a/soft/PjtKEIL_StepSon/Src/GestionSon.s +++ b/soft/PjtKEIL_StepSon/Src/GestionSon.s @@ -36,8 +36,9 @@ CallbackSon proc push {r6} LDR r6,[r3] ; dans r6 la valeur de indextab - - LDRSH r4,[r1,r6] ; dans r4 l'adresse de son[r6] + MOV r2, #2 + MUL r2,r6,r2 + LDRSH r4,[r1,r2] ; dans r4 l'adresse de son[r6] mov r5,r4 ; dans r5 la valeur de son [r6] ADD r5,r5,#32768 diff --git a/soft/PjtKEIL_StepSon/StepSon.uvoptx b/soft/PjtKEIL_StepSon/StepSon.uvoptx index a3f9648..b7ab2fa 100644 --- a/soft/PjtKEIL_StepSon/StepSon.uvoptx +++ b/soft/PjtKEIL_StepSon/StepSon.uvoptx @@ -153,40 +153,7 @@ -U066CFF574857847167074929 -O2254 -S0 -C0 -A0 -N00("ARM CoreSight SW-DP") -D00(1BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F10x_128.FLM -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM) - - - 0 - 0 - 39 - 1 -
134219974
- 0 - 0 - 0 - 0 - 0 - 1 - .\Src\GestionSon.s - - \\StepSon\Src/GestionSon.s\39 -
- - 1 - 0 - 41 - 1 -
0
- 0 - 0 - 0 - 0 - 0 - 0 - .\Src\GestionSon.s - - -
-
+ 0