The m.<func>
set of functions allows you to interact with the memory of the microprocessor.
m.r(address)
address
[Number] - a memory address from where data should be read.m.w(address, data)
address
[Number] - a memory address where data should be written.data
[Array] - data which should be written to the address.The r.<func>
set of functions allows you to interact with the registers of the microprocessor.
r.r(register)
register
[Untyped] - a register from where data should be read.r.w(register, data)
register
[Untyped] - a register where data should be written.data
[Number] - data which should be written to the register.require(library)
error(message)
info(message)
warn(message)
info = require('logger').info
, and so on.All Libraries available to the editor scripts are also available to the console. See editor-api.