// In your JS file:
register(10, (params, context) => {
// your code here
return result;
}, 'Description of instruction');
Each file should call register(opcode, fn, doc) to define one or more instructions. fn receives parsed args (object) and context (shared).
# comment
1 Hello, World!
2 {"a":10,"b":5, "operation":"add"}
3 1000
Each line: <opcode> [arguments]. Arguments can be JSON or key=value pairs. Lines starting with # are comments.
Upload JS files that call register(opcode, fn, doc) to define new instructions.