As-is that may not work - bgt is branch if greater than - I guess you either intended to do a for loop in assembler, or an unconditional branch - b I think.
You might find out that even with a loop in assembler, the 'compiled JS' is actually faster. GCC is really pretty good at optimising the C code that's generated :)
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.
Ok :)
As-is that may not work -
bgt
isbranch if greater than
- I guess you either intended to do a for loop in assembler, or an unconditional branch -b
I think.You might find out that even with a loop in assembler, the 'compiled JS' is actually faster. GCC is really pretty good at optimising the C code that's generated :)