Updated Computer constants

This commit is contained in:
Jeff Parsons 2016-01-16 14:37:39 -08:00
commit 5cb676e501
73 changed files with 139 additions and 80 deletions

View file

@ -1013,6 +1013,12 @@
<xsl:template match="computer[not(@ref)]"> <xsl:template match="computer[not(@ref)]">
<xsl:param name="machine" select="''"/> <xsl:param name="machine" select="''"/>
<xsl:param name="machineState" select="''"/> <xsl:param name="machineState" select="''"/>
<xsl:variable name="autoPower">
<xsl:choose>
<xsl:when test="@autopower"><xsl:value-of select="@autopower"/></xsl:when>
<xsl:otherwise>true</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="busWidth"> <xsl:variable name="busWidth">
<xsl:choose> <xsl:choose>
<xsl:when test="@buswidth"><xsl:value-of select="@buswidth"/></xsl:when> <xsl:when test="@buswidth"><xsl:value-of select="@buswidth"/></xsl:when>
@ -1035,7 +1041,7 @@
<xsl:call-template name="component"> <xsl:call-template name="component">
<xsl:with-param name="machine" select="$machine"/> <xsl:with-param name="machine" select="$machine"/>
<xsl:with-param name="class">computer</xsl:with-param> <xsl:with-param name="class">computer</xsl:with-param>
<xsl:with-param name="parms">,busWidth:<xsl:value-of select="$busWidth"/>,resume:<xsl:value-of select="$resume"/>,state:'<xsl:value-of select="$state"/>'</xsl:with-param> <xsl:with-param name="parms">,autoPower:<xsl:value-of select="$autoPower"/>,busWidth:<xsl:value-of select="$busWidth"/>,resume:<xsl:value-of select="$resume"/>,state:'<xsl:value-of select="$state"/>'</xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>

View file

@ -65,10 +65,22 @@ documentation for the 80386 and 80486.
### Timing ### Timing
Operands | **x** | **88** | **86** | **286** | **386** | **486** Operands | **x** | **8088** | **8086** | **80286** | **80386** | **80486**
---------- | :---: | :----: | :----: | :-----: | :-----: | :-----: ---------- | :---: | :------: | :------: | :-------: | :-------: | :-------:
none | 0 | 8 | 8 | 3 | 4 | 3 none | 0 | 8 | 8 | 3 | 4 | 3
(x is the number of memory transfers)
--- ---
Source: PC Magazine "Programmer's Technical Reference: The Processor and Coprocessor," by Robert L. Hummel. Source: PC Magazine "Programmer's Technical Reference: The Processor and Coprocessor," by Robert L. Hummel.
---
### PCjs Code
{% highlight javascript linenos %}
{% include_relative pcjs/opAAA.js %}
{% endhighlight %}

View file

@ -0,0 +1,26 @@
/**
* op=0x37 (AAA)
*
* @this {X86CPU}
*/
X86.opAAA = function()
{
var CF, AF;
var AL = this.regEAX & 0xff;
var AH = (this.regEAX >> 8) & 0xff;
if ((AL & 0xf) > 9 || this.getAF()) {
AL += 6;
/*
* Simulate the fact that the 80286 and higher add 6 to AX rather than AL.
*/
if (this.model >= X86.MODEL_80286 && AL > 0xff) AH++;
AH++;
CF = AF = 1;
} else {
CF = AF = 0;
}
this.regEAX = (this.regEAX & ~0xffff) | (((AH << 8) | AL) & 0xff0f);
if (CF) this.setCF(); else this.clearCF();
if (AF) this.setAF(); else this.clearAF();
this.nStepCycles -= this.cycleCounts.nOpCyclesAAA;
};

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the
@ -94,9 +94,9 @@ function C1PComputer(parmsComputer, modules)
this.modules = modules; this.modules = modules;
} }
C1PComputer.sAppName = APPNAME || "C1Pjs"; C1PComputer.APPNAME = APPNAME || "C1Pjs";
C1PComputer.sAppVer = APPVERSION; C1PComputer.APPVERSION = APPVERSION;
C1PComputer.sCopyright = "Copyright © 2012-2016 Jeff Parsons <Jeff@pcjs.org>"; C1PComputer.COPYRIGHT = "Copyright © 2012-2016 Jeff Parsons <Jeff@pcjs.org>";
Component.subclass(C1PComputer); Component.subclass(C1PComputer);
@ -237,7 +237,7 @@ C1PComputer.power = function(computer)
*/ */
computer.setReady(); computer.setReady();
computer.println(C1PComputer.sAppName + " v" + C1PComputer.sAppVer + "\n" + C1PComputer.sCopyright); computer.println(C1PComputer.APPNAME + " v" + C1PComputer.APPVERSION + "\n" + C1PComputer.COPYRIGHT);
/* /*
* Once we get to this point, we're guaranteed that all components are ready, so it's safe to "power" the CPU; * Once we get to this point, we're guaranteed that all components are ready, so it's safe to "power" the CPU;

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see C1PComputer.COPYRIGHT).
* *
* Some C1Pjs files also attempt to load external resource files, such as character-image files, * Some C1Pjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -25,7 +25,7 @@
* You are required to include the above copyright notice in every source * You are required to include the above copyright notice in every source
* code file of every copy or modified version of this work, and to display * code file of every copy or modified version of this work, and to display
* that copyright notice on every screen that loads or runs any version * that copyright notice on every screen that loads or runs any version
* of this software (see Computer.sCopyright). * of this software (see Computer.COPYRIGHT).
* *
* Some C1Pjs and PCjs files also attempt to load external resource files, such * Some C1Pjs and PCjs files also attempt to load external resource files, such
* as character-image files and ROM files. Those external resource files are * as character-image files and ROM files. Those external resource files are

View file

@ -20,7 +20,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -24,7 +24,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the
@ -1029,6 +1029,7 @@ if (DEBUGGER) {
0x03: [Debugger.INS.LSL, Debugger.TYPE_REG | Debugger.TYPE_SHORT | Debugger.TYPE_OUT | Debugger.TYPE_80286, Debugger.TYPE_MODMEM | Debugger.TYPE_SHORT| Debugger.TYPE_IN], 0x03: [Debugger.INS.LSL, Debugger.TYPE_REG | Debugger.TYPE_SHORT | Debugger.TYPE_OUT | Debugger.TYPE_80286, Debugger.TYPE_MODMEM | Debugger.TYPE_SHORT| Debugger.TYPE_IN],
0x05: [Debugger.INS.LOADALL,Debugger.TYPE_80286], 0x05: [Debugger.INS.LOADALL,Debugger.TYPE_80286],
0x06: [Debugger.INS.CLTS, Debugger.TYPE_80286], 0x06: [Debugger.INS.CLTS, Debugger.TYPE_80286],
0x07: [Debugger.INS.LOADALL,Debugger.TYPE_80386], // TODO: implied operand is ES:[(E)DI]
0x20: [Debugger.INS.MOV, Debugger.TYPE_MODREG | Debugger.TYPE_LONG | Debugger.TYPE_OUT | Debugger.TYPE_80386, Debugger.TYPE_CTLREG | Debugger.TYPE_LONG | Debugger.TYPE_IN], 0x20: [Debugger.INS.MOV, Debugger.TYPE_MODREG | Debugger.TYPE_LONG | Debugger.TYPE_OUT | Debugger.TYPE_80386, Debugger.TYPE_CTLREG | Debugger.TYPE_LONG | Debugger.TYPE_IN],
0x21: [Debugger.INS.MOV, Debugger.TYPE_MODREG | Debugger.TYPE_LONG | Debugger.TYPE_OUT | Debugger.TYPE_80386, Debugger.TYPE_DBGREG | Debugger.TYPE_LONG | Debugger.TYPE_IN], 0x21: [Debugger.INS.MOV, Debugger.TYPE_MODREG | Debugger.TYPE_LONG | Debugger.TYPE_OUT | Debugger.TYPE_80386, Debugger.TYPE_DBGREG | Debugger.TYPE_LONG | Debugger.TYPE_IN],
0x22: [Debugger.INS.MOV, Debugger.TYPE_CTLREG | Debugger.TYPE_LONG | Debugger.TYPE_OUT | Debugger.TYPE_80386, Debugger.TYPE_MODREG | Debugger.TYPE_LONG | Debugger.TYPE_IN], 0x22: [Debugger.INS.MOV, Debugger.TYPE_CTLREG | Debugger.TYPE_LONG | Debugger.TYPE_OUT | Debugger.TYPE_80386, Debugger.TYPE_MODREG | Debugger.TYPE_LONG | Debugger.TYPE_IN],

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -25,7 +25,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the
@ -4107,9 +4107,11 @@ X86.fnFaultMessage = function(nFault, nError, fHalt)
fHalt = false; fHalt = false;
} }
} }
if (nFault == X86.EXCEPTION.PF_FAULT && bOpcode == X86.OPCODE.IRET) { /*
if (nFault == X86.EXCEPTION.GP_FAULT) {
fHalt = true; fHalt = true;
} }
*/
/* /*
* If fHalt has been explicitly set to false, we also take that as a cue to disable fault messages * If fHalt has been explicitly set to false, we also take that as a cue to disable fault messages

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the
@ -766,7 +766,7 @@ X86.opAAA = function()
if ((AL & 0xf) > 9 || this.getAF()) { if ((AL & 0xf) > 9 || this.getAF()) {
AL += 6; AL += 6;
/* /*
* Simulate the fact that the 80286 and higher actually add 6 to AX rather than AL. * Simulate the fact that the 80286 and higher add 6 to AX rather than AL.
*/ */
if (this.model >= X86.MODEL_80286 && AL > 0xff) AH++; if (this.model >= X86.MODEL_80286 && AL > 0xff) AH++;
AH++; AH++;

View file

@ -1015,6 +1015,12 @@
<xsl:template match="computer[not(@ref)]"> <xsl:template match="computer[not(@ref)]">
<xsl:param name="machine" select="''"/> <xsl:param name="machine" select="''"/>
<xsl:param name="machineState" select="''"/> <xsl:param name="machineState" select="''"/>
<xsl:variable name="autoPower">
<xsl:choose>
<xsl:when test="@autopower"><xsl:value-of select="@autopower"/></xsl:when>
<xsl:otherwise>true</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="busWidth"> <xsl:variable name="busWidth">
<xsl:choose> <xsl:choose>
<xsl:when test="@buswidth"><xsl:value-of select="@buswidth"/></xsl:when> <xsl:when test="@buswidth"><xsl:value-of select="@buswidth"/></xsl:when>
@ -1037,7 +1043,7 @@
<xsl:call-template name="component"> <xsl:call-template name="component">
<xsl:with-param name="machine" select="$machine"/> <xsl:with-param name="machine" select="$machine"/>
<xsl:with-param name="class">computer</xsl:with-param> <xsl:with-param name="class">computer</xsl:with-param>
<xsl:with-param name="parms">,busWidth:<xsl:value-of select="$busWidth"/>,resume:<xsl:value-of select="$resume"/>,state:'<xsl:value-of select="$state"/>'</xsl:with-param> <xsl:with-param name="parms">,autoPower:<xsl:value-of select="$autoPower"/>,busWidth:<xsl:value-of select="$busWidth"/>,resume:<xsl:value-of select="$resume"/>,state:'<xsl:value-of select="$state"/>'</xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some PCjs files also attempt to load external resource files, such as character-image files, * Some PCjs files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -22,7 +22,7 @@
* *
* You are required to include the above copyright notice in every source code file of every * You are required to include the above copyright notice in every source code file of every
* copy or modified version of this work, and to display that copyright notice on every screen * copy or modified version of this work, and to display that copyright notice on every screen
* that loads or runs any version of this software (see Computer.sCopyright). * that loads or runs any version of this software (see Computer.COPYRIGHT).
* *
* Some JSMachines files also attempt to load external resource files, such as character-image files, * Some JSMachines files also attempt to load external resource files, such as character-image files,
* ROM files, and disk image files. Those external resource files are not considered part of the * ROM files, and disk image files. Those external resource files are not considered part of the

View file

@ -1013,6 +1013,12 @@
<xsl:template match="computer[not(@ref)]"> <xsl:template match="computer[not(@ref)]">
<xsl:param name="machine" select="''"/> <xsl:param name="machine" select="''"/>
<xsl:param name="machineState" select="''"/> <xsl:param name="machineState" select="''"/>
<xsl:variable name="autoPower">
<xsl:choose>
<xsl:when test="@autopower"><xsl:value-of select="@autopower"/></xsl:when>
<xsl:otherwise>true</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="busWidth"> <xsl:variable name="busWidth">
<xsl:choose> <xsl:choose>
<xsl:when test="@buswidth"><xsl:value-of select="@buswidth"/></xsl:when> <xsl:when test="@buswidth"><xsl:value-of select="@buswidth"/></xsl:when>
@ -1035,7 +1041,7 @@
<xsl:call-template name="component"> <xsl:call-template name="component">
<xsl:with-param name="machine" select="$machine"/> <xsl:with-param name="machine" select="$machine"/>
<xsl:with-param name="class">computer</xsl:with-param> <xsl:with-param name="class">computer</xsl:with-param>
<xsl:with-param name="parms">,busWidth:<xsl:value-of select="$busWidth"/>,resume:<xsl:value-of select="$resume"/>,state:'<xsl:value-of select="$state"/>'</xsl:with-param> <xsl:with-param name="parms">,autoPower:<xsl:value-of select="$autoPower"/>,busWidth:<xsl:value-of select="$busWidth"/>,resume:<xsl:value-of select="$resume"/>,state:'<xsl:value-of select="$state"/>'</xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>