Clean up the CPU/ChipSet interface, and get the PC8080 Video component ready to actually do something
This commit is contained in:
parent
ac3dc76285
commit
8c5ab8d73b
19 changed files with 1210 additions and 993 deletions
|
|
@ -450,6 +450,18 @@ CPUSim.prototype.getPC = function()
|
|||
return this.regPC;
|
||||
};
|
||||
|
||||
/**
|
||||
* offPC()
|
||||
*
|
||||
* @this {CPUSim}
|
||||
* @param {number} off
|
||||
* @return {number}
|
||||
*/
|
||||
CPUSim.prototype.offPC = function(off)
|
||||
{
|
||||
return (this.regPC + off) & 0xffff;
|
||||
};
|
||||
|
||||
/**
|
||||
* setPC(off)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue