This commit is contained in:
Artus13 2023-04-11 17:17:59 +02:00
джерело 1052fd89ef
коміт 5eb4a91b33
2 змінених файлів з 29 додано та 11 видалено

@ -30,23 +30,24 @@ CallbackSon
ldr r1, =index
ldr r2, [r1]
ldr r3, =Son
push {r6}
ldr r6, LongueurSon
ldr r0, LongueurSon
cmp r2, r6
cmp r2, r0
ble notEqual
pop {r6}
bx lr
notEqual
mov r6, #2
mul r6, r2
LDRSH r0, [r3, r6]
mov r0, #2
mul r0, r2
ldrsh r0, [r3, r0]
add r0, #32768
push {r4}
mov r4, #719
mul r0, r4
mov r4, #65535
udiv r0, r4
pop {r4}
push {r7}
ldr r7, =SortieSon
str r0, [r7]
@ -58,6 +59,7 @@ notEqual
str r2, [r5]
pop {r5}
pop {r4}
END
bx lr
END

@ -170,6 +170,22 @@
<ExecCommand></ExecCommand>
<Expression>\\StepSon\Src/GestionSon.s\30</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>64</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\Src\GestionSon.s</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<WatchWindow1>
<Ww>
@ -185,7 +201,7 @@
<Ww>
<count>2</count>
<WinNumber>1</WinNumber>
<ItemText>r3,0x0A</ItemText>
<ItemText>r3,0x10</ItemText>
</Ww>
<Ww>
<count>3</count>