get_instruction_counter

This commit is contained in:
copy 2015-01-14 00:28:22 +01:00
parent 11f7017c30
commit 9af95c47f6

View file

@ -417,7 +417,7 @@ V86Starter.prototype.get_statistics = function()
{
var stats = {
cpu: {
instruction_counter: this.v86.cpu.timestamp_counter,
instruction_counter: this.get_instruction_counter(),
},
};
@ -448,6 +448,15 @@ V86Starter.prototype.get_statistics = function()
return stats;
};
/**
* @return {number}
* @ignore
*/
V86Starter.prototype.get_instruction_counter = function()
{
return this.v86.cpu.timestamp_counter;
};
/**
* @return {boolean}
*/