I understand the pointer points to the address and the address value is incremented to the next higher address.
What I need is the pointer points to the address and the address is incremented to an offset into that array at that address.
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.
Sat 2018.10.06
Not strong enough with Espruino debugger to solve this, as my pointer offsets appear to be the culprits
Trying to convert this working code block to inlineC
Leaving out the overhead ex:
Have tried
and
but both corrupt memory as can be seen by viewing 'this' and instantiated variable contents in IDE console.
My belief is the arrangement of the JSVars in memory, thus the offsets are off. e.g. what the pointers point to
I am able to walk the array one element at a time in succession (not what I'm after)
I understand the pointer points to the address and the address value is incremented to the next higher address.
What I need is the pointer points to the address and the address is incremented to an offset into that array at that address.
Any insight greatly appreciated.