forked from acco/chti23
détection de fin de son
This commit is contained in:
parent
596e3758e7
commit
b27f34eada
2 changed files with 45 additions and 7 deletions
|
@ -36,8 +36,15 @@ CallbackSon proc
|
|||
push {r4}
|
||||
push {r5}
|
||||
push {r6}
|
||||
push {r7}
|
||||
push {r8}
|
||||
LDR r7,=LongueurSon
|
||||
LDR r8,[r7]
|
||||
|
||||
LDR r6,[r3] ; dans r6 la valeur de indextab
|
||||
CMP r8,r6
|
||||
BEQ Fin
|
||||
|
||||
MOV r2, #2
|
||||
MUL r2,r6,r2
|
||||
LDRSH r4,[r1,r2] ; dans r4 l'adresse de son[r6]
|
||||
|
@ -56,14 +63,23 @@ CallbackSon proc
|
|||
add r6,r6,#1
|
||||
STR r6,[r3]
|
||||
|
||||
pop {r8}
|
||||
pop {r7}
|
||||
pop {r6}
|
||||
pop {r5}
|
||||
pop {r4}
|
||||
BX lr
|
||||
|
||||
Fin
|
||||
MOV r2,#0
|
||||
STR r2,[r0]
|
||||
|
||||
pop {r8}
|
||||
pop {r7}
|
||||
pop {r6}
|
||||
pop {r5}
|
||||
pop {r4}
|
||||
BX lr
|
||||
endp
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
END
|
|
@ -175,6 +175,21 @@
|
|||
<WinNumber>1</WinNumber>
|
||||
<ItemText>r0,0x0A</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>4</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>SortieSon</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>5</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>r8,0x0A</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>6</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>r6,0x0A</ItemText>
|
||||
</Ww>
|
||||
</WatchWindow1>
|
||||
<MemoryWindow1>
|
||||
<Mm>
|
||||
|
@ -230,12 +245,12 @@
|
|||
<Wi>
|
||||
<IntNumber>0</IntNumber>
|
||||
<FirstString>`SortieSon</FirstString>
|
||||
<SecondString>0080000000000000000000000000000000408F4000000000000000000000000000000000536F72746965536F6E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000001000000000000000000E03F1900000000000000000000000000000000000000540A0008</SecondString>
|
||||
<SecondString>0080000000000000000000000000000000408F4000000000000000000000000000000000536F72746965536F6E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000001000000000000000000E03F1600000000000000000000000000000000000000540A0008</SecondString>
|
||||
</Wi>
|
||||
<Wi>
|
||||
<IntNumber>1</IntNumber>
|
||||
<FirstString>((portb & 0x00000001) & 0x1) >> 0</FirstString>
|
||||
<SecondString>0080000000000000000000000000000000408F400000000000000000000000000000000028706F72746220262030783030303030303031290000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000002000000000000000000E03F1900000000000000000000000000000000000000B40A0008</SecondString>
|
||||
<SecondString>0080000000000000000000000000000000408F400000000000000000000000000000000028706F72746220262030783030303030303031290000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000002000000000000000000E03F1600000000000000000000000000000000000000B40A0008</SecondString>
|
||||
</Wi>
|
||||
</LogicAnalyzers>
|
||||
<DebugDescription>
|
||||
|
@ -381,6 +396,13 @@
|
|||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<WatchWindow1>
|
||||
<Ww>
|
||||
<count>0</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>SortieSon</ItemText>
|
||||
</Ww>
|
||||
</WatchWindow1>
|
||||
<MemoryWindow1>
|
||||
<Mm>
|
||||
<WinNumber>1</WinNumber>
|
||||
|
@ -409,7 +431,7 @@
|
|||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aLa>1</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
|
|
Loading…
Reference in a new issue