An attempt to get a JavaScript engine onto the Texas Instruments 84 Plus Color Edition Calculator. Uses Elk as the engine. elk.c and elk.h have a seperate license.
Functions are mapped 1-to-1 from C to JavaScript as best as possible.
- node.js (if you wish to package files)
- the CE Toolchain
- sanity
- Install the toolchain
- Make a JavaScript file. See src/main.c for the currently defined functions.
node index.js /path/to/javascript/file.js(e.g.node index.js ./examples/dump.js)make clean && make debug- Tada! Load JS84.8xp onto your calculator.
dump();- sys/basicusb.h
- From sys/power.h:
boot_TurnOff,boot_TurnOn,boot_GetBatteryStatus - From ti/screen.h:
os_ClrHome
- Strings being passed to foreign functions don't seem to work. Printing a string causes it to become negative infinity or
%.17g