Assembler rp2040 instructions #10401
Replies: 4 comments 8 replies
-
There is some documentation here: https://docs.micropython.org/en/latest/pyboard/tutorial/assembler.html?highlight=assembler |
Beta Was this translation helpful? Give feedback.
-
A list of ARM thumb instructions supported by the RP2040 can be found in the RP2040 datasheet starting on page 69. |
Beta Was this translation helpful? Give feedback.
-
samneggs has several micropython/rp2040 assembly code examples that I found useful. |
Beta Was this translation helpful? Give feedback.
-
I have a number of libraries written for STM (Arm Thumb V7) which I adapted for the Pico (V6). In my experience the differences are minor, aside from the missing floating point instructions. There is a restriction on the stack push and pop instructions - IIRC they won't handle registers above R7 but aside from that my code worked. |
Beta Was this translation helpful? Give feedback.
-
hi, I'm writing a micropython code with Assembler instructions, I saw that the MOVW MOVT and MOVWT instructions are not accepted, if it is possible to have some info or the right syntax. thanks to whoever can help me
Beta Was this translation helpful? Give feedback.
All reactions