movw not working (solved! not possible on V6)
Posted: Mon Apr 19, 2021 1:52 pm
I did have to use assembly to speed up a process to play 44.1KHz wave on the pico but I was'nt able to use the code
movw. The only one working is the 8bit version mov.
movw(r3, 32768) or movwt(r3, 32768) don't work!
I got "SyntaxError: unsupported Thumb instruction 'movw' with 2 arguments"
Is there a reason or I was using the wrong syntax.
I had to replace it by
mov(r3,1)
mov(r4,15)
lsl(r3,r4)
My script is on https://github.com/danjperron/PicoAudioPWM
movw. The only one working is the 8bit version mov.
movw(r3, 32768) or movwt(r3, 32768) don't work!
I got "SyntaxError: unsupported Thumb instruction 'movw' with 2 arguments"
Is there a reason or I was using the wrong syntax.
I had to replace it by
mov(r3,1)
mov(r4,15)
lsl(r3,r4)
My script is on https://github.com/danjperron/PicoAudioPWM