be_chti/PjtKEIL_StepSon/gestionson.lst
2023-04-07 18:16:39 +02:00

228 lines
7.4 KiB
Text

ARM Macro Assembler Page 1
1 00000000 PRESERVE8
2 00000000 THUMB
3 00000000
4 00000000 export CallbackSon
5 00000000 import Son
6 00000000 import LongueurSon
7 00000000
8 00000000
9 00000000 ; ====================== zone de réservation de données,
======================================
10 00000000 ;Section RAM (read only) :
11 00000000 area mesdata,data,readonly
12 00000000
13 00000000
14 00000000 ;Section RAM (read write):
15 00000000 area maram,data,readwrite
16 00000000
17 00000000 00 00 SortieSon
dcw 0 ; reserve seulement
2 octet de memoire
18 00000002 00 00 Index dcw 0
19 00000004
20 00000004 ; ======================================================
=========================================
21 00000004
22 00000004
23 00000004
24 00000004
25 00000004 ;Section ROM code (read only) :
26 00000004 area moncode,code,readonly
27 00000000 ; écrire le code ici
28 00000000 ;
29 00000000 ;if (i<LongueurSon) {
30 00000000 ;
31 00000000 ; sample = Son[i];
32 00000000 ; SortieSon = sample * (720/65536) + 360
33 00000000 ; i++;
34 00000000 ;}else {
35 00000000 ; i=0;
36 00000000 ;}
37 00000000
38 00000000 CallbackSon
proc
39 00000000 B500 push {lr}
40 00000002
41 00000002 480D ldr r0, = Index ; ; On charge la
valeur d'index
42 00000004 6801 ldr r1, [r0] ;
43 00000006 4A0D ldr r2, = LongueurSon ; ; On charg
e la valeur de la l
ongueur son
44 00000008 6813 ldr r3, [r2] ;
45 0000000A
46 0000000A 428B cmp r3, r1 ; On regarde si on
est arrivé au bout
du tableau
47 0000000C DD0F ble Sinon
48 0000000E
ARM Macro Assembler Page 2
49 0000000E 4A0C ldr r2, = Son ; ; On charge la
valeur de la bonne
50 00000010 F932 3011 ldrsh r3, [r2, r1, LSL #1]
; ligne de son
51 00000014
52 00000014 F101 0101 add r1, r1, #1 ; On store l'index
et on l'incrémente
de 1
53 00000018 8001 strh r1, [r0]
54 0000001A
55 0000001A ;add r3, #32768 ; On ajoute 32768
56 0000001A F44F 71B4 mov r1, #360 ; On multiplie par
720
57 0000001E FB01 F303 mul r3, r1, r3 ;
58 00000022 EA4F 33E3 asr r3, #15 ; On divise par 655
36
59 00000026 440B add r3, r1
60 00000028
61 00000028 4A06 ldr r2, = SortieSon
62 0000002A 8013 strh r3, [r2] ; On sauvegarde la
valeur dans SortieS
on
63 0000002C E002 b fin
64 0000002E
65 0000002E Sinon
66 0000002E F04F 0100 mov r1, #0 ; On remet l'index
à 0
67 00000032 6008 str r0, [r1] ; On store l'index
68 00000034
69 00000034 fin
70 00000034 EXPORT SortieSon
71 00000034 BD00 pop {pc}
72 00000036 endp
73 00000036
74 00000036 END
00 00 00000000
00000000
00000000
00000000
Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M3 --apcs=interw
ork --depend=.\obj\gestionson.d -o.\obj\gestionson.o -I.\RTE\_Simu -IC:\Program
data\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Ar
m\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include --predefine="__EVAL SETA 1" --p
redefine="__MICROLIB SETA 1" --predefine="__UVISION_VERSION SETA 534" --predefi
ne="_RTE_ SETA 1" --predefine="STM32F10X_MD SETA 1" --predefine="_RTE_ SETA 1"
--list=gestionson.lst Src\GestionSon.s
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
mesdata 00000000
Symbol: mesdata
Definitions
At line 11 in file Src\GestionSon.s
Uses
None
Comment: mesdata unused
1 symbol
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
Index 00000002
Symbol: Index
Definitions
At line 18 in file Src\GestionSon.s
Uses
At line 41 in file Src\GestionSon.s
Comment: Index used once
SortieSon 00000000
Symbol: SortieSon
Definitions
At line 17 in file Src\GestionSon.s
Uses
At line 61 in file Src\GestionSon.s
At line 70 in file Src\GestionSon.s
maram 00000000
Symbol: maram
Definitions
At line 15 in file Src\GestionSon.s
Uses
None
Comment: maram unused
3 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
CallbackSon 00000000
Symbol: CallbackSon
Definitions
At line 38 in file Src\GestionSon.s
Uses
At line 4 in file Src\GestionSon.s
Comment: CallbackSon used once
Sinon 0000002E
Symbol: Sinon
Definitions
At line 65 in file Src\GestionSon.s
Uses
At line 47 in file Src\GestionSon.s
Comment: Sinon used once
fin 00000034
Symbol: fin
Definitions
At line 69 in file Src\GestionSon.s
Uses
At line 63 in file Src\GestionSon.s
Comment: fin used once
moncode 00000000
Symbol: moncode
Definitions
At line 26 in file Src\GestionSon.s
Uses
None
Comment: moncode unused
4 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
External symbols
LongueurSon 00000000
Symbol: LongueurSon
Definitions
At line 6 in file Src\GestionSon.s
Uses
At line 43 in file Src\GestionSon.s
Comment: LongueurSon used once
Son 00000000
Symbol: Son
Definitions
At line 5 in file Src\GestionSon.s
Uses
At line 49 in file Src\GestionSon.s
Comment: Son used once
2 symbols
347 symbols in table