What is assembler?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
pmulvey
Posts: 45
Joined: Sun Jul 29, 2018 8:12 am
Location: Athlone, Ireland

What is assembler?

Post by pmulvey » Fri Feb 26, 2021 7:50 pm

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.
Paul Mulvey

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: What is assembler?

Post by dhylands » Fri Feb 26, 2021 10:43 pm

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.

Post Reply