When you write assembler it's now assembled into a 'flat string' which is stored in the RAM dedicated to variable storage. It means that you can now save() assembled code and it'll 'just work'.
Loading from flash is now as easy as:
var myFunction = E.nativeCall(1, "JsVar(JsVar,JsVar)", require("fs").readFileSync("myFunction.bin"));
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.
The situation here has now changed a bit...
When you write assembler it's now assembled into a 'flat string' which is stored in the RAM dedicated to variable storage. It means that you can now
save()
assembled code and it'll 'just work'.Loading from flash is now as easy as: