diff --git a/soft/PjtKEIL_StepSon/Src/GestionSon.s b/soft/PjtKEIL_StepSon/Src/GestionSon.s index af403eb..b9896fc 100644 --- a/soft/PjtKEIL_StepSon/Src/GestionSon.s +++ b/soft/PjtKEIL_StepSon/Src/GestionSon.s @@ -33,7 +33,8 @@ SortieSon dcw 0 EXPORT CallbackSon StartSon proc - mov r0, #0 ;Charger la valeur 0 dans le registre r0 + ;Charger la valeur 0 dans le registre r0 + mov r0, #0 ldr r1, =Son_index ; Charger l'adresse de la variable Son_index dans le registre r1 str r0, [r1] ; Stocker la valeur de r0 dans la variable Son_index bx lr ; Retourner à l'appelant