Page 1 of 1

What is assembler?

Posted: Fri Feb 26, 2021 7:50 pm
by pmulvey
I am wondering are the assembler instructions begun with @micropython.asm_thumb the actual platform specific instructions or are they some sort of generic instruction set working on the Micropython interpreter at a very low level. I would image that the assembler instruction set would be quite different for the BBC:microbit, Pi Pico and ESPXXXX.

Re: What is assembler?

Posted: Fri Feb 26, 2021 10:43 pm
by dhylands
These are a pythonized version of the actual machine assembly instructions.
See: http://docs.micropython.org/en/latest/p ... mbler.html and http://docs.micropython.org/en/latest/r ... umb2-index

For the most part these map 1:1 with assembly instructions. movwt is a convenience that maps to 2 assembler instructions.