Reads the specified register
The name of the register to be read
The value of the register
Will throw if an error occurs while reading the register
// Reads the PC registerlet value = session.registers.read("PC"); Copy
// Reads the PC registerlet value = session.registers.read("PC");
Write to the specified register
The name of the register to be written to
The value to be written to the register. Can be a bigint, or an integer represented as a string, or a javascript number.
Will throw if an error occurs while writing to the register
// Writes 0x12345 to the PC registersession.registers.write("PC", 0x12345n);// Writes -1 to the R0 registersession.registers.write("R0", -1n); Copy
// Writes 0x12345 to the PC registersession.registers.write("PC", 0x12345n);// Writes -1 to the R0 registersession.registers.write("R0", -1n);
Reads the specified register