At the moment, the assembler code is written into RAM at the end of the stack. It means that if you power the board off and back on you'd have to call loadArray again (as well as making sure that ASMBase was set).
By writing the data into flash, it could be stored there so the functions worked like you'd expect after power cycling (that's what STM32F1Flash can do).
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.
At the moment, the assembler code is written into RAM at the end of the stack. It means that if you power the board off and back on you'd have to call
loadArray
again (as well as making sure that ASMBase was set).By writing the data into flash, it could be stored there so the functions worked like you'd expect after power cycling (that's what STM32F1Flash can do).