forked from acco/chti23
callback son
This commit is contained in:
parent
b65f8fbb0a
commit
71b8b23e62
2 changed files with 21 additions and 16 deletions
|
@ -28,7 +28,7 @@ index dcd 0
|
|||
; écrire le code ici
|
||||
|
||||
CallbackSon proc
|
||||
push {r4,lr,r5,r6,r7}
|
||||
push {lr,r4-r7}
|
||||
ldr r4,=LongueurSon
|
||||
ldr r4,[r4]
|
||||
ldr r2,=index
|
||||
|
@ -44,22 +44,27 @@ alors
|
|||
ldr r3,=SortieSon
|
||||
ldr r1,=Son
|
||||
|
||||
ldrsh r0,[r1,r2,lsl#1] ; R0 = *(R1+2*R2 ) R0 = R1[R2]
|
||||
ldrsh r0,[r1,r7,lsl#1] ; R0 = *(R1+2*R7 ) R0 = R1[R7]
|
||||
|
||||
mov r5,#719
|
||||
mul r3,r5
|
||||
asr r3,#16
|
||||
mov r5,#32768
|
||||
add r0,r5
|
||||
|
||||
mov r6,#719
|
||||
mul r0,r6
|
||||
;ldr r6,=23560192 ;719*32768
|
||||
asr r0,#16
|
||||
;add r0,r6
|
||||
|
||||
ldr r6,=23560192 ;719*32768
|
||||
add r3,r6
|
||||
asr r3,#16
|
||||
; mise à jour de SortieSon
|
||||
strh r0,[r3]
|
||||
;ldr r3,[r0]
|
||||
|
||||
add r7,#1 ;index=index+1
|
||||
str r7,[r2] ; *R2 = R7
|
||||
|
||||
|
||||
finsi
|
||||
pop {r4,lr,r5,r6,r7}
|
||||
pop {lr,r4-r7}
|
||||
bx lr
|
||||
endp
|
||||
|
||||
|
|
|
@ -157,9 +157,9 @@
|
|||
<Bp>
|
||||
<Number>0</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>31</LineNumber>
|
||||
<LineNumber>47</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>134219960</Address>
|
||||
<Address>134219980</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
|
@ -168,14 +168,14 @@
|
|||
<BreakIfRCount>1</BreakIfRCount>
|
||||
<Filename>.\Src\GestionSon.s</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression>\\StepSon\Src/GestionSon.s\31</Expression>
|
||||
<Expression>\\StepSon\Src/GestionSon.s\47</Expression>
|
||||
</Bp>
|
||||
</Breakpoint>
|
||||
<MemoryWindow1>
|
||||
<Mm>
|
||||
<WinNumber>1</WinNumber>
|
||||
<SubType>0</SubType>
|
||||
<ItemText>R2</ItemText>
|
||||
<SubType>266</SubType>
|
||||
<ItemText>R5</ItemText>
|
||||
<AccSizeX>0</AccSizeX>
|
||||
</Mm>
|
||||
</MemoryWindow1>
|
||||
|
@ -225,12 +225,12 @@
|
|||
<Wi>
|
||||
<IntNumber>0</IntNumber>
|
||||
<FirstString>((portb & 0x00000002) >> 1 & 0x2) >> 1</FirstString>
|
||||
<SecondString>FF000000000000000000000000000000E0FFEF400100000000000000000000000000000028706F7274622026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F100000000000000000000000000000000000000096020008</SecondString>
|
||||
<SecondString>FF000000000000000000000000000000E0FFEF400100000000000000000000000000000028706F7274622026203078303030303030303229203E3E2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F130000000000000000000000000000000000000096020008</SecondString>
|
||||
</Wi>
|
||||
<Wi>
|
||||
<IntNumber>1</IntNumber>
|
||||
<FirstString>`SortieSon</FirstString>
|
||||
<SecondString>0080000000000000000000000000E0FFFFFFEF4100000000000000000000000000000000536F72746965536F6E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F100000000000000000000000000000000000000094080008</SecondString>
|
||||
<SecondString>0080000000000000000000000000E0FFFFFFEF4100000000000000000000000000000000536F72746965536F6E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F130000000000000000000000000000000000000094080008</SecondString>
|
||||
</Wi>
|
||||
</LogicAnalyzers>
|
||||
<DebugDescription>
|
||||
|
|
Loading…
Reference in a new issue