diff --git a/disks/pcx86/windows/1.01/README.md b/disks/pcx86/windows/1.01/README.md index b1d363923..bc6fae15b 100644 --- a/disks/pcx86/windows/1.01/README.md +++ b/disks/pcx86/windows/1.01/README.md @@ -19,8 +19,8 @@ Microsoft Windows 1.01 ---------------------- Microsoft Windows 1.01, the first public version of Windows, was released on November 20, 1985. -It is shown here running on an IBM PC XT (Model 5160) with an EGA Display. You can also run -[Windows 1.01 with a CGA Display](cga/). +It is shown here running on an IBM PC XT (Model 5160) with an EGA Display. You can also run Windows 1.01 +with a [Debugger](debugger/) or a [CGA Display](cga/). A demo of an earlier pre-release version, [Windows 1.0 ("Premiere Edition")](../1.00/), is also available. diff --git a/disks/pcx86/windows/1.01/cga/README.md b/disks/pcx86/windows/1.01/cga/README.md index a6c65c798..fd0c661e3 100644 --- a/disks/pcx86/windows/1.01/cga/README.md +++ b/disks/pcx86/windows/1.01/cga/README.md @@ -24,7 +24,7 @@ Microsoft Windows 1.01 with CGA Display [Microsoft Windows 1.01](/disks/pcx86/windows/1.01/), the first public version of Windows, was released on November 20, 1985. It is shown here running on an IBM PC XT (Model 5160) with a CGA Display. You can also run -[Windows 1.01 with an EGA Display](/disks/pcx86/windows/1.01/). +Windows 1.01 with a [Debugger](debugger/), [Soft Keyboard](softkbd/), or [EGA Display](/disks/pcx86/windows/1.01/). {% include machine.html id="ibm5160-cga-win101" %} @@ -40,4 +40,4 @@ NOTE: The Windows 1.01 mouse pointer can be controlled with your mouse, but only within the "CGA Display" window. This is a restriction imposed by your web browser, not PCjs. For more control over this machine, try the [Control Panel](debugger/) or [Soft Keyboard](softkbd/) configurations, -featuring the built-in PCjs Debugger, with save/restore enabled. +both of which feature the built-in PCjs Debugger, with save/restore enabled. diff --git a/disks/pcx86/windows/1.01/debugger/README.md b/disks/pcx86/windows/1.01/debugger/README.md new file mode 100644 index 000000000..b46d303fc --- /dev/null +++ b/disks/pcx86/windows/1.01/debugger/README.md @@ -0,0 +1,16 @@ +--- +layout: page +title: Microsoft Windows 1.01 with Debugger +permalink: /disks/pcx86/windows/1.01/debugger/ +machines: + - id: ibm5160-ega-win101 + type: pcx86 + state: /disks/pcx86/windows/1.01/state.json + config: /devices/pcx86/machine/5160/ega/640kb/debugger/machine.xml + drives: '[{name:"10Mb Hard Disk",type:3,path:"/disks/pcx86/fixed/10mb/PCDOS200-WIN101-EGA.json"}]' +--- + +Microsoft Windows 1.01 with Debugger +------------------------------------ + +{% include machine.html id="ibm5160-ega-win101" %} diff --git a/docs/pcx86/examples/pcx86-dbg.js b/docs/pcx86/examples/pcx86-dbg.js index c9f67617f..5f63a0b61 100644 --- a/docs/pcx86/examples/pcx86-dbg.js +++ b/docs/pcx86/examples/pcx86-dbg.js @@ -623,8 +623,8 @@ function Wu(a){rb.call(this,"Mouse",a,16777216);if(this.P=a.serial)this.W="Seria l.Xb=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(this.W&&!this.D){for(a=null;(a=bc(this.pa,this.W,a))&&(!a.Zi||!(this.D=a.Zi(this.P,this,this.tl))););if(this.D)for(this.B=[],a=0;aa.F||0>a.G)a.F=b.clientX,a.G=b.clientY;a.M?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.F,d=b.clientY-a.G);a.F=b.clientX;a.G=b.clientY;a.uf(c,d,a.F,a.G)}} -l.Wd=function(a,b){if(this.rc&&this.H&&this.H.ba.jb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Ls:if(this.K!=b){this.K=b;bv(this,c);return}break;case cv:if(this.L!=b){this.L=b;bv(this,c);return}}Rb(this,c+": ignored")}};l.uf=function(a,b,c,d){this.rc&&this.H&&this.H.ba.jb&&(a||b)&&(this.I=a,this.J=b,bv(this,null,c,d))}; +function av(a,b,c){if(void 0!==c){var d;!(d=!1!==a.M)&&(d=a.C.length)&&(d=a.C[0],d=d.Fd?d.ne(!0):!1);d||(a.M=null);a.Wd(b.button,c)}else{if(0>a.F||0>a.G)a.F=b.screenX,a.G=b.screenY;a.M?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.F,d=b.screenY-a.G);a.F=b.screenX;a.G=b.screenY;a.uf(c,d,a.F,a.G)}} +l.Wd=function(a,b){if(this.rc&&this.H&&this.H.ba.jb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Ls:if(this.K!=b){this.K=b;bv(this,c);return}break;case cv:if(this.L!=b){this.L=b;bv(this,c);return}}Rb(this,c+": ignored")}};l.uf=function(a,b,c,d){this.rc&&this.H&&this.H.ba.jb&&(a||b)&&(t(this,16777216)&&Rb(this,"moveMouse("+a+","+b+")"),this.I=a,this.J=b,bv(this,null,c,d))}; function bv(a,b,c,d){var e=64|(a.K?32:0)|(a.L?16:0)|(a.J&192)>>4|(a.I&192)>>6,f=a.I&63,g=a.J&63;t(a,8388608)&&Rb(a,(b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+r(e)+","+r(f)+","+r(g)+"]",0,!0);a.D.Pf([e,f,g]);a.I=a.J=0} l.tl=function(a){var b=1048592==(a&1048592);if(b){if(!this.rc){var c=!1;this.A&16||(this.reset(),Rb(this,"serial mouse reset"),c=!0);this.A&1048576||(Rb(this,"serial mouse ID requested"),c=!0);c&&(this.D.Pf([dv,dv]),Rb(this,"serial mouse ID sent"));Xu(this);this.rc=b}}else this.rc&&(Rb(this,"serial mouse inactive"),Yu(this),this.rc=b);this.A=a};var dv=77,Ls=0,cv=2;eb(function(){for(var a=Bb(document,"pcx86","mouse"),b=0;ba.F||0>a.G)a.F=b.clientX,a.G=b.clientY;a.L?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.F,d=b.clientY-a.G);a.F=b.clientX;a.G=b.clientY;a.vg(c,d,a.F,a.G)}} +function gs(a,b,c){if(void 0!==c){var d;!(d=!1!==a.L)&&(d=a.C.length)&&(d=a.C[0],d=d.md?d.Jd(!0):!1);d||(a.L=null);a.je(b.button,c)}else{if(0>a.F||0>a.G)a.F=b.screenX,a.G=b.screenY;a.L?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.F,d=b.screenY-a.G);a.F=b.screenX;a.G=b.screenY;a.vg(c,d,a.F,a.G)}} l.je=function(a,b){if(this.Ub&&this.S&&this.S.Z.vb)switch(a){case sq:this.J!=b&&(this.J=b,hs(this));break;case is:this.K!=b&&(this.K=b,hs(this))}};l.vg=function(a,b){this.Ub&&this.S&&this.S.Z.vb&&(a||b)&&(this.H=a,this.I=b,hs(this))};function hs(a){a.D.ef([64|(a.J?32:0)|(a.K?16:0)|(a.I&192)>>4|(a.H&192)>>6,a.H&63,a.I&63]);a.H=a.I=0} l.ik=function(a){var b=1048592==(a&1048592);if(b){if(!this.Ub){var c=!1;this.A&16||(this.reset(),c=!0);this.A&1048576||(c=!0);c&&this.D.ef([js,js]);cs(this);this.Ub=b}}else this.Ub&&(ds(this),this.Ub=b);this.A=a};var js=77,sq=0,is=2;Ra(function(){for(var a=hb(document,"pcx86","mouse"),b=0;ba.F||0>a.G)a.F=b.clientX,a.G=b.clientY;a.M?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.F,d=b.clientY-a.G);a.F=b.clientX;a.G=b.clientY;a.uf(c,d,a.F,a.G)}} -l.Wd=function(a,b){if(this.rc&&this.H&&this.H.ba.jb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Ls:if(this.K!=b){this.K=b;bv(this,c);return}break;case cv:if(this.L!=b){this.L=b;bv(this,c);return}}Rb(this,c+": ignored")}};l.uf=function(a,b,c,d){this.rc&&this.H&&this.H.ba.jb&&(a||b)&&(this.I=a,this.J=b,bv(this,null,c,d))}; +function av(a,b,c){if(void 0!==c){var d;!(d=!1!==a.M)&&(d=a.C.length)&&(d=a.C[0],d=d.Fd?d.ne(!0):!1);d||(a.M=null);a.Wd(b.button,c)}else{if(0>a.F||0>a.G)a.F=b.screenX,a.G=b.screenY;a.M?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.F,d=b.screenY-a.G);a.F=b.screenX;a.G=b.screenY;a.uf(c,d,a.F,a.G)}} +l.Wd=function(a,b){if(this.rc&&this.H&&this.H.ba.jb){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Ls:if(this.K!=b){this.K=b;bv(this,c);return}break;case cv:if(this.L!=b){this.L=b;bv(this,c);return}}Rb(this,c+": ignored")}};l.uf=function(a,b,c,d){this.rc&&this.H&&this.H.ba.jb&&(a||b)&&(t(this,16777216)&&Rb(this,"moveMouse("+a+","+b+")"),this.I=a,this.J=b,bv(this,null,c,d))}; function bv(a,b,c,d){var e=64|(a.K?32:0)|(a.L?16:0)|(a.J&192)>>4|(a.I&192)>>6,f=a.I&63,g=a.J&63;t(a,8388608)&&Rb(a,(b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+r(e)+","+r(f)+","+r(g)+"]",0,!0);a.D.Pf([e,f,g]);a.I=a.J=0} l.tl=function(a){var b=1048592==(a&1048592);if(b){if(!this.rc){var c=!1;this.A&16||(this.reset(),Rb(this,"serial mouse reset"),c=!0);this.A&1048576||(Rb(this,"serial mouse ID requested"),c=!0);c&&(this.D.Pf([dv,dv]),Rb(this,"serial mouse ID sent"));Xu(this);this.rc=b}}else this.rc&&(Rb(this,"serial mouse inactive"),Yu(this),this.rc=b);this.A=a};var dv=77,Ls=0,cv=2;eb(function(){for(var a=Bb(document,"pcx86","mouse"),b=0;ba.F||0>a.G)a.F=b.clientX,a.G=b.clientY;a.L?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.clientX-a.F,d=b.clientY-a.G);a.F=b.clientX;a.G=b.clientY;a.vg(c,d,a.F,a.G)}} +function gs(a,b,c){if(void 0!==c){var d;!(d=!1!==a.L)&&(d=a.C.length)&&(d=a.C[0],d=d.md?d.Jd(!0):!1);d||(a.L=null);a.je(b.button,c)}else{if(0>a.F||0>a.G)a.F=b.screenX,a.G=b.screenY;a.L?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.F,d=b.screenY-a.G);a.F=b.screenX;a.G=b.screenY;a.vg(c,d,a.F,a.G)}} l.je=function(a,b){if(this.Ub&&this.S&&this.S.Z.vb)switch(a){case sq:this.J!=b&&(this.J=b,hs(this));break;case is:this.K!=b&&(this.K=b,hs(this))}};l.vg=function(a,b){this.Ub&&this.S&&this.S.Z.vb&&(a||b)&&(this.H=a,this.I=b,hs(this))};function hs(a){a.D.ef([64|(a.J?32:0)|(a.K?16:0)|(a.I&192)>>4|(a.H&192)>>6,a.H&63,a.I&63]);a.H=a.I=0} l.ik=function(a){var b=1048592==(a&1048592);if(b){if(!this.Ub){var c=!1;this.A&16||(this.reset(),c=!0);this.A&1048576||(c=!0);c&&this.D.ef([js,js]);cs(this);this.Ub=b}}else this.Ub&&(ds(this),this.Ub=b);this.A=a};var js=77,sq=0,is=2;Ra(function(){for(var a=hb(document,"pcx86","mouse"),b=0;b