Some minor documentation cleanup
This commit is contained in:
parent
177032223c
commit
17d270ea2f
5 changed files with 214 additions and 113 deletions
|
|
@ -187,10 +187,15 @@ function Computer(parmsComputer, parmsMachine, fSuspended) {
|
|||
var sStatePath = null;
|
||||
var sResume = parmsComputer['resume'];
|
||||
if (sResume !== undefined) {
|
||||
if (sResume.length == 1) {
|
||||
this.resume = +sResume;
|
||||
} else {
|
||||
/*
|
||||
* DEPRECATE: This goofiness is a holdover from when the 'resume' property was a string (either a
|
||||
* single-digit string or a path); now it's always a number, so it never has a 'length' property and
|
||||
* the call to parseInt() is unnecessary.
|
||||
*/
|
||||
if (sResume.length > 1) {
|
||||
sStatePath = this.sResumePath = sResume;
|
||||
} else {
|
||||
this.resume = parseInt(sResume, 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1639,7 +1639,7 @@ X86CPU.prototype.getIP = function()
|
|||
*/
|
||||
X86CPU.prototype.setIP = function(off)
|
||||
{
|
||||
this.regLIP = this.segCS.base + (off & (I386? this.dataMask : 0xffff));
|
||||
this.regLIP = this.segCS.base + (off & (I386? this.segCS.addrMask : 0xffff));
|
||||
if (PREFETCH) this.flushPrefetch(this.regLIP);
|
||||
};
|
||||
|
||||
|
|
@ -1650,9 +1650,6 @@ X86CPU.prototype.setIP = function(off)
|
|||
* never set without an accompanying IP (well, except for a few undocumented instructions, like POP CS, which
|
||||
* were available ONLY on the 8086/8088/80186/80188; see setCS() for details).
|
||||
*
|
||||
* NOTE: Unlike setIP(), which is often passed a computation, the offsets passed to setCSIP() are assumed to
|
||||
* be 16-bit values, so there's no need to mask them with 0xffff (although it doesn't hurt to assert that).
|
||||
*
|
||||
* And even though this function is called setCSIP(), please note the order of the parameters is IP,CS,
|
||||
* which matches the order that CS:IP values are normally stored in memory, allowing us to make calls like this:
|
||||
*
|
||||
|
|
@ -1677,7 +1674,7 @@ X86CPU.prototype.setCSIP = function(off, sel, fCall)
|
|||
this.regEIP = off;
|
||||
var base = this.segCS.load(sel);
|
||||
if (base !== X86.ADDR_INVALID) {
|
||||
this.regLIP = base + this.regEIP;
|
||||
this.regLIP = base + (this.regEIP & (I386? this.segCS.addrMask : 0xffff));
|
||||
this.regLIPLimit = base + this.segCS.limit;
|
||||
if (I386) this.resetSizes();
|
||||
if (PREFETCH) this.flushPrefetch(this.regLIP);
|
||||
|
|
|
|||
|
|
@ -221,9 +221,6 @@ pre a, code a {
|
|||
.md-list li p {
|
||||
padding-left: 2em;
|
||||
}
|
||||
.md-list li p br {
|
||||
line-height: 3em;
|
||||
}
|
||||
.md-list-compact {
|
||||
}
|
||||
.md-list-compact li {
|
||||
|
|
|
|||
Loading…
Reference in a new issue