From 5fbdf88549da78377a3392ff0c241ad11f3b3fd8 Mon Sep 17 00:00:00 2001 From: Oussama Hannouch Date: Tue, 23 May 2023 21:52:10 +0200 Subject: [PATCH] Update 'soft/PjtKEIL_StepSon/Src/GestionSon.s' --- soft/PjtKEIL_StepSon/Src/GestionSon.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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