This commit is contained in:
Fabian 2021-10-17 16:49:33 -05:00
parent be477084a9
commit 30fa3dbaf9

View file

@ -1296,22 +1296,24 @@ V86Starter.prototype.automatically = function(steps)
/**
* Reads data from memory at specified offset.
*
* @param {number} offset
* @param {number} length
* @returns
*
* @param {number} offset
* @param {number} length
* @returns
*/
V86Starter.prototype.read_memory = function(offset, length) {
V86Starter.prototype.read_memory = function(offset, length)
{
return this.v86.cpu.read_blob(offset, length);
};
/**
* Writes data to memory at specified offset.
*
*
* @param {Array.<number>|Uint8Array} blob
* @param {number} offset
*/
V86Starter.prototype.write_memory = function(blob, offset) {
V86Starter.prototype.write_memory = function(blob, offset)
{
this.v86.cpu.write_blob(blob, offset);
};