Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
For a full reference visit the Markdown syntax.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As mentioned in previous post, this post gives more information about loading an assembler based module.
A binary file is loaded from fileName and creates an object named by varName.
This holds functions given by functions array.
Flash.read(adr) // returns an int-value from adr
Flash.unlock // unlocks flash memory, so you can change values
Flash.write(adr,value) // writes value to adr
Flash.erase(adr) // erases fullpage starting at adr
Flash.copyMem(source,destination,length) //copys from "length" bytes from source to destination
Flash.pageSafe(adr) // checks page for safe writing, returns 0 if safe
The assembly file holds a list of branches on top like this (see attached ASM file)
An example, how this can be used is this:
BTW, I had some experience with assembler many years ago. This is my first attempt in ARM assembler, any hint is welcome.
1 Attachment