Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5042dd5b2 | ||
|
|
d52617b274 | ||
|
|
601a6fa4a0 | ||
|
|
0228094f1d | ||
|
|
7a871ee7a1 | ||
|
|
22728fb7e9 | ||
|
|
f874063366 | ||
|
|
4579e5e23c | ||
|
|
f44c90a1b6 | ||
|
|
56f2c4179b | ||
|
|
68081d851e | ||
|
|
3f5cc2a20c | ||
|
|
9f7637d1d0 | ||
|
|
38560e9a04 | ||
|
|
4ea4662c91 | ||
|
|
a18bf595bf | ||
|
|
22ad79e961 | ||
|
|
fa222eb627 | ||
|
|
3e68aea9e4 | ||
|
|
83876bb945 | ||
|
|
e142631cb2 | ||
|
|
8e06112b93 | ||
|
|
55ffadfdd1 | ||
|
|
7a1bc7d4e3 | ||
|
|
060632c466 | ||
|
|
9b33869e42 | ||
|
|
a71c6100d9 | ||
|
|
24c073a98e | ||
|
|
294ce6b5e7 | ||
|
|
7fb74e7d0d | ||
|
|
b2d9b4b7b6 | ||
|
|
daadf9c522 | ||
|
|
4609f30e52 | ||
|
|
643d81ee50 | ||
|
|
158838e64a | ||
|
|
347166fd43 | ||
|
|
9ff27c2609 | ||
|
|
5529304137 | ||
|
|
2e07e3f9e1 | ||
|
|
f090a0bd1d | ||
|
|
09c25590b8 | ||
|
|
71d117fa02 | ||
|
|
9d356c582b | ||
|
|
1bc36c1c07 | ||
|
|
04efe28f4b | ||
|
|
19bd800491 | ||
|
|
ec019f9372 | ||
|
|
e5036a2cc6 | ||
|
|
b730b915bf | ||
|
|
16f91fec4a | ||
|
|
34bb5f2d28 | ||
|
|
2522566d16 | ||
|
|
dbaf381f9b | ||
|
|
b91eaeba48 | ||
|
|
1961e79955 | ||
|
|
d450c54607 | ||
|
|
73bcb543fd | ||
|
|
46545b3c73 | ||
|
|
6a3498e666 | ||
|
|
157319a355 | ||
|
|
6820d65c2d | ||
|
|
159588623a | ||
|
|
af252fc606 | ||
|
|
f316aedd72 | ||
|
|
8a86f793c6 | ||
|
|
ed5c9d278c | ||
|
|
964201c73c | ||
|
|
3d36682396 | ||
|
|
1226392d9f | ||
|
|
9807bd9f15 | ||
|
|
33cabfc348 | ||
|
|
d8e329b12c | ||
|
|
cce8f6a48d | ||
|
|
f168e19c8c | ||
|
|
00a8b50c57 | ||
|
|
abc4f7de6f | ||
|
|
8214446363 | ||
|
|
d5390393ab | ||
|
|
29be56667d | ||
|
|
8523800d8c | ||
|
|
f5957fcfdb | ||
|
|
dcc6880717 | ||
|
|
aac9a13328 | ||
|
|
7f973a03b9 | ||
|
|
591d6b85d5 | ||
|
|
2fc2872386 | ||
|
|
f6fe72f43f | ||
|
|
225bb00d48 | ||
|
|
eb79d0e87e | ||
|
|
1d50200df8 | ||
|
|
bf5e1faf67 | ||
|
|
e5a9b01dde | ||
|
|
f71b4d648c | ||
|
|
13b0c23b0a | ||
|
|
c397937a87 | ||
|
|
7fbc84195b | ||
|
|
d0052eb7cd | ||
|
|
aefe2b4b5b | ||
|
|
a3c252bf99 | ||
|
|
55cf71ccae | ||
|
|
072b8fa2df | ||
|
|
d8804faba0 | ||
|
|
299948fa1f | ||
|
|
30df38738c | ||
|
|
1b987df6e2 | ||
|
|
f391d7b4b5 | ||
|
|
fbb07ae682 | ||
|
|
fe74e12e40 | ||
|
|
c2d14f0d33 | ||
|
|
e0827c536f | ||
|
|
4fab49eca9 | ||
|
|
2da0f5904d | ||
|
|
3def72cbfe | ||
|
|
6a3f7f4a5d | ||
|
|
d7dd746e2c | ||
|
|
16df78e654 | ||
|
|
a6668e34bb | ||
|
|
a85662632c | ||
|
|
b7e424a46c | ||
|
|
d8f98fb263 | ||
|
|
d8cdebae3b | ||
|
|
fb493d09ac | ||
|
|
a0951aeea9 | ||
|
|
308bd75af4 | ||
|
|
6c6f28c1ef | ||
|
|
8035a95cf9 | ||
|
|
29c8ac5ce6 | ||
|
|
c50005db47 |
1081 changed files with 823806 additions and 29952 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -13,8 +13,8 @@ index.html
|
|||
.project
|
||||
.settings
|
||||
.sass-cache
|
||||
_site
|
||||
node_modules
|
||||
/docs
|
||||
/videos
|
||||
/web
|
||||
c64/
|
||||
|
|
@ -26,3 +26,4 @@ src/
|
|||
tmp/
|
||||
unlisted/
|
||||
archive/
|
||||
!/archive
|
||||
|
|
|
|||
24
Gruntfile.js
24
Gruntfile.js
|
|
@ -216,8 +216,8 @@ module.exports = function(grunt) {
|
|||
.replace(/^[ \t]*var\s+\S+\s*=\s*require\((['"]).*?\1\);/gm, '')
|
||||
.replace(/^[ \t]*(if\s+\(NODE\)\s*|)module\.exports\s*=\s*\S+;/gm, '')
|
||||
.replace(/\/\*\*\s*\*\s*@fileoverview[\s\S]*?\*\/\s*/g, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*[A-Za-z_][A-Za-z0-9_.]*\.assert\([^\n]*\);[^\n]*/g, '');
|
||||
}
|
||||
}
|
||||
|
|
@ -234,8 +234,8 @@ module.exports = function(grunt) {
|
|||
.replace(/^[ \t]*var\s+\S+\s*=\s*require\((['"]).*?\1\);/gm, '')
|
||||
.replace(/^[ \t]*(if\s+\(NODE\)\s*|)module\.exports\s*=\s*\S+;/gm, '')
|
||||
.replace(/\/\*\*\s*\*\s*@fileoverview[\s\S]*?\*\/\s*/g, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*[A-Za-z_][A-Za-z0-9_.]*\.assert\([^\n]*\);[^\n]*/g, '');
|
||||
}
|
||||
}
|
||||
|
|
@ -252,8 +252,8 @@ module.exports = function(grunt) {
|
|||
.replace(/^[ \t]*var\s+\S+\s*=\s*require\((['"]).*?\1\);/gm, '')
|
||||
.replace(/^[ \t]*(if\s+\(NODE\)\s*|)module\.exports\s*=\s*\S+;/gm, '')
|
||||
.replace(/\/\*\*\s*\*\s*@fileoverview[\s\S]*?\*\/\s*/g, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*[A-Za-z_][A-Za-z0-9_.]*\.assert\([^\n]*\);[^\n]*/g, '');
|
||||
}
|
||||
}
|
||||
|
|
@ -270,8 +270,8 @@ module.exports = function(grunt) {
|
|||
.replace(/^[ \t]*var\s+\S+\s*=\s*require\((['"]).*?\1\);/gm, '')
|
||||
.replace(/^[ \t]*(if\s+\(NODE\)\s*|)module\.exports\s*=\s*\S+;/gm, '')
|
||||
.replace(/\/\*\*\s*\*\s*@fileoverview[\s\S]*?\*\/\s*/g, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*[A-Za-z_][A-Za-z0-9_.]*\.assert\([^\n]*\);[^\n]*/g, '');
|
||||
}
|
||||
}
|
||||
|
|
@ -288,8 +288,8 @@ module.exports = function(grunt) {
|
|||
.replace(/^[ \t]*var\s+\S+\s*=\s*require\((['"]).*?\1\);/gm, '')
|
||||
.replace(/^[ \t]*(if\s+\(NODE\)\s*|)module\.exports\s*=\s*\S+;/gm, '')
|
||||
.replace(/\/\*\*\s*\*\s*@fileoverview[\s\S]*?\*\/\s*/g, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*(\{[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(NODE\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*if\s*\(typeof\s+module\s*!==\s*(['"])undefined\1\)\s*({[^}]*}|[^\n]*)(\n|$)/gm, '')
|
||||
.replace(/[ \t]*[A-Za-z_][A-Za-z0-9_.]*\.assert\([^\n]*\);[^\n]*/g, '');
|
||||
}
|
||||
}
|
||||
|
|
@ -630,7 +630,7 @@ module.exports = function(grunt) {
|
|||
{
|
||||
cwd: "versions/pcx86/<%= pkg.version %>/",
|
||||
src: ["pcx86.js", "pcx86-dbg.js", "components.css", "components.xsl"],
|
||||
dest: "docs/pcx86/examples/",
|
||||
dest: "apps/pcx86/examples/",
|
||||
expand: true
|
||||
}
|
||||
],
|
||||
|
|
@ -706,7 +706,7 @@ module.exports = function(grunt) {
|
|||
args: []
|
||||
},
|
||||
"zip-examples": {
|
||||
options: {cwd: "docs/pcx86/examples"},
|
||||
options: {cwd: "apps/pcx86/examples"},
|
||||
cmd: "./zip.sh",
|
||||
args: ["v" + pkg.version + ".zip"]
|
||||
}
|
||||
|
|
|
|||
29
README.md
29
README.md
|
|
@ -87,7 +87,7 @@ Developer Notes
|
|||
|
||||
The [PCjs repository](https://github.com/jeffpar/pcjs) on GitHub contains everything needed to run PCjs
|
||||
computer simulations. All the PCjs emulators run in any modern web browser, with or without a web server,
|
||||
and examples are provided for both [local](/docs/pcx86/examples/) and [remote](http://www.pcjs.org/) operation.
|
||||
and examples are provided for both [local](/apps/pcx86/examples/) and [remote](http://www.pcjs.org/) operation.
|
||||
|
||||
The project includes:
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ The project includes:
|
|||
- Custom Node modules used by the web server ([HTMLOut](modules/htmlout/), [MarkOut](modules/markout/), [DiskDump](modules/diskdump/), [FileDump](modules/filedump/))
|
||||
- A variety of IBM PC and C1P configuration and resource files (see [/apps](apps/), [/devices](devices/) and [/disks](disks/))
|
||||
- The [PCx86](modules/pcx86/), [PC8080](modules/pc8080/), and [C1Pjs](modules/c1pjs/) client applications, along with "compiled" [versions](/versions/)
|
||||
- A smattering of [PCx86](docs/pcx86/) and [C1Pjs](docs/c1pjs/) documentation, along with [blog posts](https://github.com/jeffpar/pcjs/tree/gh-pages/_posts), related [publications](pubs/) and more
|
||||
- A smattering of [PCx86](docs/pcx86/) and [C1Pjs](docs/c1pjs/) documentation, along with [blog posts](_posts/), related [publications](pubs/) and more
|
||||
|
||||
The bundled web server is not strictly required. Any web server (Node, Apache, Nginx, etc) that can serve the necessary
|
||||
JavaScript files to your browser will work. However, instructions for doing that are beyond the scope of this introduction.
|
||||
|
|
@ -103,7 +103,7 @@ JavaScript files to your browser will work. However, instructions for doing tha
|
|||
In fact, you can run PCjs simulations without a web server at all, using the "file:" protocol instead of "http:".
|
||||
However, most of the machine configurations require additional resource files (ROMs, disk images, etc), which are
|
||||
included in the project, but unless all the resource files are moved into a single directory (as they are in these
|
||||
[Demos](/docs/pcx86/examples/)), your browser will probably be unable to load all of them, due to security restrictions.
|
||||
[Examples](/apps/pcx86/examples/)), your browser will probably be unable to load all of them, due to security restrictions.
|
||||
Using the bundled web server is the preferred solution.
|
||||
|
||||
The project includes a large selection of disk images, and a powerful [DiskDump](modules/diskdump/) utility that
|
||||
|
|
@ -149,7 +149,7 @@ quintessential "stuck in the past" project), but there's also no urgency to upda
|
|||
### Installing PCjs with Jekyll
|
||||
|
||||
PCjs can also be used with [Jekyll](http://jekyllrb.com) and the Ruby WEBrick web server, now that a
|
||||
*[gh-pages](https://github.com/jeffpar/pcjs/tree/gh-pages)* branch has been created to work with
|
||||
*[jekyll](https://github.com/jeffpar/pcjs/tree/jekyll)* branch has been created to work with
|
||||
[GitHub Pages](https://pages.github.com). This is how the project is currently set up at [pcjs.org](http://www.pcjs.org/).
|
||||
|
||||
This isn't going to be a Jekyll "How To" guide, because that would unnecessarily repeat all the information available
|
||||
|
|
@ -160,7 +160,7 @@ To install Jekyll for use with PCjs:
|
|||
|
||||
1. Install Ruby (on OS X, it should already be installed)
|
||||
2. Install Bundler (on OS X, run `sudo gem install bundler`)
|
||||
3. Checkout the *gh-pages* branch, since only that branch contains all the Jekyll-related files
|
||||
3. Checkout the *jekyll* branch, since only that branch contains all the Jekyll-related files
|
||||
4. Create a **Gemfile** containing `gem 'github-pages'` (this is already checked in)
|
||||
5. Run `bundle install` (GitHub Pages alternatively suggests: `bundle exec jekyll build --safe`)
|
||||
6. Run `bundle exec jekyll serve` to start the web server
|
||||
|
|
@ -170,7 +170,7 @@ Now open a web browser and go to `http://localhost:4000/`. You're done!
|
|||
Some useful Jekyll server options include:
|
||||
|
||||
bundle exec jekyll serve --host=0.0.0.0 --config _config.yml,_developer.yml
|
||||
|
||||
|
||||
The *--host* option makes it possible to access the web server from other devices on your local network;
|
||||
for example, you may want to run PCjs on your iPhone, iPad, or other wireless device. And by adding **_developer.yml**,
|
||||
you can override the Jekyll configuration defaults in **_config.yml**. Using development (non-production) settings in
|
||||
|
|
@ -182,9 +182,9 @@ more gems to **Gemfile** (eg, "jekyll-sitemap"), running `jekyll serve` may trig
|
|||
`bundle exec jekyll serve` should always work.
|
||||
|
||||
Don't see any YML files in the root of your project? You probably forgot to switch to the
|
||||
*[gh-pages](https://github.com/jeffpar/pcjs/tree/gh-pages)* branch:
|
||||
*[jekyll](https://github.com/jeffpar/pcjs/tree/jekyll)* branch:
|
||||
|
||||
git checkout gh-pages
|
||||
git checkout jekyll
|
||||
|
||||
Last but not least, run `bundle update` periodically to keep Jekyll up-to-date.
|
||||
|
||||
|
|
@ -213,9 +213,9 @@ To ensure consistent compilation results, a copy of the Closure Compiler has bee
|
|||
commands to confirm that everything is working properly:
|
||||
|
||||
java -version
|
||||
|
||||
|
||||
which should report a version >= 1.7; eg:
|
||||
|
||||
|
||||
java version "1.7.0_67"
|
||||
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
|
||||
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
|
||||
|
|
@ -223,7 +223,7 @@ which should report a version >= 1.7; eg:
|
|||
Then run:
|
||||
|
||||
java -jar bin/compiler.jar --version
|
||||
|
||||
|
||||
which should report:
|
||||
|
||||
Closure Compiler (http://github.com/google/closure-compiler)
|
||||
|
|
@ -271,7 +271,7 @@ if the folder contains a machine XML file, that is embedded as well.
|
|||
|
||||
To work well with both the Node and Jekyll web servers, all Markdown files containing one or more embedded machines
|
||||
should contain a Jekyll "Front Matter" header that describes the machines. For example, here's the header from the
|
||||
pcjs.org home page ([index.md](https://github.com/jeffpar/pcjs/blob/gh-pages/index.md)):
|
||||
pcjs.org home page ([index.md](https://github.com/jeffpar/pcjs/blob/jekyll/index.md)):
|
||||
|
||||
---
|
||||
layout: page
|
||||
|
|
@ -294,7 +294,7 @@ Then the following lines are inserted at the points where the machines should ap
|
|||
{% include machine.html id="demoC1P" %}
|
||||
|
||||
For more information on all the machine options supported in a Markdown file, see the project's Jekyll include file
|
||||
[machine-engines.html](https://github.com/jeffpar/pcjs/blob/gh-pages/_includes/machine-engines.html).
|
||||
[machine-engines.html](https://github.com/jeffpar/pcjs/blob/jekyll/_includes/machine-engines.html).
|
||||
|
||||
### From The Command-Line
|
||||
|
||||
|
|
@ -420,7 +420,8 @@ Updating PCjs
|
|||
|
||||
To start developing features for a new version of PCjs, here are the recommended steps:
|
||||
|
||||
1. Change the version number in the root [package.json](package.json) (and [_config.yml](https://github.com/jeffpar/pcjs/blob/gh-pages/_config.yml))
|
||||
1. Change the version number in the root [package.json](package.json)
|
||||
(and [_config.yml](https://github.com/jeffpar/pcjs/blob/jekyll/_config.yml))
|
||||
2. Run the "grunt promote" task to bump the version in all the machine XML files
|
||||
3. Make changes
|
||||
4. Run "grunt" to build new versions of the apps (eg, "/versions/pcx86/1.x.x/pcx86.js")
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ are simple XML files that describe a piece of software (an application, an opera
|
|||
link to a PCjs machine configuration capable of running the software, along with a "ready-to-run" machine state file.
|
||||
Conversely, a PCjs machine XML file can refer back to the manifest, to obtain a list of disk images.
|
||||
|
||||
Here are some [Demos](/apps/pc/) of "ready-to-run" apps on [PCjs](/docs/about/).
|
||||
Here are some [Demos](/apps/pcx86/) of "ready-to-run" apps on [PCjs](/docs/about/).
|
||||
|
||||
There have been lots of server-side changes recently, including API improvements that make it easy (well, *easier*)
|
||||
to dynamically create diskette images from a list of files, or even an entire folder (including all subfolders),
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ permalink: /blog/2014/08/01/
|
|||
As part of an ongoing effort to make classic PC technical literature more accessible, I just finished
|
||||
scanning and posting the 12 issues of [PC Tech Journal](/pubs/pc/magazines/pctj/) from 1987.
|
||||
|
||||

|
||||

|
||||
|
||||
Future PC Tech Journal postings will include:
|
||||
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ Aside from the additional DMA Controller, other major new motherboard components
|
|||
The Keyboard Controller and Real-Time Clock/CMOS components required the most tinkering to pass through the ROM BIOS
|
||||
gauntlet.
|
||||
|
||||
For example, at one point, the BIOS ("[TEST.21](http://archive.pcjs.org/pubs/pc/reference/ibm/5170/techref/1984-03/pages/IBM-5170-TECHREF 202.pdf)")
|
||||
reset the keyboard ("[KBD_RESET](http://archive.pcjs.org/pubs/pc/reference/ibm/5170/techref/1984-03/pages/IBM-5170-TECHREF 212.pdf)"),
|
||||
For example, at one point, the BIOS ("[TEST.21](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/pc/reference/ibm/5170/techref/1984-03/pages/IBM-5170-TECHREF 202.pdf)")
|
||||
reset the keyboard ("[KBD_RESET](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/pc/reference/ibm/5170/techref/1984-03/pages/IBM-5170-TECHREF 212.pdf)"),
|
||||
which unmasked the keyboard IRQ and waited for an interrupt, using a loop where CX was initialized to zero and then
|
||||
decremented until either CX wrapped around to zero again *or* an interrupt occurred. The "TEST.21" code then assumed
|
||||
that if "KBD_RESET" returned zero in CX, no interrupt had occurred.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ however, even though it identifies itself as a 1987 issue, the editorial index o
|
|||
October 1986, so "technically" it should be considered a late 1986 issue. It is officially Vol. 4, No. 13, which,
|
||||
numerically, puts it squarely between the December 1986 and January 1987 issues.
|
||||
|
||||
[<img src="http://archive.pcjs.org/pubs/pc/magazines/pctj/PCTJ-1983-07/thumbs/PCTJ-1983-07 1.jpeg" width="200" height="260" alt="PC Tech Journal, July-August 1983"/>](/pubs/pc/magazines/pctj/)
|
||||
[<img src="https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/pc/magazines/pctj/PCTJ-1983-07/thumbs/PCTJ-1983-07 1.jpeg" width="200" height="260" alt="PC Tech Journal, July-August 1983"/>](/pubs/pc/magazines/pctj/)
|
||||
|
||||
Happy reading!
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ modes commonly used on the IBM VGA. Here's that table:
|
|||
ATC[0x12]: PLANES 0x0F 0x0F 0x0F 0x0F 0x03 0x03 0x01 0x0F 0x0F 0x0F 0x0F 0x0F
|
||||
ATC[0x13]: HPAN 0x08 0x08 0x08 0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
|
||||
|
||||
In addition, I've created a [VGA Tests](/tests/pc/vga/) directory to hold VGA test and sample code that PCjs can
|
||||
In addition, I've created a [VGA Tests](/tests/pcx86/vga/) directory to hold VGA test and sample code that PCjs can
|
||||
now successfully run (for the most part). See that directory for more details.
|
||||
|
||||
*[@jeffpar](http://twitter.com/jeffpar)*
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ machines:
|
|||
debugger: true
|
||||
state: /disks/pcx86/windows/win95/4.00.950/deskpro386.json
|
||||
config: /devices/pcx86/machine/compaq/deskpro386/vga/4096kb/debugger/machine.xml
|
||||
drives: '[{name:"68Mb Hard Disk",type:4,path:"http://archive.pcjs.org/disks/pcx86/fixed/68mb/win95.json"}]'
|
||||
drives: '[{name:"68Mb Hard Disk",type:4,path:"https://s3-us-west-2.amazonaws.com/archive.pcjs.org/disks/pcx86/fixed/68mb/win95.json"}]'
|
||||
autoMount:
|
||||
A:
|
||||
name: None
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ machines:
|
|||
type: pcx86
|
||||
state: /disks/pcx86/windows/win95/4.00.950/deskpro386.json
|
||||
config: /devices/pcx86/machine/compaq/deskpro386/vga/4096kb/machine.xml
|
||||
drives: '[{name:"68Mb Hard Disk",type:4,path:"http://archive.pcjs.org/disks/pcx86/fixed/68mb/win95.json"}]'
|
||||
drives: '[{name:"68Mb Hard Disk",type:4,path:"https://s3-us-west-2.amazonaws.com/archive.pcjs.org/disks/pcx86/fixed/68mb/win95.json"}]'
|
||||
autoMount:
|
||||
A:
|
||||
name: None
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ permalink: /blog/2016/11/13/
|
|||
|
||||
Last week, I ran PDPjs through a series of early [PDP-11 Paper Tape Diagnostics](/apps/pdp11/tapes/diags/).
|
||||
These tests were originally released in 1970 and are documented in such DEC publications as the
|
||||
[MAINDEC USER REFERENCE MANUAL](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQAB-B-D_User_Reference_Manual_Oct73.pdf)
|
||||
[MAINDEC USER REFERENCE MANUAL](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQAB-B-D_User_Reference_Manual_Oct73.pdf)
|
||||
(October 1973).
|
||||
|
||||
[Tests 1-12](/apps/pdp11/tapes/diags/#tests-1-12) (MAINDEC-11-D0AA-PB through MAINDEC-11-D0LA-PB)
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ Here's a sample run, from a macOS Terminal window:
|
|||
License: GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
||||
Portions adapted from the PDP-11/70 Emulator v1.4 by Paul Nankervis <paulnank@hotmail.com>
|
||||
bus: 256Kb RAM at 000000
|
||||
Net.getResource("http://archive.pcjs.org/disks/dec/rk03/RK03-XXDP.json"): unimplemented
|
||||
Net.getResource("https://s3-us-west-2.amazonaws.com/archive.pcjs.org/disks/dec/rk03/RK03-XXDP.json"): unimplemented
|
||||
notice: Unable to load disk "RK03-XXDP" (error -1: RK03-XXDP.json)
|
||||
Computer object created: test1170.computer
|
||||
console connected to machine (alt-r for REPL prompt, alt-x to exit)
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ Give it a try!
|
|||
|
||||
### MMU Relocation Test
|
||||
|
||||
From DEC's [PDP-11/70 Maintenance Service Guide](http://archive.pcjs.org/pubs/dec/pdp11/1170/PDP1170_Maintenance_Service_Guide_Apr88.pdf),
|
||||
From DEC's [PDP-11/70 Maintenance Service Guide](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/1170/PDP1170_Maintenance_Service_Guide_Apr88.pdf),
|
||||
Chapter 4:
|
||||
|
||||
Use the following toggle-in to verify the correct operation of Memory Management Relocation.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ the [PDP-10](https://en.wikipedia.org/wiki/PDP-10#Cancellation_and_influence).
|
|||
|
||||
Having never used a real DEC PDP-10, I've had a steep learning curve creating a [PDP-10 Emulator](/modules/pdp10/).
|
||||
So far, the only [PDP-10 Hardware Documentation](/pubs/dec/pdp10/) I've read (or rather, skimmed) is the
|
||||
[PDP-10 System Reference Manual (1968)](http://archive.pcjs.org/pubs/dec/pdp10/ka10/DEC-10-HGAA-D_PDP-10_System_Reference_Manual_May1968.pdf).
|
||||
[PDP-10 System Reference Manual (1968)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/ka10/DEC-10-HGAA-D_PDP-10_System_Reference_Manual_May1968.pdf).
|
||||
|
||||
To make it easier to create and run some simple [PDP-10 Opcode Tests](/apps/pdp10/tests/opcodes/), most of my initial development
|
||||
efforts have centered on the built-in PDP-10 Debugger. In addition to the usual disassembler capabilities, I've also included
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ it's a right-shift. Here are some examples:
|
|||
>> print -1B70
|
||||
0o000000000001 1.
|
||||
|
||||
And as the [MACRO-10 Assembler Programmer's Reference Manual (June 1972)](http://archive.pcjs.org/pubs/dec/pdp10/tops10/Macro_Assembler_Reference_Manual-Jun72.pdf),
|
||||
And as the [MACRO-10 Assembler Programmer's Reference Manual (June 1972)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/Macro_Assembler_Reference_Manual-Jun72.pdf),
|
||||
p. 1-17, points out, all of the following "binary shifting" expressions are equivalent:
|
||||
|
||||
>> print 10B32
|
||||
|
|
@ -220,7 +220,7 @@ and processing them at the end of the first pass. Well, since ZZ is a symbol th
|
|||
became clear that I needed to process literals immediately. This meant creating a separate assembly scope while processing each
|
||||
literal; in fact, it meant a stack of scopes, in case literals contained nested literals.
|
||||
|
||||
As the [MACRO-10 Assembler Programmer's Reference Manual (April 1978)](http://archive.pcjs.org/pubs/dec/pdp10/tops10/Macro_Assembler_Reference_Manual-Apr78.pdf)
|
||||
As the [MACRO-10 Assembler Programmer's Reference Manual (April 1978)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/Macro_Assembler_Reference_Manual-Apr78.pdf)
|
||||
explains:
|
||||
|
||||
A literal can include any term, symbol, expression, or statement, but
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ It turned out that that archive was a rabbit hole I could not *not* go down.
|
|||
|
||||
First, I collected all the other PC Tech Journal ZIP archives there (from December 1985 through January 1989),
|
||||
recreated them as a set of [PC Tech Journal Disks](/disks/pcx86/shareware/pctj/), and added them to the
|
||||
[PCjs Disk Library](/disks/pcx86/), so now you can "Load" and "Save" them in any [PCjs Machine](devices/pcx86/machine/).
|
||||
[PCjs Disk Library](/disks/pcx86/), so now you can "Load" and "Save" them in any [PCjs Machine](/devices/pcx86/machine/).
|
||||
|
||||
Next, since I was also a fan of PC Magazine back in the day, I decided to do the same for all the PC Magazine ZIP
|
||||
archives. So now there's a set of [PC Magazine Disks](/disks/pcx86/shareware/pcmag/) you can play with as well.
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
layout: post
|
||||
title: Flickery Fakery
|
||||
date: 2017-07-15 22:00:00
|
||||
title: Flicker Fakery
|
||||
date: 2017-07-15 10:00:00
|
||||
permalink: /blog/2017/07/15/
|
||||
---
|
||||
|
||||
For years, one of my pet peeves about PC emulators has been their obsession with raw speed, and how hard they
|
||||
One of my long-standing pet peeves about PC emulators has been their obsession with raw speed, and how hard they
|
||||
try to squeeze every last drop of performance out of their instruction execution loop, on the assumption that
|
||||
everyone wants an an 8088 that runs at, say, 500Mhz, as opposed to the 4.77Mhz of the original IBM PC.
|
||||
everyone wants an 8088 that runs at, say, 500Mhz, as opposed to the stately 4.77Mhz of the original IBM PC.
|
||||
|
||||
And sure, it might be nice if that [Lotus 1-2-3](/disks/pcx86/apps/lotus/123/1as/) spreadsheet recalculated instantly,
|
||||
instead of the several seconds that it originally took. But most of the time, such a dramatic difference in speed is
|
||||
|
|
@ -17,12 +17,12 @@ no idea what just scrolled off the top of the screen. And many games become unp
|
|||
run on *machines of the day*, not machines of the future running hundreds of times faster.
|
||||
|
||||
Emulators like [DOSBox](https://github.com/Henne/dosbox-svn), which has since been ported to
|
||||
[EM-DOSBOX](https://github.com/dreamlayers/em-dosbox) for the [Internet Archive's](https://archive.org)
|
||||
[EM-DOSBox](https://github.com/dreamlayers/em-dosbox) for the [Internet Archive's](https://archive.org)
|
||||
[MS-DOS Collection](https://archive.org/details/softwarelibrary_msdos), do offer some crude controls to "throttle"
|
||||
the emulated CPU's speed, but they provide no feedback: you don't know what the current speed is or what the target
|
||||
speed should be. Even a "professional" emulator like Oracle's [VirtualBox](https://www.virtualbox.org/) offers
|
||||
only very limited speed control: a processor "Execution Cap" that's defined as a percentage, which turns out to be
|
||||
much too granular to recreate any particular CPU speed.
|
||||
speed should be. Even professional emulators like Oracle's [VirtualBox](https://www.virtualbox.org/) offer
|
||||
only very limited speed controls, such as a processor "Execution Cap", which is defined as a percentage of the
|
||||
emulator's maximum speed (whatever that may be), and which is too granular to recreate any specific CPU speed.
|
||||
|
||||
### Visual Veracity
|
||||
|
||||
|
|
@ -37,9 +37,9 @@ of apps. But many emulators don't bother with:
|
|||
|
||||
And last, and maybe also least, **FLICKERING**.
|
||||
|
||||
Yes, the beloved flicker of the original IBM Color Graphics Adapter, or CGA. And I'm not talking about the
|
||||
Yes, the beloved flicker of the original IBM Color Graphics Adapter (CGA). And I'm not talking about the
|
||||
barely perceptible flicker produced by the CGA monitor's 60Hz refresh rate. That flicker was tolerable. In fact,
|
||||
many people who didn't need either color or graphics would opt for IBM's Monochrome Display Adapter, or MDA, because
|
||||
many people who didn't need either color or graphics would opt for IBM's Monochrome Display Adapter (MDA), because
|
||||
the green phosphor of IBM's monochrome monitor had such high persistence that the 60Hz refresh rate was virtually
|
||||
imperceptible.
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ starts reading from the top of video memory after it reaches the bottom. So all
|
|||
new lines at the top of the video memory again. If IBM had thought of that trick 5 years earlier, back in 1981,
|
||||
think of all the years of shared flicker-grief that could have been avoided!
|
||||
|
||||
Today, in honor of all that flickering, I'm pleased to announce that [PCx86](devices/pcx86/machine/), one of the
|
||||
Today, in honor of all that flickering, I'm pleased to announce that [PCx86](/devices/pcx86/machine/), one of the
|
||||
PCjs emulators I'm always trying to improve, now offers **FLICKERING** on all IBM PC Color Graphics configurations.
|
||||
If you feel the need to override it, you can add *flicker=0* to the URL of your favorite machine; e.g.:
|
||||
|
||||
260
_posts/2017-07-21-retroreview-speedup.md
Normal file
260
_posts/2017-07-21-retroreview-speedup.md
Normal file
|
|
@ -0,0 +1,260 @@
|
|||
---
|
||||
layout: post
|
||||
title: "RetroReview: SPEEDUP"
|
||||
date: 2017-07-21 10:00:00
|
||||
permalink: /blog/2017/07/21/
|
||||
machines:
|
||||
- id: pcsig08
|
||||
type: pcx86
|
||||
resume: 1
|
||||
config: /disks/pcx86/shareware/pcsig08/debugger/machine.xml
|
||||
autoMount:
|
||||
A:
|
||||
name: "PC-DOS 1.00"
|
||||
B:
|
||||
name: "PCSIG08: DISK0011"
|
||||
---
|
||||
|
||||
While browsing the June/July 1982 issue of PC Magazine (Vol. 1, No. 3), I found the following
|
||||
[User-To-User](https://books.google.com/books?id=w_OhaFDePS4C&lpg=RA3-PA151&ots=cXovjlDNc8&pg=RA3-PA151#v=onepage&q&f=false)
|
||||
article about an intriguing little program called `SPEEDUP`. Unfortunately, the first time I tried it,
|
||||
it immediately hung my test machine. Here's the original article, followed by my analysis of the program
|
||||
and why it hung.
|
||||
|
||||
> ### Disk Speedup
|
||||
|
||||
> The undisputed celebrity of this month’s user tips is SPEEDUP--14 lines of BASIC program code that will make your
|
||||
disk drives perform their chores in half the time. The program popped up on Wes Merchant's Annandale, Virginia IBM
|
||||
Bulletin Board Service (see Club News). It was sent there by Chris Carson of Aurora, Colorado, who found the program
|
||||
circulating in the Denver area. Good news travels fast. Here it is:
|
||||
|
||||
05 REM SPEEDUP DISK-ZAP
|
||||
10 FOR I=1 TO 37:READ N:C=C+N
|
||||
15 NEXT:READ N:IF N<>C THEN 40
|
||||
20 RESTORE:OPEN "R",1,"SPEEDUP.COM",1
|
||||
25 FIELD 1,1 AS N$:FOR I=1 TO 37
|
||||
30 READ N:LSET N$=CHR$(N):PUT 1
|
||||
35 NEXT:CLOSE:PRINT "Created":END
|
||||
40 PRINT "** ERROR - Verify Data **":END
|
||||
45 DATA 186,18,0,184,30,37,205,33,139
|
||||
50 DATA 250,190,26,1,185,11,0,243,164
|
||||
55 DATA 51,192,205,19,139,215,205,39
|
||||
60 DATA 223,2,37,2,8,42,255,80,246,0,4
|
||||
65 DATA 3866
|
||||
70 END
|
||||
|
||||
> Even if you've never touched BASIC, the gem is too good to pass up. To create the program, place the PC-DOS
|
||||
disk into your A: drive and load BASIC by typing *BASIC* and hitting *Enter*. Then type each of the lines above,
|
||||
exactly as written. Hit *Enter* after each line. When you've *Enter* following line 70, hit the *F2* key to run
|
||||
this short program.
|
||||
|
||||
> If you get a message saying "\*\* ERROR - Verify Data \*\*" then you've made a mistake copying the numbers in line
|
||||
45 through 60. Otherwise, you will have created a new file on your PC-DOS disk called SPEEDUP.COM.
|
||||
|
||||
> Go back into PC-DOS by typing *system* and *Enter* and run the new program by typing *speedup* and *Enter*. Now
|
||||
load and run any program or PC-DOS utility and be amazed. Your disk drives will miraculously zip along at almost
|
||||
double speed, singing instead of groaning.
|
||||
|
||||
> Exactly how much faster? Well, for example, to format a new disk with the /S option: 25 seconds instead of 45
|
||||
seconds. To copy the PC-DOS disk via the "DISKCOPY" command: 42 seconds instead of 83. To copy the entire PC-DOS
|
||||
disk with "COPY \*.\*": 139 seconds instead of 206. If you're a speed and performance fanatic (who isn't), you've
|
||||
just made up to a 100 percent improvement in your disk operations.
|
||||
|
||||
> According to Chris Carson, the program works its magic by reloading the diskette parameters table in PC-DOS.
|
||||
IBM programmed the step rate for the machine's Tandon disk drives at eight milliseconds; SPEEDUP shortens this to
|
||||
six, still within the Tandon-rated minimum of five milliseconds. The program also sets the head settle rate to
|
||||
zero milliseconds, which is the Tandon minimum rating (IBM's conservative default setting is 25).
|
||||
|
||||
Fortunately, we don't have to type the program in. If you skim our archived copy of the
|
||||
[PC-SIG Library 8th Edition CD-ROM (April 1990)](/disks/pcx86/shareware/pcsig08/), you'll see `SPEEDUP.BAS`
|
||||
in the [Directory of PCSIG08: DISK0011](/disks/pcx86/shareware/pcsig08/#directory-of-pcsig08-disk0011).
|
||||
|
||||
So, fire up the [PC-SIG Machine (with Debugger)](/disks/pcx86/shareware/pcsig08/debugger/). Or use the machine
|
||||
below, which has conveniently pre-loaded "PC-DOS 1.00" in drive A and "PCSIG80: DISK0011" in drive B.
|
||||
|
||||
At the DOS prompt, run `BASIC` and type `LOAD "B:SPEEDUP.BAS"`.
|
||||
|
||||
{% include machine.html id="pcsig08" %}
|
||||
|
||||
When you `LIST` the program to the serial port:
|
||||
|
||||
LIST,"COM1:"
|
||||
|
||||
you'll see that the program is virtually identical to the PC Magazine listing:
|
||||
|
||||
10 FOR I = 1 TO 37
|
||||
11 READ N
|
||||
12 C = C + N
|
||||
15 NEXT
|
||||
16 READ N
|
||||
17 IF N <> C THEN 40
|
||||
20 RESTORE
|
||||
21 OPEN "R",1,"SPEEDUP.COM",1
|
||||
25 FIELD 1 , 1 AS N$
|
||||
26 FOR I = 1 TO 37
|
||||
30 READ N
|
||||
31 LSET N$ = CHR$(N)
|
||||
32 PUT 1
|
||||
35 NEXT
|
||||
36 CLOSE
|
||||
37 PRINT "created"
|
||||
38 END
|
||||
40 PRINT "** error. Verify DATA"
|
||||
41 END
|
||||
45 DATA 186,18,0,184,30,37,205,33,139
|
||||
50 DATA 250,190,26,1,185,11,0,243,164
|
||||
55 DATA 51,192,205,19,139,215,205,39
|
||||
60 DATA 223,2,37,2,8,42,255,80,246,0,4
|
||||
65 DATA 3866
|
||||
|
||||
If you `RUN` it, it should report "created". Type `SYSTEM` to exit BASIC and then type `DIR SPEEDUP.COM`
|
||||
to verify that the program was created:
|
||||
|
||||
SPEEDUP COM 128 07-21-17
|
||||
|
||||
You'll notice that BASIC created a 128-byte file, even though it wrote only 37 bytes. This is an
|
||||
artifact of PC-DOS 1.00 and BASIC Version D1.00, which were limited to File Control Block (FCB) DOS
|
||||
functions that operated on files using 128-byte "records".
|
||||
|
||||
Alternatively, if we boot from "PC-DOS 2.00 (Disk 1)" and run BASIC Version D2.00, loading and running
|
||||
`SPEEDUP.BAS` will produce the following `SPEEDUP.COM`:
|
||||
|
||||
Volume in drive A has no label
|
||||
Directory of A:\
|
||||
|
||||
SPEEDUP COM 37 7-21-17 12:00a
|
||||
1 File(s) 30720 bytes free
|
||||
|
||||
Let's take a closer look at this 37-byte program, using the `DEBUG` program on "PC-DOS 2.00 (Disk 2)":
|
||||
|
||||
A>B:DEBUG SPEEDUP.COM
|
||||
-u100
|
||||
0913:0100 BA1200 MOV DX,0012
|
||||
0913:0103 B81E25 MOV AX,251E
|
||||
0913:0106 CD21 INT 21
|
||||
0913:0108 8BFA MOV DI,DX
|
||||
0913:010A BE1A01 MOV SI,011A
|
||||
0913:010D B90B00 MOV CX,000B
|
||||
0913:0110 F3 REPZ
|
||||
0913:0111 A4 MOVSB
|
||||
0913:0112 33C0 XOR AX,AX
|
||||
0913:0114 CD13 INT 13
|
||||
0913:0116 8BD7 MOV DX,DI
|
||||
0913:0118 CD27 INT 27
|
||||
-d 11a lb
|
||||
0913:011A DF 02 25 02 08 2A FF 50 F6 00 04
|
||||
|
||||
The program uses the DOS Set Vector function (INT 21h, AH=25h) to modify interrupt vector 1Eh (the Diskette
|
||||
Parameter Table vector) to point DS:0012, inside the program's Program Segment Prefix (PSP). It then copies
|
||||
0Bh bytes from offset 011Ah into the PSP at offset 0012h, issues a BIOS Disk Reset (INT 13h, AH=00h), and
|
||||
then executes a Terminate and Stay Resident (TSR) request (INT 27h) with DX set to 1Dh, retaining the first 12h
|
||||
bytes of the PSP plus an additional 0Bh bytes containing the new diskette parameter values.
|
||||
|
||||
Note that this TSR program doesn't actually want to retain the first 12h bytes of the PSP, but it must leave
|
||||
those bytes in place so that the program will exit correctly.
|
||||
|
||||
In PC-DOS 1.00 (August 1981), the first 12h bytes of the PSP were used as follows:
|
||||
|
||||
00h-01h 2 bytes (code) CP/M exit (always contains INT 20h)
|
||||
02h-03h 2 bytes Segment of the first byte beyond the memory allocated to the program
|
||||
04h 1 byte Reserved
|
||||
05h-09h 5 bytes (code) Far call to CP/M compatibility code within DOS
|
||||
0Ah-0Dh 4 bytes Terminate address of previous program (old INT 22h)
|
||||
0Eh-11h 4 bytes Break address of previous program (old INT 23h)
|
||||
|
||||
with bytes 12h-5Bh marked "Reserved" and the remaining PSP bytes defined as:
|
||||
|
||||
5Ch-6Bh 16 bytes Unopened Standard FCB 1
|
||||
6Ch-7Fh 20 bytes Unopened Standard FCB 2 (overwritten if FCB 1 is opened)
|
||||
80h 1 byte Number of bytes on command-line
|
||||
81h-FFh 127 bytes Command-line tail (terminated by a 0Dh)
|
||||
|
||||
NOTE: The 128 bytes at offset 80h are also used as the default DOS Disk Transfer Area (DTA).
|
||||
|
||||
In May 1982, PC-DOS 1.10 added:
|
||||
|
||||
12h-15h 4 bytes Critical error address of previous program (old INT 24h)
|
||||
16h-17h 2 bytes Parent's PSP segment (usually COMMAND.COM - internal)
|
||||
|
||||
In March 1983, PC-DOS 2.00 added:
|
||||
|
||||
18h-2Bh 20 bytes Job File Table (JFT) (internal)
|
||||
2Ch-2Dh 2 bytes Environment segment
|
||||
2Eh-31h 4 bytes SS:SP on entry to last INT 21h call (internal)
|
||||
|
||||
And in August 1984, PC-DOS 3.00 added:
|
||||
|
||||
32h-33h 2 bytes JFT size (internal)
|
||||
34h-37h 4 bytes Pointer to JFT (internal)
|
||||
|
||||
This explains why, when I first ran `SPEEDUP` on PC-DOS 2.00, it crashed. In fact, the *only* version
|
||||
of DOS that supports `SPEEDUP` is version 1.00. It crashes on all other versions of DOS because it "trashes"
|
||||
critical PSP bytes; specifically, the Parent's PSP segment at offset 16h. The author of `SPEEDUP` ignored IBM's
|
||||
warning that PSP bytes at offset 12h and higher were "reserved" and used them anyway.
|
||||
|
||||
> NOTE: Other sites, like [PC DOS Retro](https://sites.google.com/site/pcdosretro/doshist), suggest that
|
||||
the "Parent's PSP segment" at offset 16h wasn't introduced until PC-DOS 2.00, but that's incorrect. Even though
|
||||
the PC-DOS 1.10 Manual (p. E-6) mentions only the addition of the "Critical Error Exit Address" at offset 12h,
|
||||
both fields were in fact added in PC-DOS 1.10.
|
||||
|
||||
Sadly, the history of the IBM PC and DOS is littered with examples of programmers ignoring the "reserved"
|
||||
admonitions of others -- even IBM, when they designed the IBM PC to use interrupt vectors that Intel had "reserved"
|
||||
for future use. This is apparently normal human thinking: "If something isn't a problem today, then let's punt
|
||||
any foreseeable problems to future generations, because we've got more important things to do."
|
||||
|
||||
And on PC-DOS 1.00, does `SPEEDUP` actually speed things up? In the real world, it presumably did, but in
|
||||
the world of emulation, there isn't any measurable difference, because hardware features like stepping rates and
|
||||
head settling times are rarely simulated. As I suggested in my [last blog post](/blog/2017/07/15/), this is a
|
||||
degree of authenticity that all emulators should strive for, and PCjs emulators are no exception to that rule -- I
|
||||
just haven't gotten around to it yet.
|
||||
|
||||
### "IBM Updates DOS to 1.10"
|
||||
|
||||
In the very next issue of PC Magazine (August 1982), there's an article titled
|
||||
"[IBM Updates DOS to 1.10](https://books.google.com/books?id=WYnHD9WSWdAC&lpg=PA110&ots=QlUklzAI8s&dq=pc%20magazine%20%22IBM%20Updates%20DOS%20To%201.10%22&pg=PA111#v=onepage&q&f=false)"
|
||||
which includes a section on disk I/O performance and the fate of `SPEEDUP`:
|
||||
|
||||
> The speed of the disk I/O has been increased. Although IBM has not published any specific figures,
|
||||
improvement in disk access appears to be 100 percent. Using the format command as a baseline, DOS version 1.0
|
||||
formatted a single-sided diskette in 34 seconds, while DOS 1.10 formatted a single-sided diskette in 19 seconds,
|
||||
including the time necessary to provide improved specification printout upon completion of the format process.
|
||||
|
||||
> SPEEDUP.COM, a patch to DOS 1.0 that performed the same function, is no longer needed in DOS 1.10, and any
|
||||
attempt to use it in the new DOS will result in program errors or unpredictable results.
|
||||
|
||||
### Epilogue
|
||||
|
||||
There were some nice side benefits to debugging the problems uncovered by `SPEEDUP`.
|
||||
|
||||
First, when attempting to `LIST` a BASIC program to a serial port, I discovered that BASIC depends on the port
|
||||
generating a "Transmitter Holding Register Empty" interrupt after outputting each byte, and that I had never actually
|
||||
implemented that interrupt. Only the "Received Data Available" and "Modem Status" interrupts had been implemented,
|
||||
largely for serial mouse support. That has since been fixed, although "Line Status" interrupts still need to be
|
||||
implemented, along with the proper queuing of all *four* possible types of serial port interrupts.
|
||||
|
||||
NOTE: Serial I/O from DOS (ie, redirection to or from a COM port) already worked because DOS performs polled I/O
|
||||
rather than interrupt-driven I/O. Additionally, when DOS terminates a line, it outputs both CR (0Dh) and LF (0Ah)
|
||||
bytes, whereas BASIC outputs only CR; so, when a machine uses a <textarea> control for serial I/O, PCx86
|
||||
automatically adds an LF after any stand-alone CR.
|
||||
|
||||
Second, when `SPEEDUP` crashed on newer versions of DOS, an invalid stack pointer would be loaded, and I noticed
|
||||
that I had neglected to fully implement stack wrap-around on 8086/8088 processors; specifically, in the case where the
|
||||
stack pointer is *odd*.
|
||||
|
||||
Normally, when the stack pointer is *even*, it will cross the stack segment's 64Kb boundary without incident, smoothly
|
||||
auto-decrementing from 0000h to FFFEh or auto-incrementing from FFFEh to 0000h. However, when the stack pointer is
|
||||
*odd* and it reaches 0001h, the next PUSH on an 8088 must automatically store the high byte at 0000h and the low
|
||||
byte at FFFFh; similarly, when the stack pointer is FFFFh, the next POP must fetch the low byte from FFFFh and the high
|
||||
byte from 0000h.
|
||||
|
||||
Most emulators simulating an 8086/8088 (aka real-mode) actually use V86-mode, which doesn't support stack operands that
|
||||
straddle the top of the stack segment; V86-mode will throw an exception, and the machine is toast.
|
||||
|
||||
PCx86 makes more of an effort simulate real-mode, so any PUSH or POP should work properly, regardless whether the stack
|
||||
pointer is even or odd. In fact, the same is true for any real-mode 16-bit access across a 64Kb boundary, stack-based
|
||||
or otherwise. PCx86 will even execute real-mode instructions that wrap around a 64Kb boundary.
|
||||
|
||||
PCx86 does it all (except when it doesn't)!
|
||||
|
||||
*[@jeffpar](http://twitter.com/jeffpar)*
|
||||
*Jul 21, 2017*
|
||||
106
_posts/2017-08-11-dbase-iii-copy-protection-revisited.md
Normal file
106
_posts/2017-08-11-dbase-iii-copy-protection-revisited.md
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
---
|
||||
layout: post
|
||||
title: dBASE III Copy Protection Revisited
|
||||
date: 2017-08-11 10:00:00
|
||||
permalink: /blog/2017/08/11/
|
||||
---
|
||||
|
||||
One of the earliest tasks I remember tackling on an IBM PC was a basically a favor for my father-in-law, Tom Estelita.
|
||||
In 1984, he had purchased a copy of dBASE III and had become frustrated by its copy-protection. The previous version,
|
||||
dBASE II, had no such protection, which probably added to his frustration. At the time, he was running his own tiny
|
||||
software company, Radix 2 Software, and he certainly wasn't interested in redistributing dBASE III -- he just wanted to
|
||||
be able to back-up his software and switch between a handful of machines without the hassle or worry of relying on a
|
||||
single fragile copy-protected diskette.
|
||||
|
||||
At that time, my day job was writing PDP-11 application software, but I really wanted to learn more about the IBM PC,
|
||||
and I had done work for Tom in the past (writing BASIC accounting software on CP/M-based machines), so he made me a
|
||||
deal: he would loan me a floppy-based IBM PC and some IBM reference manuals, in exchange for attempting to crack dBASE
|
||||
III's copy-protection.
|
||||
|
||||
I have no recollection of how feasible I thought this challenge was, but I'm sure I jumped at the opportunity.
|
||||
Perhaps my thinking was that, after all, it's just software, so how hard could it be. In any case, I apparently took
|
||||
the challenge very seriously, because I also made a lot of notes.
|
||||
|
||||
I recently found [those notes](/docs/personal/#dbase-iii-copy-protection), along with copies of the
|
||||
[dBASE III disks](/disks/pcx86/apps/other/dbase3/1.0/) used. Unfortunately, all the disks contained was my *patched*
|
||||
(unlocked) version of `DBASE.EXE`, and for the sake of a complete archive, I wanted the *unpatched* (locked) version as
|
||||
well. Fortunately, my patching notes also show all the original bytes, so I reproduced the original file by reversing
|
||||
the patching process, using PCjs:
|
||||
|
||||
Loading /disks/pcx86/apps/other/dbase3/1.0/DBIII-100-UNLOCKED.json.......
|
||||
FDC: Mounted diskette "dBASE III 1.0 (Unlocked)" in drive A
|
||||
|
||||
A>dir
|
||||
|
||||
Volume in drive A has no label
|
||||
Directory of A:\
|
||||
|
||||
DBASE EXE 112720 9-28-84 3:46p
|
||||
DBASE OVL 147456 6-26-84 5:36p
|
||||
HELP DBS 53760 6-26-84 5:36p
|
||||
ASSIST HLP 15223 6-26-84 5:37p
|
||||
READ ME 4224 6-26-84 5:37p
|
||||
CONFIG SYS 22 6-26-84 5:37p
|
||||
6 File(s) 15360 bytes free
|
||||
|
||||
A>ren dbase.exe dbase.tmp
|
||||
|
||||
A>b:debug dbase.tmp
|
||||
-d 5f4 l4
|
||||
08FF:05F4 25 39 4F 45 %9OE
|
||||
-e 5f4
|
||||
08FF:05F4 25. 39.e3 4F.c4 45.eb
|
||||
-d a44
|
||||
08FF:0A44 2D 26 AB 36-38 06 9C 17 1A 54 A5 4B -&+68....T%K
|
||||
08FF:0A50 E8 41 4C E0 AF 68 0B 07-6E 07 80 16 1B B6 BF B7 hAL`/h..n....6?7
|
||||
08FF:0A60 4C 6B C2 39 26 DC 97 BF-3B CE C0 EB 4F BB B3 C2 LkB9&\.?;N@kO;3B
|
||||
08FF:0A70 27 A6 90 75 F4 AF 68 93-DF 62 43 CD B7 65 AD 34 '&.ut/h._bCM7e-4
|
||||
08FF:0A80 11 B0 85 93 29 A2 9B A4-42 74 A6 84 24 7C 17 4C .0..)".$Bt&.$|.L
|
||||
08FF:0A90 7B 5E F9 2C 66 0E 4E 27-B4 2F 50 4E 9C 76 CE D6 {^y,f.N'4/PN.vNV
|
||||
08FF:0AA0 DB 51 21 D1 2C 4B 3B 73-48 EE 8E 6A 9C D7 E2 4F [Q!Q,K;sHn.j.WbO
|
||||
08FF:0AB0 FA B6 10 24 28 A0 45 C8-50 36 9A 5E 9F C4 A1 EC z6.$( EHP6.^.D!l
|
||||
08FF:0AC0 A2 51 AA B8 "Q*8
|
||||
-e a44
|
||||
08FF:0A44 2D.b0 26.5e AB.e6 36.af
|
||||
08FF:0A48 38.1e 06.f1 9C.41 17.31 1A.73 54.59 A5.c1 4B.a4
|
||||
08FF:0A50 E8.0e 41.cd 4C.63 E0.fe AF.c1 68.39 0B.0b 07.62
|
||||
08FF:0A58 6E.60 07.93 80.be 16.cf 1B.08 B6.f8 BF.4e B7.56
|
||||
08FF:0A60 4C.53 6B.d3 C2.5d 39.4f 26.a3 DC.9a 97.ae BF.14
|
||||
08FF:0A68 3B.c4 CE.7b C0.dc EB.e4 4F.ee BB.45 B3.f9 C2.ab
|
||||
08FF:0A70 27.3f A6.15 90.56 75.3d F4.5b AF.a3 68.a1 93.20
|
||||
08FF:0A78 DF.ad 62.98 43.be CD.02 B7.c8 65.63 AD.df 34.c3
|
||||
08FF:0A80 11.e0 B0.2f 85.26 93.af 29.31 A2.29 9B.40 A4.4f
|
||||
08FF:0A88 42.86 74.98 A6.90 84.fc 24.d6 7C.76 17.e3 4C.e5
|
||||
08FF:0A90 7B.f1 5E.61 F9.08 2C.8a 66.20 0E.f7 4E.37 27.64
|
||||
08FF:0A98 B4.4f 2F.e2
|
||||
-w
|
||||
Writing 1B850 bytes
|
||||
-q
|
||||
|
||||
A>ren dbase.tmp dbase.exe
|
||||
|
||||
A>dir
|
||||
|
||||
Volume in drive A has no label
|
||||
Directory of A:\
|
||||
|
||||
DBASE EXE 112720 8-11-17 9:51a
|
||||
DBASE OVL 147456 6-26-84 5:36p
|
||||
HELP DBS 53760 6-26-84 5:36p
|
||||
ASSIST HLP 15223 6-26-84 5:37p
|
||||
READ ME 4224 6-26-84 5:37p
|
||||
CONFIG SYS 22 6-26-84 5:37p
|
||||
6 File(s) 15360 bytes free
|
||||
|
||||
saving diskette /disks/pcx86/apps/other/dbase3/1.0/DBIII-100-UNLOCKED.json...
|
||||
|
||||
I haven't examined this patch again (yet), but I will admit that it seems rather lengthy. Usually one strives for
|
||||
a very small, surgically precise patch that's more on the order of 3 or 4 bytes, but we have to remember that I wasn't
|
||||
very familiar with either the IBM PC or the 8088 instruction set at this point -- this was also a learning exercise.
|
||||
|
||||
And who knows, maybe Vault Corporation (the company that Ashton-Tate used to provide the copy-protection logic for
|
||||
dBASE III) wrote such sophisticated code that it was impossible to defeat so simply. However, experience suggests
|
||||
that's unlikely.
|
||||
|
||||
*[@jeffpar](http://twitter.com/jeffpar)*
|
||||
*Aug 11, 2017*
|
||||
295
_posts/2017-08-28-of-mice-and-when.md
Normal file
295
_posts/2017-08-28-of-mice-and-when.md
Normal file
|
|
@ -0,0 +1,295 @@
|
|||
---
|
||||
layout: post
|
||||
title: Of Mice And When
|
||||
date: 2017-08-28 10:00:00
|
||||
permalink: /blog/2017/08/28/
|
||||
---
|
||||
|
||||
While trying to bring the PCjs [Microsoft Mouse Driver](/disks/pcx86/tools/microsoft/mouse/) collection up-to-date,
|
||||
at least through the 1980's, a number of versions have proven hard to find:
|
||||
|
||||
- Microsoft Mouse v1.x
|
||||
- Microsoft Mouse v2.x (Serial Version)
|
||||
- Microsoft Mouse v3.x
|
||||
- Microsoft Mouse v5.x
|
||||
|
||||
However, I was able to locate [Microsoft Mouse v5.0](/disks/pcx86/tools/microsoft/mouse/5.00/) disk images in my own
|
||||
collection, so we can cross that one off the list now.
|
||||
|
||||
Another dimension of the driver matrix is the type of mouse hardware:
|
||||
|
||||
- Bus
|
||||
- Serial
|
||||
- InPort
|
||||
- PS/2
|
||||
- USB
|
||||
- Bluetooth
|
||||
|
||||
Since my focus is the 1980's, we'll ignore USB and Bluetooth for now.
|
||||
|
||||
There seems to be a fair bit of confusion on the Internet about Microsoft's first mouse: the Bus Mouse. For example,
|
||||
I found this [Reverse-engineered Bus Mouse Driver](https://github.com/fr1tz/aimsgui/blob/master/aid/os/pc/devmouse.c),
|
||||
which is clearly making educated guesses about what the various I/O ports do. There's nothing wrong with that,
|
||||
and in fact, we have little choice in the matter, because I don't think Microsoft ever published technical details
|
||||
of any of their mouse hardware. Unfortunately, after studying the driver a bit, I discovered that what it thinks
|
||||
is a Microsoft Bus Mouse is actually a newer mouse: the Microsoft InPort Mouse.
|
||||
|
||||
Even this Wikipedia article on the [Microsoft Mouse](https://en.wikipedia.org/wiki/Microsoft_Mouse) gets it wrong:
|
||||
|
||||
> The initial version featured an InPort ISA interface, requiring a Microsoft bus card to be installed in the computer.
|
||||
|
||||
The first Microsoft Mouse, introduced in 1983, was available in Serial and Bus versions. The Serial version required
|
||||
a serial port and used a (female) DB-25 connector, while the Bus version came with a small ISA card that the mouse
|
||||
plugged into using a (male) DE-9 connector. For more details (with pictures), check out this 2014 article on
|
||||
[The Original Microsoft Mouse](https://communities.intel.com/docs/DOC-22714).
|
||||
|
||||
Fast-forward to 1986, when Microsoft announced the InPort chip. As of May 9, 1986, all of its "Bus" mice were
|
||||
reportedly shipping with the InPort chip, along with a new, round 9-pin connector (not to be confused with the round
|
||||
6-pin connector that IBM introduced in 1987 and is now known as the PS/2 interface).
|
||||
|
||||
It's easy to see why the original Microsoft Bus mouse is so easily confused with the Microsoft InPort mouse, since
|
||||
they both required plugging an ISA card into your PC's bus. But the mice used different connectors and the cards had
|
||||
different programming interfaces. They used the same range of ports by default (0x23C through 0x23F), but the
|
||||
InPort chip added a number of registers that could only be accessed by first writing a register number to the card's
|
||||
"Address" port (0x23C) and then reading or writing that register through the card's "Data" port (0x23D).
|
||||
|
||||
---
|
||||
|
||||
This post barely scratches the surface of the evolution of the Microsoft Mouse, the various shapes and sizes of mice
|
||||
and their connectors, and all the programming considerations (eg, detection, initialization, interrupt handling, etc.)
|
||||
I'll return to this topic in the coming months, once I have more time, but for now, I'll leave you with this tiny
|
||||
snapshot of mouse driver revision history that I recently unearthed. Enjoy!
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; M I C R O S O F T M O U S E D R I V E R
|
||||
;
|
||||
; Written by Chris Peters, December 1982
|
||||
; Joystick code added by Brian Conte, January 1984
|
||||
; Bus and Serial versions combined by Brian Conte, December 1984
|
||||
; Chip version added by Steve Shaiman, November 1985
|
||||
; Joystick & Lightpen deleted by Steve Shaiman, November 1985
|
||||
; Keyboard shift sensitivity, cmd line switches to set sensitivity
|
||||
; and function calls 20-28 added by Marc Wilson, May 1986
|
||||
; General clean up done by Steve Shaiman, Ocotober 1986
|
||||
; International Message System by Steve Shaiman, November 1986
|
||||
;
|
||||
; DOS 2.0+ version
|
||||
; Bus/Serial/Chip version
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Revision History:
|
||||
; 5.01
|
||||
; - modified logic in smEga used to detect EGA odd/even modes (f & 10)
|
||||
; - modified copy_buffer_to_screen, copy_screen_to_buffer,
|
||||
; copy_cursor_to_screen, copy_buffer_to_cursor, copy_cursor_to_buffer,
|
||||
; and put_cursor_in_buffer to handle 64k EGA graphics modes (f & 10)
|
||||
; - added enable_write_maps_0_and_1, enable_write_maps_2_and_3,
|
||||
; enable_all_write_maps, enable_read_maps_0_and_1, and
|
||||
; enable_read_maps_2_and_3 to handle 64k EGA graphics modes (f & 10)
|
||||
; - removed old_screen from state block 4 (StartStBlock4)
|
||||
; - moved old_screen for mouse.com out of mouse.com's psp
|
||||
; - eliminated fInit variable so that call2 will always decrement the
|
||||
; cursor flag
|
||||
; no!!! - eliminated zeroing the interrupt mask [int_mask] from call0
|
||||
; mouse reinitialization code
|
||||
; - changed EgaGrphxSet+7 to EgaGrphxSave+7 in RestoreState
|
||||
; 5.02
|
||||
; - modified version numbers
|
||||
; - added code in Serint to cause [button_state] and [int_cond] to not
|
||||
; be updated until after the third data byte is received
|
||||
; - added the variables [new_button_state] & [new_int_cond] to accomodate
|
||||
; [button_state] & [int_cond] update delay
|
||||
; - changed MaxIntSize from 140h to 180h to accomodate code size change
|
||||
; of Serint
|
||||
; - corrected bug caused by chip mouse board with no irq jumper. will
|
||||
; now output message that interrupt jumper is missing
|
||||
; - aligned install message with VT52 install message
|
||||
; 5.03
|
||||
; - modified version numbers
|
||||
; - added jmp short $+2 after all in's & out's for bus & serial mouse I/O
|
||||
;
|
||||
; - modified EgaPut & move_cursors subroutines, added CheckCursor
|
||||
; subroutine and InverseCursor flag to correct bug in cursor output for
|
||||
; EGA graphic cursors in which the same bits in both the screen mask &
|
||||
; cursor mask are set to 1's.
|
||||
; - changed bus mouse search code
|
||||
; 6.00
|
||||
; - modified version numbers
|
||||
; - sensitivity settings added; function calls, cmd line switches and
|
||||
; data structures.
|
||||
; - alternative user procs added; function calls, data structures and
|
||||
; additional button_state bits.
|
||||
; 6.a1
|
||||
; - modified version numbers
|
||||
; - added support for EGA mode D
|
||||
; 6.a2
|
||||
; - modified version numbers
|
||||
; - clear that USERPROC when mouse reset!
|
||||
; 6.a3
|
||||
; - modified version numbers
|
||||
; - New EGAINT10(stay away from clock mode reg. if possible).
|
||||
; - Keep UserProc out during MoveCursor.
|
||||
; 6.b0
|
||||
; - modified version numbers
|
||||
; - added OFF disable/unload command line switch and messages
|
||||
; - removed shift state from [Button_state] returned by function calls
|
||||
; - modified InPort IRQ search code to use the 8259 registers instead of
|
||||
; - a timing loop
|
||||
; 6.b1
|
||||
; - modified version numbers
|
||||
; 6.b2
|
||||
; - modified version numbers
|
||||
; - added code to support function 29 (set CRT page #) & function 30
|
||||
; (get CRT page #)
|
||||
; 6.b3
|
||||
; - modified version numbers
|
||||
; - added support for the PCjr
|
||||
; - added code to make sure that hold bit is set when it is set in
|
||||
; the InPort interrupt handler
|
||||
; 6.b4
|
||||
; - modified version numbers
|
||||
; - modified multiply/divide routine used for raw mickey scaling to
|
||||
; yield the same magnitude results for positive & negative values
|
||||
; - removed code to make sure that hold bit is set when it is set in
|
||||
; the InPort interrupt handler
|
||||
; - added EOI output to InPort hardware interrupt handler and added a
|
||||
; mouse type check to the general interrupt handler to avoid doing
|
||||
; a second EOI in the case of an InPort
|
||||
; - added a check for InPort version # and used the version # to
|
||||
; determine if the InPort is to be used in timer interrupt mode
|
||||
; (version 1.0) or timer interrupt mode (all other versions). if
|
||||
; the 1.1 version of the chip checks out in data interrupt mode, this
|
||||
; mode will be used for all none version 1.0 chips
|
||||
; - added new variable (ChipIntMode) to hold the InPort interrupt mode
|
||||
; - modified support for function 29/30 so that the driver would work
|
||||
; the same way it worked previous to 6.b2 if the crt page # is 0
|
||||
; (i.e. in text mode the BIOS crt page start [location 40:4e] is used
|
||||
; as the start of the display page instead of 0)
|
||||
; 6.b5
|
||||
; - modified version numbers
|
||||
; - added check for bios mode 74h (Toshiba 2100 & 3100) and modified
|
||||
; driver to use AT&T 6300 mode in this case
|
||||
; - added check for bios mode 06h on an HP Vectra and modified driver
|
||||
; to use AT&T 6300 mode in this case
|
||||
; - moved EGA mode D cursor buffer to 3f40h from 1fd0h
|
||||
; 6.00
|
||||
; - modified version numbers
|
||||
; 6.01A
|
||||
; - modified version numbers
|
||||
; - corrected bug in norm_sens and SensTable so that sensitivity values
|
||||
; of 1 & 2 are handled correctly
|
||||
; - added code to set external timer enable bit in the InPort test
|
||||
; register if timer select (interrupt rate) is set to 7 and the InPort
|
||||
; chip version isn't 1.0
|
||||
; - added the variable ChipVersion to hold the InPort chip version #
|
||||
; - deleted all calls to disable and the disable subroutine (calls to
|
||||
; disable were unnecessary and caused glitches on the mouse IRQ line)
|
||||
; - modified code in set_masks to set page_seg_size to 800h when using
|
||||
; a Hercules graphics adapter display mode
|
||||
; - modified code in basic to insure that es <- ds if M2% is 0 or
|
||||
; es <- M2% if M2% isn't 0
|
||||
; 6.01B
|
||||
; - modified version numbers
|
||||
; - changed maxcurht from 16 to 32
|
||||
; - changed maxcurwd from 9 to 5
|
||||
; - changed maxbufht from 20 to 32
|
||||
; - added lots of comments to cursor drawing routines
|
||||
; 6.01C
|
||||
; - modified version numbers
|
||||
; - added more comments to cursor drawing routines
|
||||
; - modified move_cursors and move3 for speed & reduced cursor width
|
||||
; (max cursor width changed from 8 bytes to 4 bytes - 6.01B)
|
||||
; - added Ericsson support
|
||||
; - modified set_masks to use ROM BIOS data area crt columns & display
|
||||
; mode to determine value for bytes_per_line to support Hercules 90
|
||||
; column text mode
|
||||
; - corrected scan line # output for int 10h read lightpen position when
|
||||
; in high resolution modes
|
||||
; - updated copyright notice
|
||||
; 6.01D
|
||||
; - modified version numbers
|
||||
; - added int 10h function f8h to EGAINT10.INC
|
||||
; - added shadowing for set palette & set crt page # to EGAINT10.INC
|
||||
; 6.00i
|
||||
; - modified version numbers
|
||||
; - added International Message System
|
||||
; - added function 34 which returns the # of the foreign language in use
|
||||
; 6.00Z
|
||||
; - modified version numbers
|
||||
; - added register saving and restoring for CX & DX in set_masks to
|
||||
; correct bug when entered from int_10
|
||||
; - "fixed" 8255 bus mouse detection code to protect against a ringing
|
||||
; I/O bus
|
||||
; - moved int_10h call to set_masks to follow actual call to BIOS
|
||||
; instead of preceeding it. This corrects a dual monitor bug
|
||||
; - corrected installation message handling for the case where a .sys
|
||||
; or a pre-6.00z version of the driver was previously installed
|
||||
; 6.01Z (Ben Hsu)
|
||||
; - REMOVE 6.00z move int_10h to set_masks to follow actual call to BIOS
|
||||
; - REMOVE 6.01D Egaint10.inc enhancements
|
||||
; - REMOVE 6.00z DisplayMessage for a Pre-6.00z installed
|
||||
; - REMOVE new set_masks routine, restore the 6.00 version set_masks
|
||||
; - Change Function 34 to Function 35 for ITL version, in order to unload
|
||||
; mouse version 6.00
|
||||
; - Added a new Function 34 to SetLanguage, to reset the languages value
|
||||
; when mouse.sys is loaded
|
||||
; 6.01Z (Steve Shaiman)
|
||||
; - Modified the 6.00 version of set_masks for Ericsson support
|
||||
; 6.02Beta (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Modified the soft text cursor restoring routine, for restore only
|
||||
; attribute if it is a blank character, otherwise attr + char.
|
||||
; - Add the fat waiting loop get_time for the initial and reinitial of
|
||||
; the serial mouse (mouse not found bug)
|
||||
; - Correct the Function #26 BX and CX value to max value of 100, in order
|
||||
; to work with the cpanel
|
||||
; - Added new Function #36, GetVersion, to get the mouse version number
|
||||
; type and IRQ#
|
||||
; 6.02a (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Merged the set_masks for Ericsson support
|
||||
; 6.02b (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Save CX and DX in set_masks, in order to work with the MP and Project
|
||||
; 6.02c (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Added in the IBM Skyhawk display adapter support, new variable
|
||||
; fSkyhawkCode in card tpyre area
|
||||
; - Modified DisplayMessage and ms$init for langugage support in sys file
|
||||
; 6.02d (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Modified the IBM Skyhawk display adapter support
|
||||
; - Modified the mouse OFF code to check the new cpanel activation keys
|
||||
; - General clean up the code
|
||||
; 6.02e (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - REMOVED 6.02Beta get_time and replace by the original code for
|
||||
; runnig word on Skyhawk
|
||||
; - Modified the SET_MASKS for piano test program, reset byte_per_line to
|
||||
; 80 when using graphics mode 6
|
||||
; 6.02f (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Used the 1/30/87 version EGAINT10.INC file for Skyhawk support
|
||||
; 6.02g (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Used the 2/03/87 version EGAINT10.INC file for Skyhawk support
|
||||
; 6.02 (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Added DealyLoop reutine for serial mouse patch to use
|
||||
; IBM (Steve Shaiman)
|
||||
; - added IBM and NotIBM flags
|
||||
; - Added IBM mouse support for both IBM and MS Mouse drivers
|
||||
; 6.02h (Ben Hsu)
|
||||
; - Modified version numbers
|
||||
; - Changed the JNE to JE in ChipReinit version comparasion with 10h
|
||||
; 6.02h1(Jeff Parsons)
|
||||
; - Added support for Tseng Labs Eva/480 Enhanced EGA board,
|
||||
; by recognizing mode 25h in set_masks and treating similar to
|
||||
; Vga640x480.
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
*[@jeffpar](http://twitter.com/jeffpar)*
|
||||
*Aug 28, 2017*
|
||||
331
_posts/2017-09-21-puzzled-programmers.md
Normal file
331
_posts/2017-09-21-puzzled-programmers.md
Normal file
|
|
@ -0,0 +1,331 @@
|
|||
---
|
||||
layout: post
|
||||
title: Puzzled Programmers
|
||||
date: 2017-09-21 10:00:00
|
||||
permalink: /blog/2017/09/21/
|
||||
machines:
|
||||
- id: ibm5160-msdos320
|
||||
type: pcx86
|
||||
resume: 1
|
||||
config: /devices/pcx86/machine/5160/ega/640kb/machine.xml
|
||||
drives: '[{name:"10Mb Hard Disk",type:3,path:"/disks/pcx86/fixed/10mb/MSDOS320-C400.json"}]'
|
||||
autoMount:
|
||||
A:
|
||||
name: None
|
||||
B:
|
||||
name: None
|
||||
---
|
||||
|
||||
A book I used to have a copy of (and perhaps still do, in the bowels of my storage unit) was "Puzzled Programmers"
|
||||
by Michael Wiesenberg. It was published by Microsoft Press in 1987, and I recently rediscovered an online copy in the
|
||||
[Internet Archive's](https://archive.org) [Open Library](https://openlibrary.org):
|
||||
|
||||
> [Puzzled Programmers: 15 mind-boggling story puzzles to test your programming prowess, solutions in BASIC, Pascal, and C](https://openlibrary.org/books/OL2379315M/Puzzled_programmers)
|
||||
|
||||
Someone else was currently "borrowing" it, so I added myself to the wait-list, and a few days ago, the Internet Archive
|
||||
notified me that it was available for reading. I started skimming it, and noticed that for each of the puzzles, it
|
||||
included complete solutions in all the aforementioned languages: BASIC, Pascal, and C. I also noticed this portion of
|
||||
the Introduction:
|
||||
|
||||
> **Timing the Programs on Your Computer**
|
||||
|
||||
> Run times are specified for each puzzle, but you should look at these times only as guidelines or, in the vernacular,
|
||||
as ballpark figures. The figures given are for a Hewlett-Packard Vectra (IBM PC AT compatible) running at a clock speed
|
||||
of 8 MHz. Obviously, the times will differ with other interpreters and on other computers. The following table gives you
|
||||
some idea of how long a program ought to take on your particular system. This table shows timings on various systems
|
||||
of the programs presented in the solution to Puzzle 5.
|
||||
|
||||
Computer BASIC Turbo Pascal Microsoft C
|
||||
-------------------------------------------------------------------------------
|
||||
Tandy 1000 (4.77 MHz) 2 minutes 11 seconds 1.3 seconds 2.4 seconds
|
||||
IBM PC XT clone (4.77 MHz) 1 minute 58.5 seconds 1.3 seconds 2.3 seconds
|
||||
IBM PC A T (6 MHz) 50 seconds 0.5 seconds 0.9 seconds
|
||||
HP Vectra (8 MHz) 35 seconds 0.5 seconds 0.4 seconds
|
||||
Macintosh Plus 8 seconds < 1 second < 1 second
|
||||
Apple II C 2 minutes 20 seconds 23.6 seconds* n/a
|
||||
-------------------------------------------------------------------------------
|
||||
*Apple Pascal
|
||||
|
||||
This almost seemed like an invitation to try my hand at Puzzle #5 and see how a PCjs "machine" compared.
|
||||
|
||||
### A Pleasant Fourthsum
|
||||
|
||||
I skipped ahead to page 27, "Puzzle 5: A Pleasant Fourthsum", and started reading. I have to admit that the story
|
||||
completely failed to interest me. There were lots of irrelevant details about a delicious breakfast that this imaginary
|
||||
bunch of successful twenty-somethings was enjoying, when suddenly one of them says:
|
||||
|
||||
"Before we get into the future of languages at I-Q, I've got a great computer puzzle for everyone."
|
||||
|
||||
which he then states in one sentence:
|
||||
|
||||
"Find a four-digit number that is the sum of the fourth powers of its digits."
|
||||
|
||||
and then the conversation returns to other random topics, like whether anyone should be worried that FORTRAN might
|
||||
become a weapons guidance language, and whether they need to make lunch reservations -- when they've barely finished
|
||||
breakfast!
|
||||
|
||||
Skipping ahead to the "Solutions" section, it turned out that the challenge was to actually find *all* four-digit
|
||||
numbers, not just *a* number. Also, only numbers 1000 through 9999 are considered (no numbers with leading zeros).
|
||||
|
||||
Just for fun, I created [my own solution](/tests/node/puzzled/puzzle5.js) in JavaScript first:
|
||||
|
||||
```javascript
|
||||
let p = new Array(10);
|
||||
|
||||
/**
|
||||
* test(n)
|
||||
*
|
||||
* Returns true IFF the number matches the criteria.
|
||||
*
|
||||
* @param {number} n
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function test(n) {
|
||||
let total = 0;
|
||||
let value = n;
|
||||
while (n) {
|
||||
total += p[n % 10];
|
||||
n = (n / 10)|0;
|
||||
}
|
||||
return total == value;
|
||||
}
|
||||
|
||||
function run() {
|
||||
let n = 1000;
|
||||
for (let d = 0; d < 10; d++) {
|
||||
p[d] = Math.pow(d, 4);
|
||||
}
|
||||
while (true) {
|
||||
if (test(n)) console.log(n);
|
||||
if (++n > 9999) break;
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
```
|
||||
|
||||
then I looked at the solutions in "Puzzled Programmers". Here's the BASIC solution:
|
||||
|
||||
```basic
|
||||
5 REM BASIC Solution to Puzzle #5 in "Puzzled Programmers" (c) 1987
|
||||
10 DIM PWR(9)
|
||||
20 FOR I = 0 TO 9
|
||||
30 PWR(I) = I^4
|
||||
40 NEXT I
|
||||
50 H000 = 1000
|
||||
60 FOR H = 1 TO 9
|
||||
70 I00 = 0
|
||||
80 FOR I = 0 TO 9
|
||||
90 J0 = 0
|
||||
100 FOR J = 0 TO 9
|
||||
110 PARTSUM = H000 + I00 + J0
|
||||
120 PART4THS = PWR(H) + PWR(I) + PWR(J)
|
||||
130 FOR K = 0 TO 9
|
||||
140 SUM = PARTSUM + K
|
||||
150 IF PART4THS + PWR(K) <> SUM THEN 190
|
||||
160 PRINT SUM; "= ";
|
||||
170 PRINT USING "#^4 + "; H, I, J;
|
||||
180 PRINT USING "#^4"; K
|
||||
190 NEXT K
|
||||
200 J0 = J0 + 10
|
||||
210 NEXT J
|
||||
220 I00 = I00 + 100
|
||||
230 NEXT I
|
||||
240 H000 = H000 + 1000
|
||||
250 NEXT H
|
||||
```
|
||||
|
||||
and the C solution (which I modified to loop 100 times, to make timing with a stopwatch easier):
|
||||
|
||||
```c
|
||||
/* C solution to puzzle #5 in "Puzzled Programmers" (c) 1987 */
|
||||
main()
|
||||
{
|
||||
int pwr[10], /* the fourth power of each digit */
|
||||
h, /* the digit in the thousands position */
|
||||
h000, /* h * 1000, that is, the value of the number
|
||||
in the thousands position */
|
||||
i, /* the digit in the hundreds position */
|
||||
i00, /* i * 100, that is, the value of the number
|
||||
in the hundreds position */
|
||||
j, /* the digit in the tens position */
|
||||
j0, /* i * 10, that is, the value of the number
|
||||
in the tens position */
|
||||
part4ths, /* h^4 + i^4 + j^4 */
|
||||
partsum, /* h000 + i00 + j0 */
|
||||
k, /* the digit in the ones position */
|
||||
sum, l;
|
||||
|
||||
for (i = 0; i < 10; i++) pwr[i] = i * i * i * i;
|
||||
for (l = 100; l-- > 0;) {
|
||||
for (h000 = 1000, h = 1; h <= 9; h++, h000 += 1000) {
|
||||
/* thousands digit */
|
||||
for (i00 = i = 0; i <= 9; i++, i00 += 100) {
|
||||
/* hundreds digit */
|
||||
for ( j0 = j = 0; j <= 9; j++, j0 += 10) {
|
||||
/* tens digit */
|
||||
partsum = h000 + i00 + j0;
|
||||
part4ths = pwr[h] + pwr[i] + pwr[j];
|
||||
for ( k = 0; k <= 9; k++) { /* ones digit */
|
||||
sum = partsum + k; /* this produces the four-digit number */
|
||||
if (part4ths + pwr[k] == sum) {
|
||||
if (!l) printf("%d = %d^4 + %d^4 + %d^4 + %d^4\n",
|
||||
sum, h, i, j, k);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Here's my own C solution, which is slightly smaller and faster than the book's solution:
|
||||
|
||||
```c
|
||||
/* @jeffpar's optimized C solution to puzzle #5 */
|
||||
main()
|
||||
{
|
||||
int p[10];
|
||||
int d, l, n, s;
|
||||
for (d = 0; d < 10; d++) p[d] = d * d * d * d;
|
||||
for (l = 100; l-- > 0;) { /* loop 100 times for timing purposes */
|
||||
for (n = 100; n < 1000; n++) {
|
||||
/* I originally used a "do...while (t /= 10)" loop here
|
||||
to create the power summation (where t was a copy of n),
|
||||
but since we know n is a 3-digit number, we can inline
|
||||
all three power references and minimize the number of
|
||||
divisions; we also bias the sum by -(n*10) so that we
|
||||
don't have to add (n*10) to d for the final comparison. */
|
||||
s = p[n/100] + p[(n/10)%10] + p[n%10] - (n*10);
|
||||
for (d = 0; d < 10; d++) {
|
||||
if (s + p[d] == d) {
|
||||
if (!l) printf("%d = %d^4 + %d^4 + %d^4 + %d^4\n",
|
||||
n * 10 + d, n/100, (n/10)%10, n%10, d);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
And finally, here's the book's Pascal solution:
|
||||
|
||||
```pascal
|
||||
program sum4ths(input, output);
|
||||
var
|
||||
pwr: { the fourth power of each number, 0 to 9 }
|
||||
array[0..9] of integer;
|
||||
h, { the digit in the thousands position }
|
||||
h000, { h * 1000, that is, the value of the number
|
||||
in the thousands position }
|
||||
i, { the digit in the hundreds position }
|
||||
i00, { i * 100, that is, the value of the number in
|
||||
the hundreds position }
|
||||
j, { the digits in the tens position }
|
||||
j0, { j * 10, that is, the value of the number in
|
||||
the tens position }
|
||||
part4ths, { h^4 + i^4 + j^4 }
|
||||
partsum, { h000 + i00 + j0 }
|
||||
k, { the digit in the ones position }
|
||||
sum: integer;
|
||||
|
||||
begin
|
||||
for i := 0 to 9 do pwr[i] := i * i * i * i;
|
||||
h000 := 1000;
|
||||
for h := 1 to 9 do begin { thousands digit }
|
||||
i00 := 0;
|
||||
for i := 0 to 9 do begin { hundreds digit }
|
||||
j0 := 0;
|
||||
for j := 0 to 9 do begin { tens digits }
|
||||
partsum := h000 + i00 + j0;
|
||||
part4ths := pwr[h] + pwr[i] + pwr[j];
|
||||
for k := 0 to 9 do begin { ones digit }
|
||||
sum := partsum + k; { this produces the four-digit number }
|
||||
if part4ths + pwr[k] = sum then
|
||||
writeln(sum, ' = ', h, '^4 + ', i, '^4 + ', j, '^4 + ', k, '^4')
|
||||
end;
|
||||
j0 := j0 + 10;
|
||||
end;
|
||||
i00 := i00 + 100;
|
||||
end;
|
||||
h000 := h000 + 1000;
|
||||
end
|
||||
end.
|
||||
```
|
||||
|
||||
You can play with all these solutions in the 4.77Mhz IBM PC XT machine below. Use `CD \PUZZLED\PUZZLE5` to switch
|
||||
to the directory for Puzzle #5.
|
||||
|
||||
To run the BASIC version, use `GWBASIC`, since the machine boots MS-DOS 3.20:
|
||||
|
||||
C:\PUZZLED\PUZZLE5>GWBASIC PUZZLE5.BAS
|
||||
|
||||
To compile and run the C version, you can use the pre-installed copy of Microsoft C 4.00:
|
||||
|
||||
C:\PUZZLED\PUZZLE5>cl puzzle5.c
|
||||
Microsoft (R) C Compiler Version 4.00
|
||||
Copyright (C) Microsoft Corp 1984, 1985, 1986. All rights reserved.
|
||||
|
||||
puzzle5.c
|
||||
Microsoft (R) Overlay Linker Version 3.51
|
||||
Copyright (C) Microsoft Corp 1983, 1984, 1985, 1986. All rights reserved.
|
||||
|
||||
Object Modules [.OBJ]: PUZZLE5.OBJ
|
||||
Run File [PUZZLE5.EXE]: PUZZLE5.EXE/NOI
|
||||
List File [NUL.MAP]: NUL
|
||||
Libraries [.LIB]: ;
|
||||
|
||||
C:\PUZZLED\PUZZLE5>puzzle5
|
||||
1634 = 1^4 + 6^4 + 3^4 + 4^4
|
||||
8208 = 8^4 + 2^4 + 0^4 + 8^4
|
||||
9474 = 9^4 + 4^4 + 7^4 + 4^4
|
||||
|
||||
To compile and run the Pascal version, load diskette "IBM Pascal 1.00 (Combined)" in drive A, and then type the
|
||||
commands shown below:
|
||||
|
||||
C:\PUZZLED\PUZZLE5>a:pas1
|
||||
IBM Personal Computer Pascal Compiler
|
||||
Version 1.00 (C)Copyright IBM Corp 1981
|
||||
Source filename [.PAS]: puzzle5p
|
||||
Object filename [PUZZLE5P.OBJ]:
|
||||
Source listing [NUL.LST]:
|
||||
Object listing [NUL.COD]: puzzle5p
|
||||
Pass One No Errors Detected.
|
||||
|
||||
C:\PUZZLED\PUZZLE5>a:pas2
|
||||
|
||||
Code Area Size = #0296 (662)
|
||||
Cons Area Size = #004C (76)
|
||||
Data Area Size = #002A (42)
|
||||
|
||||
Pass Two No Errors Detected.
|
||||
|
||||
C:\PUZZLED\PUZZLE5>a:link
|
||||
IBM Personal Computer Linker
|
||||
Version 1.00 (C) Copyright IBM Corp 1981
|
||||
Object Modules: puzzle5p
|
||||
Run File: puzzle5p
|
||||
List File [PUZZLE5P.MAP] :
|
||||
Libraries [ ] :
|
||||
Publics [No]:
|
||||
Line Numbers [No]:
|
||||
Stack size [Object file stack]:
|
||||
Load Low [Yes]:
|
||||
DSAllocation [No]:
|
||||
|
||||
C:\PUZZLED\PUZZLE5>puzzle5p
|
||||
1634 = 1^4 + 6^4 + 3^4 + 4^4
|
||||
8208 = 8^4 + 2^4 + 0^4 + 8^4
|
||||
9474 = 9^4 + 4^4 + 7^4 + 4^4
|
||||
|
||||
It appears that PCjs is somewhat faster than a real machine. For example, the author's BASIC solution ran
|
||||
for almost two minutes on a PC XT clone, but it finishes in about one and a half minutes on the 4.77Mhz PC XT
|
||||
configuration below.
|
||||
|
||||
Clearly, I still have some work to do if I want PCjs to faithfully simulate how *slow* these systems used to be.
|
||||
|
||||
{% include machine.html id="ibm5160-msdos320" %}
|
||||
|
||||
*[@jeffpar](http://twitter.com/jeffpar)*
|
||||
*Sep 21, 2017*
|
||||
|
|
@ -15,11 +15,11 @@ scripts: # the following list of scripts should mirror what /modules/diskdump/li
|
|||
---
|
||||
|
||||
PCjs DiskDump and FileDump API
|
||||
===
|
||||
------------------------------
|
||||
|
||||
The PCjs [DiskDump](/modules/diskdump/) and [FileDump](/modules/filedump/) API are not fully supported
|
||||
by the current PCjs web server. When [pcjs.org](http://www.pcjs.org/) switched from a Node-based web server running on
|
||||
[Amazon Web Services](https://aws.amazon.com/elasticbeanstalk/) to [GitHub Pages](https://pages.github.com/),
|
||||
The PCjs [DiskDump](/modules/diskdump/) and [FileDump](/modules/filedump/) API are not fully supported by the
|
||||
current PCjs web server. When [pcjs.org](http://www.pcjs.org/) switched from a Node-based web server running
|
||||
on [Amazon Web Services](https://aws.amazon.com/elasticbeanstalk/) to [GitHub Pages](https://pages.github.com/),
|
||||
the original server-side API had to be abandoned.
|
||||
|
||||
However, we're working on a client-side replacement of the API that will run
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ hand-written notes (which I may still have somewhere).
|
|||
|
||||
Here it is, many decades later, for your amusement.
|
||||
|
||||
[<img src="http://archive.pcjs.org/apps/c1p/6502/jeffpar/assembler/thumbs/OSI_Assembler-Disassembler_Listing-thumb.jpg" width="200" height="260" alt="6502 Disassembler Listing (by Jeff Parsons, June 1980)"/>](http://archive.pcjs.org/apps/c1p/6502/jeffpar/assembler/pdfs/OSI_Assembler-Disassembler_Listing.pdf)
|
||||
[<img src="https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/c1p/6502/jeffpar/assembler/thumbs/OSI_Assembler-Disassembler_Listing-thumb.jpg" width="200" height="260" alt="6502 Disassembler Listing (by Jeff Parsons, June 1980)"/>](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/c1p/6502/jeffpar/assembler/pdfs/OSI_Assembler-Disassembler_Listing.pdf)
|
||||
|
||||
NOTE: Even though the "source code" listing was based on the 8K version, it more closely resembles the
|
||||
[4K version](ASSEMBLER-4K.json), because the [8K version](ASSEMBLER-8K.json) I originally located appears to be
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ permalink: /apps/pcx86/1981/visicalc/
|
|||
machines:
|
||||
- id: ibm5150-visicalc
|
||||
type: pcx86
|
||||
config: /devices/pcx86/machine/5150/mda/64kb/machine.xml
|
||||
config: /devices/pcx86/machine/5150/mda/64kb/debugger/machine.xml
|
||||
resume: 1
|
||||
state: /apps/pcx86/1981/visicalc/state.json
|
||||
autoMount:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>VisiCalc</title>
|
||||
<!-- Since version numbers are incorporated into the disk image names, and this version number is a bit ugly, we're not exposing it with the normal "version" tag -->
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>Executive Suite</title>
|
||||
<version/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>RatBas</title>
|
||||
<version>2.13</version>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>Adventures in Math</title>
|
||||
<version>1.00</version>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Logitech Modula-2/86 Compiler (1984)
|
|||
Logitech's Modula-2 Compiler (Modula-2/86 v1.10) has been installed in the machine below. The machine is
|
||||
an [IBM PC XT (Model 5160, 640Kb, 10Mb Drive) with EGA Display](/devices/pcx86/machine/5160/ega/640kb/), but
|
||||
the hard drive has been replaced with a [10Mb Drive](/disks/pcx86/fixed/10mb/) containing
|
||||
[MS-DOS 3.20 with Microsoft C 4.00](/disks/pcx86/fixed/10mb/msdos320-c400.xml), and then all the Modula-2 installation
|
||||
[MS-DOS 3.20 with Microsoft C 4.00](/disks/pcx86/fixed/10mb/msdos320-c400-xt.xml), and then all the Modula-2 installation
|
||||
changes have been overlaid onto it.
|
||||
|
||||
{% include machine.html id="ibm5160-msdos320" %}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>Rogue</title>
|
||||
<version>1.49</version>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>ThinkTank</title>
|
||||
<version>2.41NP</version>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>The Dungeons of Moria</title>
|
||||
<version>4.872</version>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.36.0/manifest.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pcx86/1.37.1/manifest.xsl"?>
|
||||
<manifest type="software">
|
||||
<title>The Dungeons of Moria</title>
|
||||
<version>5.5</version>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
---
|
||||
layout: page
|
||||
title: PCx86 Documentation Examples
|
||||
permalink: /docs/pcx86/examples/
|
||||
title: PCx86 Examples
|
||||
permalink: /apps/pcx86/examples/
|
||||
redirect_from:
|
||||
- /docs/pcx86/examples/
|
||||
machines:
|
||||
- id: example3
|
||||
type: pcx86
|
||||
config: /docs/pcx86/examples/example3b.xml
|
||||
config: /apps/pcx86/examples/example3b.xml
|
||||
---
|
||||
|
||||
PCx86 Documentation Examples
|
||||
----------------------------
|
||||
PCx86 Examples
|
||||
--------------
|
||||
|
||||
This folder provides all the self-contained [PCx86](/docs/about/pcx86/) examples described in the
|
||||
[Documentation](/docs/pcx86/).
|
||||
|
|
@ -33,4 +35,4 @@ Have fun!
|
|||
|
||||
{% include machine.html id="example3" %}
|
||||
|
||||
[Return to [PCx86 Documentation](..)]
|
||||
[Return to [PCx86 Documentation](/docs/pcx86/)]
|
||||
1420
apps/pcx86/examples/components.xsl
Normal file
1420
apps/pcx86/examples/components.xsl
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>pcjs.org | /docs/pcjs/demos/example1.html</title>
|
||||
<title>pcjs.org | /apps/pcx86/examples/example1.html</title>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="components.css">
|
||||
<script type="text/javascript" src="pcx86.js"></script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>pcjs.org | /docs/pcjs/demos/example2.html</title>
|
||||
<title>pcjs.org | /apps/pcx86/examples/example2.html</title>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="components.css">
|
||||
<script type="text/javascript" src="pcx86.js"></script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>pcjs.org | /docs/pcjs/demos/example3a.html</title>
|
||||
<title>pcjs.org | /apps/pcx86/examples/example3a.html</title>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="components.css">
|
||||
<script type="text/javascript" src="pcx86-dbg.js"></script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>pcjs.org | /docs/pcjs/demos/example3b.html</title>
|
||||
<title>pcjs.org | /apps/pcx86/examples/example3b.html</title>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="components.css">
|
||||
<script type="text/javascript" src="pcx86.js"></script>
|
||||
Binary file not shown.
913
apps/pcx86/examples/pcx86-dbg.js
Normal file
913
apps/pcx86/examples/pcx86-dbg.js
Normal file
|
|
@ -0,0 +1,913 @@
|
|||
(function(){/*
|
||||
http://pcjs.org/modules/shared/lib/diskapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/dumpapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/reportapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/userapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/keys.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/strlib.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/weblib.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/interrupts.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/messages.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/debugger.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/state.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/embed.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/defines.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/usrlib.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/component.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/defines.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/panel.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/bus.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/memory.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/cpu.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86seg.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86cpu.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86fpu.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86func.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86help.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86mods.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86ops.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86op0f.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/chipset.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/rom.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/ram.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/keyboard.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/video.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/parallel.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/serial.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/mouse.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/disk.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/fdc.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/hdc.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/debugger.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/computer.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/save.js (C) Jeff Parsons 2012-2017
|
||||
*/
|
||||
var l,aa,ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ca;if("function"==typeof Object.setPrototypeOf)ca=Object.setPrototypeOf;else{var da;a:{var ea={Hd:!0},fa={};try{fa.__proto__=ea;da=fa.Hd;break a}catch(a){}da=!1}ca=da?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ha=ca;
|
||||
function ia(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ha)ha(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.rq=b.prototype}
|
||||
var ja="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ka="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function la(a,b){if(b){var c=ka;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ja(c,a,{configurable:!0,writable:!0,value:b})}}
|
||||
la("Math.trunc",function(a){return a?a:function(a){a=Number(a);if(isNaN(a)||Infinity===a||-Infinity===a||0===a)return a;var b=Math.floor(Math.abs(a));return 0>a?-b:b}});la("Math.sign",function(a){return a?a:function(a){a=Number(a);return 0===a||isNaN(a)?a:0<a?1:-1}});
|
||||
var ma={163840:[40,1,8,,254],184320:[40,1,9,,252],327680:[40,2,8,,255],368640:[40,2,9,,253],737280:[80,2,9,,249],1228800:[80,2,15,,249],1474560:[80,2,18,,240],2949120:[80,2,36,,240],10653696:[306,4,17],21411840:[615,4,17],256256:[77,1,26,128],2494464:[203,2,12,512],5242880:[256,2,40,256],10485760:[512,2,40,256]},n={tp:0,vp:1,wp:2,al:3,xp:4,yp:5,zp:6,Ap:7,Bp:8,Cp:9,Dp:10,Ep:11,Fp:12,Gp:13,Hp:14,Ip:15,Jp:16,Kp:17,Lp:18,Mp:19,Np:20,Op:21,Pp:22,Qp:23,Rp:24,Sp:25,Tp:26," ":32,"!":33,'"':34,"#":35,$:36,
|
||||
"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,ee:65,pi:66,ri:67,si:68,E:69,ti:70,ui:71,vi:72,wi:73,xi:74,yi:75,zi:76,Ai:77,Bi:78,Ci:79,Di:80,Q:81,Ei:82,Fi:83,Gi:84,Hi:85,Ii:86,Ji:87,Ki:88,Li:89,Zf:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Hd:97,ol:98,ql:99,d:100,e:101,zl:102,Al:103,Bl:104,Cl:105,Wm:106,k:107,Xm:108,cn:109,n:110,on:111,p:112,q:113,r:114,So:115,t:116,Wo:117,
|
||||
Xo:118,Yo:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126,Up:127},na={};na[173]=n["-"];na[186]=n[";"];na[187]=n["="];na[189]=n["-"];na[188]=n[","];na[190]=n["."];na[191]=n["/"];na[192]=n["`"];na[219]=n["["];na[220]=n["\\"];na[221]=n["]"];na[222]=n["'"];var pa={};pa[n["1"]]=n["!"];pa[n["2"]]=n["@"];pa[n["3"]]=n["#"];pa[n["4"]]=n.$;pa[n["5"]]=n["%"];pa[n["6"]]=n["^"];pa[n["7"]]=n["&"];pa[n["8"]]=n["*"];pa[n["9"]]=n["("];pa[n["0"]]=n[")"];pa[186]=n[":"];pa[187]=n["+"];pa[188]=n["<"];pa[189]=n._;
|
||||
pa[190]=n[">"];pa[191]=n["?"];pa[192]=n["~"];pa[219]=n["{"];pa[220]=n["|"];pa[221]=n["}"];pa[222]=n['"'];pa[173]=n._;pa[61]=n["+"];pa[59]=n[":"];
|
||||
function qa(a,b){if(a){b||(b=10);var c,d=0<a.indexOf(",");d&&(a=a.replace(/,/g,""));var e=c=a.charAt(0);"#"==c?(b=8,c=""):"$"==c&&(b=16,c="");e!=c?a=a.substr(1):(e=c=a.substr(0,2),"0b"==c&&d||"^B"==c?(b=2,c=""):"0o"==c||"^O"==c?(b=8,c=""):"^D"==c?(b=10,c=""):"0x"==c&&(b=16,c=""),e!=c&&(a=a.substr(2)));e=c=a.slice(-1);"Y"==c||"y"==c?(b=2,c=""):"."==c?(b=10,c=""):"H"==c||"h"==c?(b=16,c=""):"K"==c?c="000":"M"==c?c="000000":"G"==c&&(c="000000000");e!=c&&(a=a.slice(0,-1)+c);var f;e=0;10>=b&&(c=a.match(/(-?[0-9]+)B([0-9]*)/))&&
|
||||
(a=c[1],e=35-((c[2]||35)&255));c=a;if(((d=b)&&10!=d?16==d?null!==c.match(/^-?[0-9a-f]+$/i):8==d?null!==c.match(/^-?[0-7]+$/):2==d&&null!==c.match(/^-?[01]+$/):null!==c.match(/^-?[0-9]+$/))&&!isNaN(f=parseInt(a,b))){e&&(0>f&&(f+=Math.pow(2,36)),f=0<e?f*Math.pow(2,e):Math.trunc(f/Math.pow(2,-e)));var g=f}}return g}
|
||||
function sa(a,b,c,d,e){e=void 0===e?0:e;var f="";isNaN(a)?a=null:null!=a&&(0>a&&-1<a&&(a=-1),0>a&&(a+=Math.pow(b,c)),a>=Math.pow(b,c)&&(c=Math.ceil(Math.log(a)/Math.log(b))));for(var g=e||-1;0<c--;){g||(f=","+f,g=e);if(null==a)f="?"+f;else{var h=a%b;h+=0<=h&&9>=h?48:55;f=String.fromCharCode(h)+f;a=Math.trunc(a/b)}g--}return(void 0===d?"":d)+f}function ta(a,b,c){b?36<b&&(b=36):(b=Math.abs(a),b=255>=b?8:262143>=b?18:36);return sa(a,2,b,"",c)}
|
||||
function ua(a,b,c){b?12<b&&(b=12):(b=Math.abs(a),b=262143>=b?6:16777215>=b?8:12);return sa(a,8,b,c?"0o":"")}function q(a,b,c){b?9<b&&(b=9):(b=Math.abs(a),b=65535>=b?4:4294967295>=b?8:9);return sa(a,16,b,c?"0x":"")}function va(a){return q(a,2,!0)}function wa(a){return q(a,4,!0)}function xa(a,b){var c=a,d=a.lastIndexOf("/");0<=d&&(c=a.substr(d+1));d=c.indexOf("&");0<d&&(c=c.substr(0,d));b&&(d=c.lastIndexOf("."),0<d&&(c=c.substring(0,d)));return c}
|
||||
function ya(a){var b="",c=a.lastIndexOf(".");0<=c&&(b=a.substr(c+1).toLowerCase());return b}function za(a,b){return-1!==a.indexOf(b,a.length-b.length)}function Aa(a){return a.replace(/[&<>"']/g,function(a){return Ba[a]})}function Ca(a,b,c){return c?(" "+a).slice(-b):(a+" ").slice(0,b)}function Da(a){return String.prototype.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}
|
||||
var Ba={"&":"&","<":"<",">":">",'"':""","'":"'"},Ea={0:"NUL",1:"SOH",2:"STX",3:"ETX",4:"EOT",5:"ENQ",6:"ACK",7:"BEL",8:"BS",9:"TAB",10:"LF",11:"VT",12:"FF",13:"CR",14:"SO",15:"SI",16:"DLE",17:"XON",18:"DC2",19:"XOFF",20:"DC4",21:"NAK",22:"SYN",23:"ETB",24:"CAN",25:"EM",26:"SUB",27:"ESC",28:"FS",29:"GS",30:"RS",31:"US"};
|
||||
function Fa(a,b,c){var d=0,e=a.length,f=0;for(c||(c=function(a,b){return a>b?1:a<b?-1:0});d<e;){var g=d+e>>1;var h=c(b,a[g]);0<h?d=g+1:(e=g,f=!h)}return f?d:~d}
|
||||
function Ga(a){var b,c="";b||(b=new Date);for(var d=b.getHours(),e=b.getDate(),f=b.getMonth()+1,g=0;g<a.length;g++){var h;switch(h=a.charAt(g)){case "a":c+=12>d?"am":"pm";break;case "d":c+=("0"+e).slice(-2);break;case "D":c+=Ha[b.getDay()].substr(0,3);break;case "F":c+=Ia[f-1];break;case "g":c+=d?12<d?d-12:d:12;break;case "h":c+=d;break;case "H":c+=("0"+d).slice(-2);break;case "i":c+=("0"+b.getMinutes()).slice(-2);break;case "j":c+=e;break;case "l":c+=Ha[b.getDay()];break;case "m":c+=("0"+f).slice(-2);
|
||||
break;case "M":c+=Ia[f-1].substr(0,3);break;case "n":c+=f;break;case "s":c+=("0"+b.getSeconds()).slice(-2);break;case "y":c+=(""+b.getFullYear()).slice(-2);break;case "Y":c+=b.getFullYear();break;default:c+=h}}return c}function Ja(a,b){if(Array.prototype.indexOf)return a.indexOf(b,c);var c=c||0;0>c&&(c+=a.length);0>c&&(c=0);for(var d=a.length;c<d;c++)if(c in a&&a[c]===b)return c;return-1}
|
||||
var Ha="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Ia="January February March April May June July August September October November December".split(" "),Ka=[31,28,31,30,31,30,31,31,30,31,30,31],La=Date.now||function(){return+new Date};
|
||||
function Ma(a,b,c,d,e){c=void 0===c?!1:c;var f=0,g=null,h=null;if("object"==typeof resources&&(g=resources[a]))return d&&d(a,g,f),[g,f];if(c&&"function"==typeof resources)return resources(a,function(b,c){d&&d(a,b,c)}),h;var k=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");c&&(k.onreadystatechange=function(){4!==k.readyState?e&&e(1):(g=k.responseText,200==k.status||!k.status&&g.length&&"file:"==(window?window.location.protocol:"file:")||(f=k.status||-1),
|
||||
e&&e(2),d&&d(a,g,f))});e&&e(0);if(b&&"object"==typeof b){var m="",p;for(p in b)b.hasOwnProperty(p)&&(m&&(m+="&"),m+=p+"="+encodeURIComponent(b[p]));m=m.replace(/%20/g,"+");k.open("POST",a,c);k.setRequestHeader("Content-type","application/x-www-form-urlencoded");k.send(m)}else k.open("GET",a,c),"bytes"==b&&k.overrideMimeType("text/plain; charset=x-user-defined"),k.send();c||(g=k.responseText,200!=k.status&&(f=k.status||-1),d&&d(a,g,f),h=[g,f]);return h}
|
||||
function Na(){return"http://"+(window?window.location.host:"www.pcjs.org")}function Oa(){return window?window.navigator.userAgent:""}function Pa(){if(null==Qa){var a=!1;if(window)try{window.localStorage.setItem("PCjs.localStorage","PCjs.localStorage"),a="PCjs.localStorage"==window.localStorage.getItem("PCjs.localStorage"),window.localStorage.removeItem("PCjs.localStorage")}catch(b){a=!1}Qa=a}return Qa}function Sa(a){if(window)try{var b=window.localStorage.getItem(a)}catch(c){}return b}
|
||||
function Ta(a,b){try{return window.localStorage.setItem(a,b),!0}catch(c){}return!1}function Ua(a){if(window){var b=Oa();return"iOS"==a&&!!b.match(/(iPod|iPhone|iPad)/)&&!!b.match(/AppleWebKit/)||"MSIE"==a&&!!b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)}return!1}function Va(a,b,c){if(a)for(var d=0;d<Wa.length;d++){var e=Wa[d];if(c){if(e+=c,b+e in a)return e}else if(e=e?e+b[0].toUpperCase():b[0],e+=b.substr(1),e in a)return e}return null}
|
||||
function Xa(a){if(!Ya){var b,c={};if(window){b||(b=window.location.search.substr(1));for(var d,e=/\+/g,f=/([^&=]+)=?([^&]*)/g;d=f.exec(b);)c[decodeURIComponent(d[1].replace(e," "))]=decodeURIComponent(d[2].replace(e," "))}Ya=c}return Ya[a]||Ya[a.toLowerCase()]}
|
||||
function Za(a,b,c,d){var e=null;b="data:application/"+b+(c?";base64":"")+",";b=Ua("Firefox")?b+(c?a:encodeURIComponent(a)):b+(c?a:encodeURI(a));d&&(e=document.createElement("a"),"string"!=typeof e.download&&(e=null));e?(e.href=b,e.download=d,document.body.appendChild(e),e.click(),document.body.removeChild(e),a="Check your Downloads folder for "+d+"."):(window.open(b),a="Check your browser for a new window/tab containing the requested data"+(d?" ("+d+")":"")+".");return a}
|
||||
function $a(a,b,c){function d(){--a;0<=a&&(b()||(a=0));0<a?setTimeout(d,0):c()}d()}function ab(a,b){function c(){b(100===d)&&(e=setTimeout(c,d),d=100)}var d=0,e=null,f=!1;a.onmousedown=function(){f||e||(d=500,c())};a.ontouchstart=function(){e||(d=500,c())};a.onmouseup=a.onmouseout=function(){e&&(clearTimeout(e),e=null)};a.ontouchend=a.ontouchcancel=function(){e&&(clearTimeout(e),e=null);f=!0}}function bb(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}
|
||||
function cb(a){db.init.push(a)}function fb(a){if(gb)try{for(var b=0;b<a.length;b++)a[b]()}catch(c){kb(""+("An unexpected exception occurred:\n\n"+c.message+"\n\nPlease send this information to support@pcjs.org. Thanks."))}}function lb(a){!gb&&a?(gb=!0,mb&&nb("init"),ob&&nb("show")):gb=a}function nb(a){db[a]&&fb(db[a])}var Ya=null,db={init:[],show:[],exit:[]},Wa=["","moz","ms","webkit"],mb=!1,ob=!1,gb=!0,Qa=null;bb("onload",function(){mb=!0;fb(db.init)});bb("onpageshow",function(){ob=!0;fb(db.show)});
|
||||
bb(Ua("iOS")?"onpagehide":Ua("Opera")?"onunload":"onbeforeunload",function(){fb(db.exit)});function pb(a,b,c){this.type=a;b||(b={id:"",name:""});this.id=b.id||"";this.name=b.name;this.uj=b.comment;this.Jk=b;this.exports={};this.ma=this.bindings={};a=this.id.indexOf(".");0>a?this.ye=this.id:(this.de=this.id.substr(0,a),this.ye=this.id.substr(a+1));this.aa={ready:!1,mf:!1,Xg:!1,pf:!1,ac:!1,we:!1,error:!1};this.lg=null;this.aa.error=!1;this.dc=c||0;this.ca=this.G=this.oa=this.na=null;qb.push(this)}
|
||||
function rb(a,b,c){sb[a]&&b&&(sb[a][b]=c)}function kb(a){window&&window.alert(a)}function tb(a){var b=!1;window&&(b=window.confirm(a));return b}function ub(a,b){a.value+=b;b=a.value;8192<b.length&&(a.value=b.substr(b.length-4096));a.scrollTop=a.scrollHeight}function vb(a,b,c){var d=a.value,e=d.lastIndexOf(b);0>e?d+=b+"\n":d=d.substr(0,e)+c+d.substr(e+b.length);8192<d.length&&(d=d.substr(d.length-4096));a.value=d;a.scrollTop=a.scrollHeight}
|
||||
function wb(a,b,c){var d;b&&(void 0===d&&(d="Panel"),(d=xb(d,a.id))&&(b=d.ma[b])&&a.Eb(null,c,b))}function yb(a,b){b=zb(b.parentNode,"pcx86-control");for(var c=0;c<b.length;c++)for(var d=b[c].childNodes,e=0;e<d.length;e++){var f=d[e];if(1===f.nodeType){var g=f.getAttribute("class");if(g)for(var h=g.split(" "),k=0;k<h.length;k++)switch(g=h[k],g){case "pcx86-binding":(g=Ab(f))&&g.binding&&a.Eb(g.type,g.binding,f,g.value),k=h.length}}}}
|
||||
function Bb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;b<qb.length;b++){var d=qb[b];a&&d.id.indexOf(a)||c.push(d)}return c}function Cb(a,b){if(void 0!==a){var c;b&&0<(c=b.indexOf("."))&&(a=b.substr(0,c+1)+a);for(c=0;c<qb.length;c++)if(qb[c].id===a)return qb[c]}return null}
|
||||
function xb(a,b){var c;if(void 0!==a){var d;b&&(b=0<(d=b.indexOf("."))?b.substr(0,d+1):"");for(d=0;d<qb.length;d++)if(c)c==qb[d]&&(c=null);else if(!(a!=qb[d].type||b&&qb[d].id.indexOf(b)))return qb[d]}return null}function Ab(a){var b=null;if(a=a.getAttribute("data-value"))try{b=eval("("+a+")")}catch(c){kb(c.message+" ("+a+")")}return b}
|
||||
function zb(a,b,c){c&&(b+="-"+c+"-object");if(a.getElementsByClassName)return a.getElementsByClassName(b);var d;c=[];a=a.getElementsByTagName("*");var e=new RegExp("(^| )"+b+"( |$)");b=0;for(d=a.length;b<d;b++)e.test(a[b].className)&&c.push(a[b]);return c}
|
||||
function Db(a,b){var c=!1;a+=".machine";if(!b)delete Eb[a],c=!0;else if("string"==typeof b&&!Eb[a]){c=!0;for(var d=Eb,e=a,f=b.length,g=[],h=[],k="",m=null,p=0;p<f;p++){var v=b[p];if('"'==v||"'"==v)m&&v!=m?k+=v:(m?m=null:m=v,k&&(h.push(k),k=""));else{if(!m){if("\r"==v||"\n"==v)v=";";if(" "==v||"\t"==v||";"==v){k&&(h.push(k),k="");";"==v&&h.length&&(g.push(h),h=[]);continue}}k+=v}}k&&h.push(k);h.length&&g.push(h);d[e]=g;Fb(a)||(c=!1)}return c}
|
||||
function Fb(a){for(var b=!0,c=Eb[a];c&&c.length;){var d=c.splice(0,1)[0],e=d[0],f=null;0<=Gb.indexOf(e)&&(f=function(){return function(){Fb(a)}}());var g=Hb[e];if(g)if(!f)b=g(d[1],d[2],d[3]);else{if(!g(f,d[1],d[2],d[3]))break}else{b=!1;var h=xb(d[1],a);if(h)if(g=Ib[e])b=g(h,d[2],d[3]);else{var k=h.exports;if(k&&(g=k[e]))if(b=!0,!f)b=g.call(h,d[2],d[3]);else if(!g.call(h,f,d[2],d[3]))break}}if(!b){kb("Script error: '"+e+(g?" failed":" unrecognized"));break}}c&&!c.length&&delete Eb[a];return b}l=pb.prototype;
|
||||
l.toString=function(){return this.name?this.name:this.id||this.type};
|
||||
l.Eb=function(a,b,c){switch(b){case "clear":return this.ma[b]||(this.ma[b]=c,c.onclick=function(a){return function(){a.ma.print&&(a.ma.print.value="")}}(this)),!0;case "print":return this.ma[b]||(this.ma[b]=c,this.Da=function(a){this.O(a,this.type);return!0},c.value="",this.print=function(a){return function(b){ub(a,b)}}(c),this.O=function(a,b){return function(a,c){a||(a="");c!=Kb||"..."!=a.slice(-3)?(c&&(a=c+": "+a),ub(b,a+"\n")):vb(b,a,a+".")}}(this,c)),!0;default:return!1}};l.log=function(){};
|
||||
l.print=function(){};l.O=function(){};l.status=function(a){this.O(this.type+": "+a)};l.Da=function(a,b,c){if(!b){var d=xb("Computer",this.id);if(d&&d.aa.we)return console.log("ignoring notice during unload: "+a),!1}c=c||this.type;b||kb((c?c+": ":"")+a);return!0};function Mb(a,b){a.aa.error=!0;a.Da(b)}function Nb(a){return a.aa.error?(a.O(a.toString()+" error"),!0):!1}function Ob(a,b){b&&(a.aa.ready?b():a.lg=b);return a.aa.ready}
|
||||
function Pb(a,b){a.aa.error||(a.aa.ready=!1!==b,a.aa.ready&&(b=a.lg,a.lg=null,b&&b()))}function Qb(a,b){a.aa.mf&&(b?a.aa.Xg=!0:void 0===b&&a.O(a.toString()+" busy"));return a.aa.mf}function Rb(a,b){if(a.aa.Xg)return a.aa.mf=!1,a.aa.Xg=!1;if(a.aa.error)return a.O(a.toString()+" error"),!1;a.aa.mf=b;return a.aa.mf}l.$b=function(){return this.aa.ac=!0};l.Zb=function(a,b){b&&(this.aa.ac=!1);return!0};
|
||||
function r(a,b){if(a.ca){a===a.ca?b|=0:b=b||a.dc;var c=a.ca.dc&b;return!!b&&c===b||!!(c&a.ca.pl)}return!1}function Tb(a,b,c,d){a.ca&&(!0===c||r(a,c|0))&&a.ca.message(b,d)}function t(a,b,c,d,e,f,g){a.ca&&(!0===g?g=0:null==g&&(g=a.dc),Ub(a.ca,a,b,c,d,e,f,g))}var Kb="progress";window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]),window.PCjs.Commands||(window.PCjs.Commands={}));
|
||||
var sb=window?window.PCjs.Machines:{},qb=window?window.PCjs.Components:[],Eb=window?window.PCjs.Commands:{},Gb=["hold","sleep","wait"],Hb={alert:function(a){kb(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},Ib={select:function(a,b,c){var d=!1;if(a=a.bindings[b])for(b=0;b<a.options.length;b++)if(a.options[b].textContent==c){a.selectedIndex!=b&&(a.selectedIndex=b);d=!0;break}return d}};
|
||||
Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1});Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});
|
||||
Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return e.apply(this instanceof c&&a?this:a,d.concat(Array.prototype.slice.call(arguments)))}function c(){}if("function"!=typeof this)throw new TypeError("Function.prototype.bind: non-callable object");var d=Array.prototype.slice.call(arguments,1),e=this;c.prototype=this.prototype;b.prototype=new c;return b});
|
||||
var Vb="undefined"!==typeof ArrayBuffer,Wb={wg:4,xc:5,yd:6,Qc:7,Rc:8,Za:9,Wb:11,Xb:12,re:4,Dj:60,Ej:83,mc:3,Mb:9,Bc:16,vg:1,Ij:19,Kj:28,Mj:16,Lj:21,Jj:37,Gj:2,xh:9,Hj:5,Fj:33,zh:10,yh:8,Af:3,zf:15,$j:51,ak:1,bk:2,ck:4,Zj:32,Ah:15,ek:15,Ta:16,Ua:4,gk:11,fk:18,dk:24,Yb:4,hk:2,Ve:16,ik:17,Fh:18,jk:19,Eh:5,Gh:6,pk:2,nk:8,lk:9,mk:10,kk:10,Hh:10,Ih:10,Oj:80,Qj:144,Nj:86,Pj:154,Sj:101,Uj:165,Rj:107,Tj:171,rk:70,tk:113,qk:76,sk:124,Wj:80,Yj:128,Vj:86,Xj:134,Cf:3,Bf:16,Nh:10,Mh:8,uk:51,nc:8,vk:17,wk:36,Ic:11,
|
||||
xk:16,se:10,Zc:2,uh:18,vh:7,wh:15,Bh:12,Ch:7,Dh:11,Jh:18,Kh:7,Lh:15,Oh:15,Ph:7,Qh:13,Uh:11,Vh:7,Wh:8,yk:8,Bk:12,zk:18,Ak:17,Ck:15,Sh:8,Rh:20,Th:2,Zh:3,Df:9,Yh:5,Xh:11,ai:4,$h:17,Dk:11},Xb={wg:0,xc:0,yd:0,Qc:0,Rc:0,Za:0,Wb:1,Xb:1,re:3,Dj:14,Ej:16,mc:2,Mb:7,Bc:7,vg:0,Ij:7,Kj:13,Mj:7,Lj:11,Jj:16,Gj:3,xh:6,Hj:2,Fj:13,zh:5,yh:5,Af:2,zf:7,$j:23,ak:0,bk:1,ck:3,Zj:17,Ah:7,ek:11,Ta:7,Ua:3,gk:7,fk:11,dk:15,Yb:2,hk:3,Ve:7,ik:8,Fh:8,jk:8,Eh:4,Gh:4,pk:2,nk:3,lk:5,mk:2,kk:3,Hh:5,Ih:3,Oj:14,Qj:22,Nj:17,Pj:25,Sj:17,
|
||||
Uj:25,Rj:20,Tj:28,rk:13,tk:21,qk:16,sk:24,Wj:13,Yj:21,Vj:16,Xj:24,Cf:2,Bf:7,Nh:5,Mh:5,uk:19,nc:5,vk:5,wk:17,Ic:3,xk:5,se:3,Zc:0,uh:8,vh:5,wh:9,Bh:5,Ch:5,Dh:4,Jh:5,Kh:5,Lh:4,Oh:7,Ph:5,Qh:8,Uh:3,Vh:4,Wh:3,yk:11,Bk:11,zk:15,Ak:15,Ck:7,Sh:5,Rh:8,Th:0,Zh:2,Df:6,Yh:3,Xh:6,ai:3,$h:5,Dk:5},Yb={19:{0:"disk reset",1:"get status",2:"read drive @DL (@CH:@DH:@CL,@AL) into @ES:@BX",3:"write drive @DL (@CH:@DH:@CL,@AL) from @ES:@BX",4:"verify drive @DL (@CH:@DH:@CL,@AL)",5:"format drive @DL using @ES:@BX",8:"read drive @DL parameters",
|
||||
21:"get drive @DL DASD type",22:"get drive @DL change line status",23:"set drive @DL DASD type",24:"set drive @DL media type"},21:{128:"open device",129:"close device",130:"program termination",131:"wait @CX:@DXus for event",132:"joystick support",133:"SYSREQ pressed",134:"wait @CX:@DXus",135:"move block (@CX words)",136:"get extended memory size",137:"processor to virtual mode",144:"device busy loop",145:"interrupt complete flag set"},33:{0:"terminate program",1:"read character (AL) from stdin with echo",
|
||||
2:"write character #@DL to stdout",3:"read character (AL) from stdaux",4:"write character #@DL to stdaux",5:"write character #@DL to stdprn",6:"direct console output (input if @DL=FF)",7:"direct console input without echo",8:"read character (AL) from stdin without echo",9:"write string $@DS:@DX to stdout",10:"buffered input (DS:DX)",11:"get stdin status",12:"flush buffer and read stdin",13:"disk reset",14:"select default drive @DL",15:"open file using FCB ^@DS:@DX",16:"close file using FCB ^@DS:@DX",
|
||||
17:"find first matching file using FCB ^@DS:@DX",18:"find next matching file using FCB ^@DS:@DX",19:"delete file using FCB ^@DS:@DX",20:"sequential read from file using FCB ^@DS:@DX",21:"sequential write to file using FCB ^@DS:@DX",22:"create or truncate file using FCB ^@DS:@DX",23:"rename file using FCB ^@DS:@DX",25:"get current default drive (AL)",26:"set disk transfer area (DTA=@DS:@DX)",27:"get allocation information for default drive",28:"get allocation information for specific drive @DL",31:"get drive parameter block for default drive",
|
||||
33:"read random record from file using FCB ^@DS:@DX",34:"write random record to file using FCB ^@DS:@DX",35:"get file size using FCB ^@DS:@DX",36:"set random record number for FCB ^@DS:@DX",37:"set address @DS:@DX of interrupt vector @AL",38:"create new PSP at segment @DX",39:"random block read from file using FCB ^@DS:@DX",40:"random block write to file using FCB ^@DS:@DX",41:"parse filename $@DS:@SI into FCB @ES:@DI using @AL",42:"get system date (year=CX, mon=DH, day=DL)",43:"set system date (year=@CX, mon=@DH, day=@DL)",
|
||||
44:"get system time (hour=CH, min=CL, sec=DH, 100ths=DL)",45:"set system time (hour=@CH, min=@CL, sec=@DH, 100ths=@DL)",46:"set verify flag @AL",47:"get disk transfer area (DTA=ES:BX)",48:"get DOS version (AL=major, AH=minor)",49:"terminate and stay resident",50:"get drive parameter block (DPB=DS:BX) for drive @DL",51:"extended break check",52:"get address (ES:BX) of InDOS flag",53:"get address (ES:BX) of interrupt vector @AL",54:"get free disk space of drive @DL",55:"get(0)/set(1) switch character @DL (@AL)",
|
||||
56:"get country-specific information",57:"create subdirectory $@DS:@DX",58:"remove subdirectory $@DS:@DX",59:"set current directory $@DS:@DX",60:"create or truncate file $@DS:@DX with attributes @CX",61:"open file $@DS:@DX with mode @AL",62:"close file @BX",63:"read @CX bytes from file @BX into buffer @DS:@DX",64:"write @CX bytes to file @BX from buffer @DS:@DX",65:"delete file $@DS:@DX",66:"set position @CX:@DX of file @BX relative to @AL",67:"get(0)/set(1) attributes @CX of file $@DS:@DX (@AL)",
|
||||
68:"get device information (IOCTL)",69:"duplicate file handle @BX",70:"force file handle @CX to duplicate file handle @BX",71:"get current directory (DS:SI) for drive @DL",72:"allocate memory segment with @BX paragraphs",73:"free memory segment @ES",74:"resize memory segment @ES to @BX paragraphs",75:"load program $@DS:@DX using parameter block @ES:@BX",76:"terminate with return code @AL",77:"get return code (AL)",78:"find first matching file $@DS:@DX with attributes @CX",79:"find next matching file",
|
||||
80:"set current PSP @BX",81:"get current PSP (bx)",82:"get system variables (ES:BX)",83:"translate BPB @DS:@SI to DPB (ES:BP)",84:"get verify flag (AL)",85:"create child PSP at segment @DX",86:"rename file $@DS:@DX to $@ES:@DI",87:"get(0)/set(1) file @BX date @DX and time @CX (@AL)",88:"get(0)/set(1) memory allocation strategy (@AL)",89:"get extended error information",90:"create temporary file $@DS:@DX with attributes @CX",91:"create file $@DS:@DX with attributes @CX",92:"lock(0)/unlock(1) file @BX region @CX:@DX length @SI:@DI (@AL)",
|
||||
93:"critical error information (@AL)",96:"get fully-qualified filename from $@DS:@SI",99:"get lead byte table (@AL)",108:"extended open file $@DS:@SI"},65:{79:"check debugger loaded"}},Zb={cpu:1,seg:2,desc:4,tss:8,"int":16,fault:32,bus:64,mem:128,port:256,dma:512,pic:1024,timer:2048,cmos:4096,rtc:8192,8042:16384,chipset:32768,keyboard:65536,key:131072,video:262144,fdc:524288,hdc:1048576,disk:2097152,parallel:4194304,serial:8388608,mouse:16777216,speaker:33554432,computer:67108864,dos:134217728,data:268435456,
|
||||
log:536870912,warn:1073741824,halt:-2147483648};function $b(a){pb.call(this,"Panel",a);this.li=this.A=this.B=this.H=-1}ia($b,pb);l=$b.prototype;l.tc=function(a,b,c,d){this.na=a;this.oa=b;this.G=c;this.ca=d;this.C=ac(a,"Keyboard")};l.Eb=function(a,b,c,d){return this.na&&this.na.Eb(a,b,c,d)||this.G&&this.G.Eb(a,b,c,d)||this.C&&this.C.Eb(a,b,c,d)||this.ca&&this.ca.Eb(a,b,c,d)?!0:pb.prototype.Eb.call(this,a,b,c,d)};l.$b=function(a,b){b||bc();return!0};l.Zb=function(){return!0};
|
||||
l.Xd=function(a,b){a.button||(this.H=b?0:-1,dc(this,a,b))};l.sf=function(a){dc(this,a)};
|
||||
function dc(a,b,c){var d=ec/null.offsetWidth,e=fc/null.offsetHeight,f=null.getBoundingClientRect();d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.H||(a.H=Math.abs(a.A-d)>Math.abs(a.B-b)?1:2),1==a.H?b=a.B:2==a.H&&(d=a.A));a.A=d;a.B=b;if(0<=d&&d<ec&&0<=b&&b<fc){a:{c=d;if(c<gc&&a.F&&a.F.Oi)for(f=0;f<a.F.Oi.length;f++)if(e=a.F.Oi[f],e.contains(c,b)){c-=e.x;b-=e.y;f=a.F.kq[f];d=hc.nn;var g=(a.F.jq[f.oq]&d.dn)>>d.shift;d=g*a.oa.B;f=(g+f.mq)*a.oa.B-1;0<b&&(d+=e.nq*(b-1)*a.ha);d+=c*a.ha;d|=
|
||||
0;d>f&&(d=f);c=d;break a}c=-1}if(-1!==c&&(c&=-16,c!=a.N)){b=c;if(a.context&&a.K&&a.L){e=ic-jc;f=a.K.width;a.L.fillStyle=kc;a.L.fillRect(0,e,f,jc);d=e+lc;g=a.K;var h=a.L,k,m=null.style.color,p=a.ka=10;a.D=p;a.J=d;a.ea=a.ba=lc;k||(k=a.U||a.ba+"px "+mc);a.Z=a.U=k;g&&(a.P=g);h&&(a.I=h,a.V=m||"white");a.M=a.P.width/24|0;if(null==b)nc(a,"Mouse over memory to dump");else for(nc(a,q(b,8,!0),null,0,1),k=1;16>=k;k++){d="";for(g=1;8>=g;g++)h=a.oa,m=b++,h=h.Z[(m&h.C)>>>h.A].ae(m&h.D,m),nc(a,q(h,2),null,1),d+=
|
||||
32<=h&&128>h?String.fromCharCode(h):".";nc(a,d,null,0,1)}a.context.drawImage(a.K,0,e,f,jc,a.ra,a.ta,a.la,a.qa)}a.N=c}}}function nc(a,b,c,d,e){a.I.font=a.Z;a.I.fillStyle=a.V;a.I.fillText(b,a.D,a.J);a.D+=a.M;null!=c&&(16!=a.pa?b=c.toString():(b=8>a.fa?"0x":"",b+=q(c,a.fa)),a.I.fillText(b,a.D,a.J),a.D+=a.M);d&&(a.D+=a.M*d);e&&(a.D=a.ka,a.J+=(a.ea+2)*(e||1))}
|
||||
function bc(){for(var a=!1,b=zb(document,"pcx86","panel"),c=0;c<b.length;c++){var d=b[c],e=Ab(d),f=Cb(e.id);f||(a=!0,f=new $b(e));yb(f,d);a&&Pb(f)}}var ec=1280,fc=720,lc=18,mc="Monaco, Lucida Console, Courier New",gc=3*ec>>2,ic=fc,kc="black",jc=fc>>1;cb(bc);
|
||||
function oc(a,b,c){pb.call(this,"Bus",a);this.G=b;this.ca=c;this.I=a.busWidth||20;this.ba=Math.pow(2,this.I);this.N=this.C=this.ba-1|0;this.A=32==this.I||20>=this.I?12:24>=this.I?14:15;this.B=1<<this.A;this.ea=this.B>>2;this.D=this.B-1;this.M=this.ba/this.B|0;this.P=this.M-1;this.F=[];this.H=[];this.K=this.L=!1;this.V=[];this.U=[];a=new w;pc(a,this.ca);this.Z=Array(this.M);for(b=0;b<this.M;b++)this.Z[b]=a;a=this.G;b=this.Z;c=this.A;a.sc=a.Z=b;a.lb=c;a.Lg=1<<a.lb;a.Fb=a.Lg-1;a.Rf=b.length;a.df=a.Rf-
|
||||
1;a=this.G;a.ef=a.bd=this.C;Pb(this)}ia(oc,pb);l=oc.prototype;l.reset=function(){qc(this,!0)};l.$b=function(a,b){b||this.reset();return!0};
|
||||
function rc(a,b,c,d,e){for(var f=b,g=c,h=f>>>a.A;0<g&&h<a.Z.length;){var k=a.Z[h],m=h*a.B,p=a.B-(f-m);p>g&&(p=g);if(k&&k.size){if(k.type==d&&k.controller==e){if(f+g<=k.za)return k.xe+=k.za-f,k.za=f,!0;if(f>=k.za+k.xe){p=k.size-(f-m);p>g&&(p=g);k.xe=f-k.za+p;f=m+a.B;g-=p;h++;continue}}return sc(a,tc,f,g)}f=new w(f,p,a.B,d,e);pc(f,a.ca,k);a.Z[h++]=f;f=m+a.B;g-=p}return 0>=g?(uc(a.G),a.G.aa.Xa||(e=c/1024|0,a.status((e?e+"Kb ":c+" bytes ")+wc[d]+" at "+q(b))),!0):sc(a,xc,b,c)}
|
||||
function qc(a,b){32==a.I?b?a.J&&(yc(a,1048576,1048576,a.J),a.J=null):a.J||(a.J=zc(a,1048576,1048576),yc(a,1048576,1048576,zc(a,0,1048576))):20<a.I&&(b=a.C&-1048577|(b?1048576:0),b!=a.C&&(a.C=b,a.G&&(a=a.G,a.ef=a.bd=b)))}l.Hg=function(a,b,c,d){if(!(a&this.D||!b||b&this.D)){for(var e=a>>>this.A;0<b;){var f=this.Z[e];if(!f.controller)return sc(this,Bc,a,b,d);Cc(f,c,!0);b-=this.B;e++}return!0}return sc(this,Dc,a,b)};
|
||||
function Ec(a,b,c){if(!(b&a.D||!c||c&a.D)){for(var d=b>>>a.A;0<c;){var e=a.Z[d];b=new w(b);pc(b,a.ca,e);a.Z[d++]=b;b=d*a.B;c-=a.B}uc(a.G);return!0}return sc(a,Fc,b,c)}function zc(a,b,c){var d=[];for(b>>>=a.A;0<c&&b<a.Z.length;)d.push(a.Z[b++]),c-=a.B;return d}
|
||||
function yc(a,b,c,d,e){for(var f=0,g=b>>>a.A;0<c&&g<a.Z.length;){var h=d[f++];if(!h)break;if(void 0!==e){var k=new w(b),m=k,p=e,v=a.ca;m.id=h.id|1;m.xe=h.xe;m.size=h.size;p&&(m.type=p,m.D=p==Gc);Vb?(m.I=h.I,m.H=h.H,m.Qa=h.Qa,m.Td=h.Td,m.W=h.W,Cc(m,Hc?Ic:Jc)):(m.W=h.W,Cc(m,Kc));pc(m,v,h);h=k}a.Z[g++]=h;c-=a.B}}l.ya=function(a){return this.Z[(a&this.C)>>>this.A].Cc(a&this.D,a)};function Lc(a,b){var c=b&a.D,d=(b&a.C)>>>a.A;return c!=a.D?a.Z[d].Kf(c,b):a.Z[d++].ae(c,b)|a.Z[d&a.P].ae(0,b+1)<<8}
|
||||
l.ub=function(a,b){this.Z[(a&this.C)>>>this.A].Ec(a&this.D,b&255,a)};function Mc(a,b,c){var d=b&a.D,e=(b&a.C)>>>a.A;d!=a.D?a.Z[e].oi(d,c&65535,b):(a.Z[e++].bf(d,c&255,b),a.Z[e&a.P].bf(0,c>>8&255,b+1))}
|
||||
function Nc(a,b){var c=0,d=[],e=!a.J&&a.N==a.C;e||qc(a,!0);for(var f=0;f<a.M;f++){var g=a.Z[f];if(b&&g.type!=Gc||g.Oa||g.mj){d[c++]=f;var h=c++;if(g=g.save()){for(var k=0,m=0,p=[];k<g.length;){for(var v=g[k],u=k+1;u<g.length&&g[u]===v;)u++;p[m++]=u-k;p[m++]=v;k=u}p.length<g.length&&(g=p)}d[h]=g}}e||qc(a,!1);d[c]=e;return d}function Oc(a,b){if(null==b)return a.K=!a.K,a.K;void 0===a.F[b]&&(a.F[b]=[null,!1]);a.F[b][1]=!a.F[b][1];return a.F[b][1]}
|
||||
function Pc(a,b,c,d){void 0===d&&(d=0);for(var e in c){var f=a,g=+e+d,h=c[e].bind(b);if(h)for(var k=+e+d;k<=g;k++)void 0!==f.F[k]?kb("Input port "+wa(k)+" already registered"):f.F[k]=[h,!1]}}function Qc(a,b,c,d){for(var e=0,f=0;0<c;){var g=a.F[b],h=a.V[b]||1,k=1==h?255:2==h?65535:-1,m=k;void 0!==g?(g[0]&&(m=g[0](b,d),null==m?m=k:m&=k),a.ca&&a.K!=g[1]&&Sc(a.ca,b,m)):a.ca&&(Ub(a.ca,a,b,null,d),a.K&&Sc(a.ca,b,m));e|=m<<f;f+=h<<3;b+=h;c-=h}return e}
|
||||
function Tc(a,b){if(null==b)return a.L=!a.L,a.L;void 0===a.H[b]&&(a.H[b]=[null,!1]);a.H[b][1]=!a.H[b][1];return a.H[b][1]}function Uc(a,b,c,d){void 0===d&&(d=0);for(var e in c){var f=a,g=+e+d,h=c[e].bind(b);if(h)for(var k=+e+d;k<=g;k++)void 0!==f.H[k]?kb("Output port "+wa(k)+" already registered"):f.H[k]=[h,!1]}}
|
||||
function Vc(a,b,c,d,e){for(var f=0;0<c;){var g=a.H[b],h=a.U[b]||1,k=1==h?255:2==h?65535:-1;k&=d>>>=f;if(void 0!==g){if(g[0])g[0](b,k,e);a.ca&&a.L!=g[1]&&Wc(a.ca,b,k)}else a.ca&&(Ub(a.ca,a,b,k,e),a.L&&Wc(a.ca,b,k));f+=h<<3;b+=h;c-=h}}function sc(a,b,c,d,e){b="Memory block error ("+b+": "+q(c)+","+q(d)+")";e?a.ca?a.ca.message(b):a.log(b):kb(b);return!1}var hc,Xc={nn:20,count:8,lq:1,type:3},Yc=0,Zc;for(Zc in Xc){var $c=Xc[Zc];Xc[Zc]={dn:(1<<$c)-1<<Yc,shift:Yc};Yc+=$c}hc=Xc;
|
||||
var tc=1,xc=2,Bc=3,Dc=4,Fc=5,ad;if(Vb){var bd=new ArrayBuffer(2);(new DataView(bd)).setUint16(0,256,!0);ad=256===(new Uint16Array(bd))[0]}else ad=!1;var Hc=ad;
|
||||
function w(a,b,c,d,e,f){this.id=cd+=2;this.W=null;this.G=0;this.za=a;this.xe=b;this.size=c||0;this.type=d||dd;this.D=d==Gc;this.controller=null;this.C=f;pc(this);this.Oa=this.mj=!1;if(c)if(e)this.controller=e,a=e.rj(a),this.W=a[0],this.G=a[1],Cc(this,e.bh());else if(Vb)this.I=new ArrayBuffer(c),this.H=new DataView(this.I,0,c),this.Qa=new Uint8Array(this.I,0,c),this.Td=new Uint16Array(this.I,0,c>>1),this.W=new Int32Array(this.I,0,c>>2),Cc(this,Hc?Ic:Jc);else{this.W=Array(c>>2);for(e=0;e<this.W.length;e++)this.W[e]=
|
||||
0;Cc(this,Kc)}else Cc(this)}l=w.prototype;l.fh=function(a){this.za=a};l.save=function(){var a;if(this.controller)var b=null;else if(Vb)for(b=Array(this.size>>2),a=0;a<b.length;a++)b[a]=this.H.getInt32(a<<2,!0);else b=this.W;return b};l.restore=function(a){if(this.controller)return!a;if(a&&this.size==a.length<<2){var b;if(Vb)for(b=0;b<a.length;b++)this.H.setInt32(b<<2,a[b],!0);else this.W=a;return this.Oa=!0}return!1};function Cc(a,b,c){b||(b=a.type==ed?fd:a.type==gd?hd:id);jd(a,b,c);kd(a,b,c)}
|
||||
function jd(a,b,c){c&&a.Fe||(a.Cc=b[0]||a.Ok,a.Jf=b[2]||a.Pk,a.Nd=b[4]||a.Mk);if(c||void 0===c)a.ae=b[0]||a.Ok,a.Kf=b[2]||a.Pk,a.fi=b[4]||a.Mk}function kd(a,b,c){c&&a.Ge||(a.Ec=!a.D&&b[1]||a.cf,a.Of=!a.D&&b[3]||a.ni,a.Nf=!a.D&&b[5]||a.mi);if(c||void 0===c)a.bf=b[1]||a.cf,a.oi=b[3]||a.ni,a.K=b[5]||a.mi}l.rd=function(a,b,c){b?0===this.Ge++&&(c&&(this.C=c),kd(this,ld,!1)):0===this.Fe++&&(c&&(this.C=c),jd(this,ld,!1))};
|
||||
function md(a,b){b?0===--a.Ge&&(a.Ec=a.D?a.cf:a.bf,a.Of=a.D?a.ni:a.oi,a.Nf=a.D?a.mi:a.K):0===--a.Fe&&(a.Cc=a.ae,a.Jf=a.Kf,a.Nd=a.fi)}function pc(a,b,c){a.ca=b;a.Fe=a.Ge=0;c&&(c.C&&(a.C=c.C),(a.Fe=c.Fe)&&jd(a,ld,!1),(a.Ge=c.Ge)&&kd(a,ld,!1))}l.Ok=function(a,b){this.ca&&r(this.ca,129)&&this.ca.message("attempt to read invalid block %"+q(b),!0);return 255};l.cf=function(a,b,c){this.ca&&r(this.ca,129)&&this.ca.message("attempt to write "+wa(b)+" to invalid block %"+q(c),!0)};
|
||||
l.Pk=function(a,b){return this.Cc(a++,b++)|this.Cc(a,b)<<8};l.Mk=function(a,b){return this.Cc(a++,b++)|this.Cc(a++,b++)<<8|this.Cc(a++,b++)<<16|this.Cc(a,b)<<24};l.ni=function(a,b,c){this.Ec(a++,b&255,c++);this.Ec(a,b>>8,c)};l.mi=function(a,b,c){this.Ec(a++,b&255,c++);this.Ec(a++,b>>8&255,c++);this.Ec(a++,b>>16&255,c++);this.Ec(a,b>>>24,c)};l.Bo=function(a){return this.W[a>>2]>>>((a&3)<<3)&255};
|
||||
l.No=function(a){var b=a>>2;a=(a&3)<<3;var c=this.W[b]>>a;return 24>a?c&65535:c&255|(this.W[b+1]&255)<<8};l.Ho=function(a){var b=a>>2;a=(a&3)<<3;var c=this.W[b];a&&(c=c>>>a|this.W[b+1]<<32-a);return c};l.cp=function(a,b){var c=a>>2;a=(a&3)<<3;this.W[c]=this.W[c]&~(255<<a)|b<<a;this.Oa=!0};l.pp=function(a,b){var c=a>>2;a=(a&3)<<3;24>a?this.W[c]=this.W[c]&~(65535<<a)|b<<a:(this.W[c]=this.W[c]&16777215|b<<24,c++,this.W[c]=this.W[c]&-256|b>>8);this.Oa=!0};
|
||||
l.jp=function(a,b){var c=a>>2;if(a=(a&3)<<3){var d=-1<<a;this.W[c]=this.W[c]&~d|b<<a;c++;this.W[c]=this.W[c]&d|b>>>32-a}else this.W[c]=b;this.Oa=!0};l.Ao=function(a,b){this.ca&&null!=this.za&&nd(this.ca,this.za+a)||this.C&&od(this.C,b,1,!1);return this.ae(a,b)};l.Mo=function(a,b){this.ca&&null!=this.za&&nd(this.ca,this.za+a,2)||this.C&&od(this.C,b,2,!1);return this.Kf(a,b)};l.Go=function(a,b){this.ca&&null!=this.za&&nd(this.ca,this.za+a,4)||this.C&&od(this.C,b,4,!1);return this.fi(a,b)};
|
||||
l.bp=function(a,b,c){this.ca&&null!=this.za&&pd(this.ca,this.za+a)||this.C&&od(this.C,c,1,!0);this.D?this.cf(0,b,c):this.bf(a,b,c)};l.op=function(a,b,c){this.ca&&null!=this.za&&pd(this.ca,this.za+a,2)||this.C&&od(this.C,c,2,!0);this.D?this.cf(0,b,c):this.oi(a,b,c)};l.ip=function(a,b,c){this.ca&&null!=this.za&&pd(this.ca,this.za+a,4)||this.C&&od(this.C,c,4,!0);this.D?this.cf(0,b,c):this.K(a,b,c)};l.Do=function(a,b){this.pb.W[this.A]|=this.F;this.qb.W[this.B]|=this.F;return this.td.Cc(a,b)};
|
||||
l.Po=function(a,b){this.pb.W[this.A]|=this.F;this.qb.W[this.B]|=this.F;return this.td.Jf(a,b)};l.Jo=function(a,b){this.pb.W[this.A]|=this.F;this.qb.W[this.B]|=this.F;return this.td.Nd(a,b)};l.fp=function(a,b,c){this.pb.W[this.A]|=this.F;this.qb.W[this.B]|=this.J;this.td.Ec(a,b,c)};l.rp=function(a,b,c){this.pb.W[this.A]|=this.F;this.qb.W[this.B]|=this.J;this.td.Of(a,b,c)};l.lp=function(a,b,c){this.pb.W[this.A]|=this.F;this.qb.W[this.B]|=this.J;this.td.Nf(a,b,c)};
|
||||
l.Eo=function(a,b){return qd(this.C,b,!1).Cc(a,b)};l.Qo=function(a,b){return qd(this.C,b,!1).Jf(a,b)};l.Ko=function(a,b){return qd(this.C,b,!1).Nd(a,b)};l.gp=function(a,b,c){qd(this.C,c,!0).Ec(a,b,c)};l.sp=function(a,b,c){qd(this.C,c,!0).Of(a,b,c)};l.mp=function(a,b,c){qd(this.C,c,!0).Nf(a,b,c)};l.zo=function(a){return this.Qa[a]};l.Lk=function(a){return this.Qa[a]};l.Co=function(a){this.pb.W[this.A]|=32;this.qb.W[this.B]|=32;this.Cc=this.Lk;return this.Qa[a]};
|
||||
l.Lo=function(a){return this.H.getUint16(a,!0)};l.Qk=function(a){return a&1?this.Qa[a]|this.Qa[a+1]<<8:this.Td[a>>1]};l.Oo=function(a){this.pb.W[this.A]|=32;this.qb.W[this.B]|=32;this.Jf=this.Qk;return a&1?this.Qa[a]|this.Qa[a+1]<<8:this.Td[a>>1]};l.Fo=function(a){return this.H.getInt32(a,!0)};l.Nk=function(a){return a&3?this.Qa[a]|this.Qa[a+1]<<8|this.Qa[a+2]<<16|this.Qa[a+3]<<24:this.W[a>>2]};
|
||||
l.Io=function(a){this.pb.W[this.A]|=32;this.qb.W[this.B]|=32;this.Nd=this.Nk;return a&3?this.Qa[a]|this.Qa[a+1]<<8|this.Qa[a+2]<<16|this.Qa[a+3]<<24:this.W[a>>2]};l.ap=function(a,b){this.Qa[a]=b;this.Oa=!0};l.Yk=function(a,b){this.Qa[a]=b;this.Oa=!0};l.ep=function(a,b){this.Qa[a]=b;this.pb.W[this.A]|=32;this.qb.W[this.B]|=96;this.Ec=this.Yk;this.td.Oa=!0};l.np=function(a,b){this.H.setUint16(a,b,!0);this.Oa=!0};l.$k=function(a,b){a&1?(this.Qa[a]=b,this.Qa[a+1]=b>>8):this.Td[a>>1]=b;this.Oa=!0};
|
||||
l.qp=function(a,b){a&1?(this.Qa[a]=b,this.Qa[a+1]=b>>8):this.Td[a>>1]=b;this.pb.W[this.A]|=32;this.qb.W[this.B]|=96;this.Of=this.$k;this.td.Oa=!0};l.hp=function(a,b){this.H.setInt32(a,b,!0);this.Oa=!0};l.Zk=function(a,b){a&3?(this.Qa[a]=b,this.Qa[a+1]=b>>8,this.Qa[a+2]=b>>16,this.Qa[a+3]=b>>24):this.W[a>>2]=b;this.Oa=!0};
|
||||
l.kp=function(a,b){a&3?(this.Qa[a]=b,this.Qa[a+1]=b>>8,this.Qa[a+2]=b>>16,this.Qa[a+3]=b>>24):this.W[a>>2]=b;this.pb.W[this.A]|=32;this.qb.W[this.B]|=96;this.Nf=this.Zk;this.td.Oa=!0};function wd(a){Vb&&!Hc&&(a=a<<24|a<<8&16711680|a>>8&65280|a>>>24);return a}
|
||||
var dd=0,Gc=2,ed=5,gd=6,wc="NONE RAM ROM VIDEO H/W UNPAGED PAGED".split(" "),cd=0,id=[],Kc=[w.prototype.Bo,w.prototype.cp,w.prototype.No,w.prototype.pp,w.prototype.Ho,w.prototype.jp],ld=[w.prototype.Ao,w.prototype.bp,w.prototype.Mo,w.prototype.op,w.prototype.Go,w.prototype.ip],hd=[w.prototype.Do,w.prototype.fp,w.prototype.Po,w.prototype.rp,w.prototype.Jo,w.prototype.lp],fd=[w.prototype.Eo,w.prototype.gp,w.prototype.Qo,w.prototype.sp,w.prototype.Ko,w.prototype.mp];
|
||||
if(Vb)var Jc=[w.prototype.zo,w.prototype.ap,w.prototype.Lo,w.prototype.np,w.prototype.Fo,w.prototype.hp],Ic=[w.prototype.Lk,w.prototype.Yk,w.prototype.Qk,w.prototype.$k,w.prototype.Nk,w.prototype.Zk],xd=[w.prototype.Co,w.prototype.ep,w.prototype.Oo,w.prototype.qp,w.prototype.Io,w.prototype.kp];
|
||||
function yd(a,b){pb.call(this,"CPU",a,1);b=a.cycles||b;var c=a.multiplier||1;this.Y={};this.Y.Yd=b;this.Y.lh=Math.round(1E3/zd);this.Y.Cj=this.Y.ph=this.Y.Ad=c;this.Y.og=Math.round(this.Y.Yd/1E4)/100;this.Y.Kd=this.Y.pe=this.Y.og*this.Y.Ad;this.aa.ki=this.aa.Xa=this.aa.Pf=!1;this.aa.he=a.autoStart;this.aa.hj=!1;this.aa.Ie=!1;this.Y.uf=this.Y.Se=0;this.Y.wf=a.csStart;this.Y.Re=a.csInterval;this.Y.Te=a.csStop;this.qa=[];this.Rd=0;this.wj=this.Ro.bind(this)}ia(yd,pb);l=yd.prototype;
|
||||
l.tc=function(a,b,c,d){this.na=a;this.oa=b;this.ca=d;for(b=0;b<Ad.length;b++)(d=this.ma[Ad[b]])&&this.na.Eb(null,Ad[b],d);this.Kc=ac(a,"FPU");this.V=ac(a,"ChipSet");a=Bd(a,"autoStart");null!=a&&(this.aa.he="true"==a?!0:"false"==a?!1:!!a);Cd(c,this.id,function(){c.aa.Pf=!0},this.Y.lh);Pb(this)};l.reset=function(){};l.save=function(){return null};l.restore=function(){return!1};
|
||||
l.$b=function(a,b){if(!b){if(a&&this.restore){Dd(this);if(!this.restore(a))return!1;Ed(this)}else this.reset();this.ca?this.ca.fh():this.O("No debugger detected")}Fd(this);return!0};l.Zb=function(a,b){var c=this.aa.Xa;b&&Gd(this);return a?this.save(c):!0};l.he=function(){return this.aa.Xa?!0:this.aa.he||!this.ca&&void 0===this.ma.run?Hd(this):!1};l.qj=function(){return 0};
|
||||
function Ed(a){void 0===a.Y.wf&&(a.Y.wf=0);void 0===a.Y.Re&&(a.Y.Re=-1);void 0===a.Y.Te&&(a.Y.Te=-1);a.aa.Ie=0<=a.Y.wf&&0<a.Y.Re;a.aa.Ie&&(a.Y.uf=0,a.Y.Se=a.Y.wf-a.Fd)}function Id(a,b){if(a.aa.Ie){var c=!1;a.Y.uf=a.Y.uf+a.qj()|0;a.Y.Se-=b;0>=a.Y.Se&&(a.Y.Se+=a.Y.Re,c=!0);0<=a.Y.Te&&a.Y.Te<=Jd(a)&&(a.Y.Re=a.Y.Te=-1,Ed(a),Gd(a),c=!0);c&&a.O(Jd(a)+" cycles: checksum="+q(a.Y.uf))}}
|
||||
l.Eb=function(a,b,c){var d=this;a=!1;switch(b){case "power":case "reset":this.ma[b]=c;a=!0;break;case "run":this.ma[b]=c;c.onclick=function(){var a=d.aa.Xa,b;if(b=d.na)if(b=d.na,b.aa.we&&(b.aa.we=!1,b.aa.pf&&!b.aa.ac&&b.We(Kd)),b.aa.ac)b=!0;else{var c=null,h,k=Bb(b.id);for(h=0;h<k.length&&(c=k[h],c===b||c.aa.ready);h++);if(h==k.length)for(h=0;h<k.length&&(c=k[h],c===b||c.aa.ac);h++);h==k.length&&(c=b);kb("The "+c.type+" component ("+c.id+") is not "+(c.aa.ready?"powered yet":"ready yet"+(c.lg?" (waiting for notification)":
|
||||
""))+".");b=!1}b&&a==d.aa.Xa&&(d.aa.Xa?Gd(d,!0):Hd(d,!0))};a=!0;break;case "speed":this.ma[b]=c;a=!0;break;case "setSpeed":this.ma[b]=c,c.onclick=function(){Ld(d,d.Y.Ad<<1,!0)},c.textContent=this.Y.pe.toFixed(2)+"Mhz",a=!0}return a};function Md(a,b){a.aa.Xa&&(b=a.A-b,a.A-=b,a.ld-=b)}function Nd(a,b,c){a.Fd+=b;c&&(a.ld=a.A=0)}function Od(a){var b=a.Y.Kd/a.Y.og;if(!b||b>a.Y.Ad)b=a.Y.Ad;a.Y.jn=Math.floor(a.Y.Yd/zd*b);a.Y.ph=b}
|
||||
function Jd(a,b){var c=a.Fd+a.md+a.ld-a.A;b&&1<a.Y.Ad&&a.Y.Kd>a.Y.og&&(c=Math.round(c/a.Y.Ad));return c}function Dd(a){a.Fd=a.md=a.ld=a.A=0;Ed(a);Ld(a,a.Y.Cj)}
|
||||
function Ld(a,b,c){var d=!0;if(void 0!==b){0<a.Y.Kd&&a.Y.Kd<.9*a.Y.pe&&(b=a.Y.Cj,d=!1);a.Y.Kd=0;a.Y.Ad=b;b=a.Y.og*a.Y.Ad;if(a.Y.pe!=b){a.Y.pe=b;b=a.Y.pe.toFixed(2)+"Mhz";var e=a.ma.setSpeed;e&&(e.textContent=b);a.O("target speed: "+b)}c&&a.na&&a.na.cd()}Nd(a,a.md);a.md=0;a.Y.xd=a.Y.qe=0;Od(a);for(c=a.qa.length-1;0<=c;c--)b=a.qa[c],0<=b[2]&&Pd(a,c,b[2],!0);return d}function Cd(a,b,c,d){d=void 0===d?-1:d;var e=a.qa.length;a.qa.push([b,-1,d,c]);0<=d&&Pd(a,e,d);return e}
|
||||
function Pd(a,b,c,d){0<=b&&b<a.qa.length&&(b=a.qa[b],d||0>b[1])&&(c=a.Y.Yd*a.Y.ph/1E3*c|0,a.aa.Xa&&(c+=Qd(a)),b[1]=c)}function Rd(a){for(var b=[],c=0;c<a.qa.length;c++){var d=a.qa[c];b.push([d[0],d[1],d[2]])}return b}function Qd(a){var b=a.ld-a.A;a.ld=a.A=0;a.Y.qg+=b;a.md+=b;return b}
|
||||
l.Ro=function(){this.Rd=0;if(this.aa.Xa){Od(this);this.Y.qg=0;this.Y.tf=La();this.Y.xd||(this.Y.xd=this.Y.tf);if(this.Y.qe){var a=this.Y.tf-this.Y.qe;a>this.Y.lh&&(this.Y.xd+=a,this.Y.xd>this.Y.tf&&(this.Y.xd=this.Y.tf))}try{this.aa.Pf=!1;do{for(var b,c=this.aa.Ie?1:this.Y.Yd*this.Y.ph|0,d=this.qa.length-1;0<=d;d--){var e=this.qa[d];0>e[1]||c>e[1]&&(c=e[1])}b=c;if(this.V){Td(this.V);var f=this.V;a=b;var g=f.qa[0];if(g.me){var h=(Jd(f.G,f.M)-g.hd)/f.Ea|0,k=Ud(f,0)-h;g.mode==Vd&&(k-=h);var m=k*f.Ea|
|
||||
0;g.mode==Vd&&(m>>=1);a>m&&(a=m)}b=a;var p=this.V;a=b;if(p.A&&p.A[Wd]&Xd){var v=p.Z-Jd(p.G,p.M);0<v&&a>v&&(a=v)}b=a}try{this.Jg(b)}catch(J){if("number"!=typeof J)throw J;}a=b=Qd(this);for(var u=this.qa.length-1;0<=u;u--){var A=this.qa[u];0>A[1]||(A[1]-=a,0>=A[1]&&(A[1]=-1,A[3](),0<=A[2]&&Pd(this,u,A[2])))}Id(this,b)}while(this.aa.Xa&&!this.aa.Pf)}catch(J){Gd(this);Fd(this);this.na&&this.na.stop(La(),Jd(this));Mb(this,J.stack||J.message);return}if(this.aa.Xa){b=setTimeout;c=this.wj;this.Y.qe=La();
|
||||
d=this.Y.lh;this.Y.qg&&(d=Math.round(d*this.Y.qg/this.Y.jn));d-=this.Y.qe-this.Y.tf;if(e=this.Y.qe-this.Y.xd)this.Y.Kd=Math.round(this.md/(10*e))/100,864E5<=e&&(this.Fd=0,this.V&&Td(this.V,!0),Ld(this));0>d?(-1E3>d&&(this.Y.xd-=d),d=0):this.Y.Kd<this.Y.pe&&(d=0);this.Y.qe+=d;this.Rd=b(c,d)}}};
|
||||
function Hd(a,b,c){if(Nb(a))return!1;if(a.aa.Xa)return c||a.O(a.toString()+" busy"),!1;a.Rd&&(clearTimeout(a.Rd),a.Rd=0);Ld(a);a.aa.Xa=!0;a.aa.ki=!0;a.V&&a.V.start();if(c=a.ma.run)c.textContent="Halt";a.na&&(Yd(a.na,!0),b&&a.na.cd(!0),a.na.start(a.Y.xd,Jd(a)));a.Rd=setTimeout(a.wj,0);return!0}l.Jg=function(){return 0};
|
||||
function Gd(a,b){var c=!1;if(a.aa.Xa){Qd(a);Nd(a,a.md);a.md=0;a.aa.Xa=!1;a.V&&a.V.stop();if(c=a.ma.run)c.textContent="Run";a.na&&(a.na.stop(Date.now()||+new Date,Jd(a)),Yd(a.na,!0));a.ca||a.status("Stopped");c=!0}a.aa.complete=b;return c}function Fd(a,b){a.na&&Yd(a.na,b)}var zd=30,Ad=["power","reset"];
|
||||
function Zd(a,b,c,d){this.Lb=a;this.ca=a.ca;this.id=b;this.hc=c||"";this.T=0;this.Sa=65535;this.Nb=this.Sa+1;this.Cb=this.qc=this.ext=this.ob=this.type=this.ua=0;this.Ob=-1;this.X=this.Lc=2;this.R=this.xa=65535;this.H=this.kh;this.F=this.D=this.gg;this.A={T:-1,ua:0,Sa:0,ob:0,type:0,ext:0,Ob:-1};1==this.id&&(this.Hf=0,this.C=null,this.Ne=!1,this.G=Array(32),this.B=[]);be(this,!0,d);0==this.id&&(this.Ub=this.Bb=this.aj)}function ce(a,b){a.B.push(b);return[a.B.length,de]}l=Zd.prototype;
|
||||
l.kh=function(a){this.T=a&65535;return this.ua=this.T<<4};l.ng=function(a,b){var c=this.Lb;a&=65535;if(a&4){var d=c.Gb.ua;var e=d+c.Gb.Sa|0}else d=c.Kb,e=c.Jc;if(d){d=d+(a&65528)|0;if(e-d|0)return c.A-=15,ee(this,d,a,b);this.id<fe&&x.call(c,b&&this.id==ge?10:13,a&65532)}return-1};l.bn=function(a){var b=this.Lb;a=b.Qb+(a<<2);var c=b.ja(a);b.P&=-769;return this.load(b.ja(a+2))+c|0};
|
||||
l.an=function(a){var b=this.Lb;a<<=3;var c=b.Qb+a|0;if(7<=(b.$c-c|0))return this.C=!0,a=ee(this,c,a),-1!==a&&(a+=this.Hf),a;x.call(b,13,a|2);return-1};l.aj=function(a){return this.ua+a|0};l.gg=function(a,b){(a>>>0)+b>this.Nb&&(8088>=this.Lb.da?this.Lb.M|=8:x.call(this.Lb,13));return this.ua+a|0};l.$i=function(a,b){return(a>>>0)+b<=this.Nb?this.ua+a|0:this.fg()};l.sl=function(a,b){return(a>>>0)+b>this.Nb?this.ua+a|0:this.fg()};l.fg=function(){x.call(this.Lb,13,0);return-1};
|
||||
l.bj=function(a,b){return(a>>>0)+b<=this.Nb?this.ua+a|0:this.hg()};l.tl=function(a,b){return(a>>>0)+b>this.Nb?this.ua+a|0:this.hg()};l.hg=function(){x.call(this.Lb,13,0);return-1};function he(a,b,c,d,e){a.T=b;a.ua=d;a.Sa=e;a.Nb=(e>>>0)+1;a.ob=c;a.type=c&7936;a.ext=c>>16&192;a.Ob=(b&4?a.Lb.Gb.ua:a.Lb.Kb)+(b&65528)|0;a.id<ie&&be(a,!0)}function je(a,b,c){var d=a.Lb,e=d.ja(b+2),f=d.ja(b)|(e&255)<<16;d=d.ja(b+4);a.T=c;a.ua=f;a.Sa=d;a.Nb=(d>>>0)+1;a.ob=e;a.type=e&7936;a.ext=0;a.Ob=b;a.id<ie&&be(a,!0)}
|
||||
function ee(a,b,c,d){var e=a.Lb;if(!d&&c===a.A.T)return a.T=c,a.ua=a.A.ua,a.Sa=a.A.Sa,a.Nb=(a.A.Sa>>>0)+1,a.ob=a.A.ob,a.type=a.A.type,a.ext=a.A.ext,a.Ob=a.A.Ob,a.A.T=-1,be(a,!0,!0,!1),a.ua;a.A.T=-1;var f=e.ja(b+0),g=e.ja(b+4),h=g&7936,k=e.ja(b+2)|(g&255)<<16,m=e.ja(b+6),p=c&65528;if(80386<=e.da){var v=f;k|=(m&65280)<<16;f|=(m&15)<<16;m&128&&(f=f<<12|4095)}switch(a.id){case ke:var u=a.C;a.Ne=!1;if(u&&c==de&&a.B.length){var A=a.B[a.Hf-1];if(A&&!A())return-1}var J=c&3,H=(g&24576)>>13;A=-1;p||b>=e.Kb&&
|
||||
b<e.Jc&&(h=0);if(6144<=h)null!=d?A=0:!1!==u?(h&1024?H<=a.Cb&&(A=0):J<=a.Cb&&H==a.Cb&&(A=0),A||(c=c&-4|a.Cb&3)):J>=a.Cb&&(J>a.Cb&&(A=le(e),me(e,le(e),!0),ne(e,A),a.Ne=!0),A=0);else{if(256==h||2304==h)return oe(a,c,u)?a.ua:-1;if(1024==h){A=2;var G=0;J<a.Cb&&(J=a.Cb)}else if(3072==h)A=4,G=0,J<a.Cb&&(J=a.Cb);else if(1536==h)A=2,G=148224;else if(3584==h)A=4,G=148224;else if(1792==h)A=2,G=147712;else if(3840==h)A=4,G=147712;else if(1280==h)return oe(a,k&65535,u)?a.ua:-1}0<A&&!(g&32768)&&(A=0);if(0<A){p=
|
||||
a.Cb;var P=b==e.Qb+c;if(J<=H&&(!P||0<=e.Sc||p<=H)){b=k&65535;h&2048&&(f=v|m<<16);m=h=0;d=b&3;if(d<p){if(-1===a.ng(b,!0))return-1;m=e.ka.ua;e.ka.type&2048?(c=(d<<3)+4,v=4):(c=(d<<2)+2,v=2);h=e.ja(m+c+v);if(!h)return x.call(e,10,h),-1;if(-1===e.U.ng(h,!0))return-1;m=2==v?e.ja(m+c):e.ia(m+c)}c=e.P;e.P&=~G;c&131072&&pe(e,!0,!1);if(-1===a.ng(b,!1))return-1;qe(e,A);a.Hf=f;if(d<p){if(!0!==u)return-1;A=y(e);f=0;for(g&=31;g--;)a.G[f++]=re(e,e.U,A),A+=2;u=e.U.T;g=y(e);me(e,h,!0);ne(e,m);c&131072&&(qe(e,4),
|
||||
se(e,e.La.T,4,2),e.La.load(0),se(e,e.Ka.T,4,2),e.Ka.load(0),se(e,e.Fa.T,4,2),te(e,0),se(e,e.pa.T,4,2),ue(e,0));se(e,u,e.X,2);for(ve(e,g);f;)ve(e,a.G[--f]);a.Ne=!0}return a.ua}}if(0!=A)return x.call(e,13,c&65532|(P?2:0)),-1;if(!(g&32768))return x.call(e,11,c&65532|(P?2:0)),-1;break;case we:if(p){if(4096>h||2048==(h&2560))return x.call(e,13,c&65532),-1;if(!(g&32768))return x.call(e,11,c&65532),-1}break;case ge:if(!p||4096>h||512!=(h&2560))return x.call(e,13,c&65532),-1;if(!(g&32768))return x.call(e,
|
||||
12,c&65532),-1;break;case ie:u=h&-513;if(!p||256!=u&&2304!=u)return x.call(e,13,c&65532),-1;2304==u&&(a.Qi=k+e.ja(k+102)|0,a.ml=k+a.Sa|0);break;case fe:if(!(h&4096)&&768<h&&2304!=h&&2816!=h)return-1}d?(a.A.T=c,a.A.ua=k,a.A.Sa=f,a.A.ob=g,a.A.type=h,a.A.ext=m,a.A.Ob=b):(a.T=c,a.ua=k,a.Sa=f,a.Nb=(f>>>0)+1,a.ob=g,a.type=h,a.ext=m,a.Ob=b,be(a,!0,!0,!1));return k}
|
||||
function oe(a,b,c){var d=a.Lb,e=a.Cb,f=d.ka.T,g=d.ka.ua;if(!c){if(!(d.ka.type&512))return x.call(d,13,b&65532),!1;d.ib(d.ka.Ob+4,d.ka.ob&=-513)}if(-1===d.ka.load(b))return!1;var h=d.ka.ua;if(!1!==c){if(d.ka.type&512)return x.call(d,13,b&65532),!1;d.ib(d.ka.Ob+4,d.ka.ob|=512)}d.ka.type=d.ka.type&-513|d.ka.ob&512;256==d.ka.type||768==d.ka.type?(d.ib(g+14,z(d)),d.ib(g+16,xe(d)),d.ib(g+18,d.D),d.ib(g+20,d.I),d.ib(g+22,d.L),d.ib(g+24,d.H),d.ib(g+26,y(d)),d.ib(g+28,d.N),d.ib(g+30,d.K),d.ib(g+32,d.J),d.ib(g+
|
||||
34,d.pa.T),d.ib(g+36,d.ba.T),d.ib(g+38,d.U.T),d.ib(g+40,d.Fa.T),d.Gb.load(d.ja(h+42)),ye(d,d.ja(h+16)|(c?16384:0)),d.D=d.ja(h+18),d.I=d.ja(h+20),d.L=d.ja(h+22),d.H=d.ja(h+24),d.N=d.ja(h+28),d.K=d.ja(h+30),d.J=d.ja(h+32),d.pa.load(d.ja(h+34)),d.Fa.load(d.ja(h+40)),ze(d,d.ja(h+14),d.ja(h+36)),b=38,g=26,a.Cb<e&&(g=(a.Cb<<2)+2,b=g+2),me(d,d.ja(h+b),!0),ne(d,d.ja(h+g))):(d.eb(g+28,d.wc),d.eb(g+32,z(d)),d.eb(g+36,xe(d)),d.eb(g+40,d.D),d.eb(g+44,d.I),d.eb(g+48,d.L),d.eb(g+52,d.H),d.eb(g+56,y(d)),d.eb(g+
|
||||
60,d.N),d.eb(g+64,d.K),d.eb(g+68,d.J),d.eb(g+72,d.pa.T),d.eb(g+76,d.ba.T),d.eb(g+80,d.U.T),d.eb(g+84,d.Fa.T),d.eb(g+88,d.Ka.T),d.eb(g+92,d.La.T),b=d.ia(h+28),d.wc=b,uc(d),d.Gb.load(d.ja(h+96)),ye(d,d.ia(h+36)|(c?16384:0)),d.D=d.ia(h+40),d.I=d.ia(h+44),d.L=d.ia(h+48),d.H=d.ia(h+52),d.N=d.ia(h+60),d.K=d.ia(h+64),d.J=d.ia(h+68),d.pa.load(d.ja(h+72)),d.Fa.load(d.ja(h+84)),d.Ka.load(d.ja(h+88)),d.La.load(d.ja(h+92)),ze(d,d.ia(h+32),d.ja(h+76)),b=80,g=56,a.Cb<e&&(g=(a.Cb<<3)+4,b=g+4),me(d,d.ja(h+b),!0),
|
||||
ne(d,d.ia(h+g)));c&&d.ib(h+0,f);d.ra|=8;return!0}l.save=function(){return[this.T,this.ua,this.Sa,this.ob,this.id,this.hc,this.Cb,this.qc,this.Ob,this.Lc,this.xa,this.X,this.R,this.type,this.Nb]};l.restore=function(a){"number"==typeof a?this.load(a):(this.T=a[0],this.ua=a[1],this.Sa=a[2],this.ob=a[3],this.id=a[4],this.hc=a[5],this.Cb=a[6],this.qc=a[7],this.Ob=a[8],this.Lc=a[9]||2,this.xa=a[10]||65535,this.X=a[11]||2,this.R=a[12]||65535,this.type=a[13]||this.ob&7936,this.Nb=a[14]||(this.Sa>>>0)+1)};
|
||||
function be(a,b,c,d){void 0===c&&(c=!!(a.Lb.ra&1));a.ed=!1;if(c)if(a.load=a.ng,a.Aj=a.an,a.Bb=a.$i,a.Ub=a.bj,void 0===d&&(d=!!(a.Lb.P&131072)),d)a.load=a.H,a.Bb=a.D,a.Ub=a.F,a.Cb=a.qc=3,a.X=2,a.R=a.xa=65535,a.Sa=65535,a.Nb=a.Sa+1,a.Lc=a.X,a.Ob=-1,a.Ne=!1;else{if(!(a.T&-4))a.Bb=a.fg,a.Ub=a.hg;else if(a.type&4096){6144==(a.type&6656)&&(a.Bb=a.fg);if(a.type&2048||!(a.type&512))a.Ub=a.hg;1024==(a.type&3072)&&(a.Bb==a.$i&&(a.Bb=a.sl),a.Ub==a.bj&&(a.Ub=a.tl),a.ed=!0);b&&a.id<fe&&a.T&-4&&-1!==a.Ob&&(c=a.Ob+
|
||||
5,d=a.Lb.ya(c),d&1||a.Lb.ub(c,d|1))}b&&(a.Cb=a.T&3,a.qc=(a.ob&24576)>>13,80386>a.Lb.da||!(a.ext&64)?(a.X=2,a.R=65535):(a.X=4,a.R=-1),a.Lc=a.X,a.xa=a.R)}else a.load=a.kh,a.Aj=a.bn,a.Bb=a.gg,a.Ub=a.gg,a.Cb=a.qc=0,a.Ob=-1,a.Ne=!1}var ke=1,we=2,ge=3,ie=4,fe=6,de=1;
|
||||
function Ae(a){var b=+a.model||8088;switch(b){default:var c=4772727;break;case 80286:c=6E6;break;case 80386:c=16E6}yd.call(this,a,c);this.da=b;a=a.stepping;this.Qd=b+(a?qa(a,16):0);this.Xi=61442;this.Pd=1792;this.Pi=28672;this.Qf=4;this.Ra=255;this.B=80286<=this.da?Xb:Wb;this.wa=Be;this.fj=Ce;this.jj=De;this.oj=Ee;if(80186<=this.da&&(this.wa=Be.slice(),this.fj=Ce.slice(),this.jj=De.slice(),this.Ra=31,this.wa[15]=Ie,this.wa[96]=Je,this.wa[97]=Ke,this.wa[98]=Le,this.wa[99]=Ie,this.wa[100]=Ie,this.wa[101]=
|
||||
Ie,this.wa[102]=Ie,this.wa[103]=Ie,this.wa[104]=Me,this.wa[105]=Ne,this.wa[106]=Oe,this.wa[107]=Pe,this.wa[108]=Qe,this.wa[109]=Re,this.wa[110]=Se,this.wa[111]=Te,this.wa[192]=Ue,this.wa[193]=Ve,this.wa[200]=We,this.wa[201]=Xe,this.wa[241]=Ye,this.fj[7]=Ze,this.jj[7]=Ze,80286<=this.da)){this.Xi=2;this.Pd|=28672;this.Qf=0;this.wa[15]=$e;this.qd=af.slice();for(b=0;b<this.qd.length;b++)this.qd[b]||(this.qd[b]=bf);this.wa[84]=cf;this.wa[99]=df;if(80386<=this.da){var d;this.Pi=0;this.Pd|=196608;this.wa[100]=
|
||||
ef;this.wa[101]=ff;this.wa[102]=gf;this.wa[103]=hf;for(d in B)this.qd[+d]=B[+d];80546<=this.Qd&&80562>=this.Qd&&(this.qd[166]=jf,this.qd[167]=nf)}}this.Tf=[];this.Uf=[];this.Wf=0;Dd(this);this.aa.complete=this.aa.gj=!1;this.sj=0;this.sc=this.Z=[];this.lb=this.Lg=this.Fb=this.Rf=this.df=this.ef=this.bd=0;of(this)}ia(Ae,yd);function pf(a,b,c,d){md((d?a.sc:a.Z)[b>>>a.lb],c);d&&uc(a)}
|
||||
function qf(a){var b;if(a.Z===a.sc){a.Z=Array(a.Rf);a.Vf=new w(null,0,0,ed,null,a);pc(a.Vf,a.ca);for(b=0;b<a.Rf;b++)a.Z[b]=a.Vf;a.ff=new w;a.Zi=Array(rf);a.Xf=0}else for(var c=0;c<a.Sf.length;c++){b=a.Sf[c];var d=a.Z[b];a.Xf<rf&&(a.Zi[a.Xf++]=d);a.Z[b]=a.Vf}a.Sf=[]}function uc(a){a.ra&-2147483648&&qf(a)}
|
||||
function qd(a,b,c,d){var e=(b&-4194304)>>>20,f=a.sc[(a.wc+e&a.ef)>>>a.lb],g=f.Nd(e);if(!(g&1))return d||sf.call(a,b,!1,c),a.ff;if(!(g&4)&&3==a.Pa)return d||sf.call(a,b,!0,c),a.ff;var h=(b&4190208)>>>10;g=a.sc[((g&-4096)+h&a.ef)>>>a.lb];var k=g.Nd(h);if(!(k&1))return d||sf.call(a,b,!1,c),a.ff;if(!(k&4)&&3==a.Pa)return d||sf.call(a,b,!0,c),a.ff;c=a.sc[((k&-4096)+(b&4095)&a.ef)>>>a.lb];if(d)return c;d=b>>>a.lb;k=a.Z[d];b&=-4096;if(0<a.Xf){var m=a.Zi[--a.Xf];m.fh(b)}else m=new w(b,0,0,gd);b=m;b.td=c;
|
||||
b.pb=f;b.A=e>>2;b.qb=g;b.B=h>>2;Vb&&Hc&&c.W&&!c.controller&&!c.Fe&&!c.Ge?(b.Qa=c.Qa,b.Td=c.Td,b.W=c.W,Cc(b,xd)):(b.F=c?wd(32):0,b.J=c?wd(96):0,Cc(b,hd));pc(b,a.ca,k);a.Z[d]=b;a.Sf.push(d);return b}function tf(a){a.Z!==a.sc&&(a.Z=a.sc,a.Vf=null,a.Sf=null,a.ff=null)}l=Ae.prototype;l.reset=function(){of(this);Dd(this);this.aa.error=!1};
|
||||
function uf(a,b){switch(b){case 0:var c=a.D;break;case 1:c=a.I;break;case 2:c=a.L;break;case 3:c=a.H;break;case 4:c=y(a);break;case 5:c=a.N;break;case 6:c=a.K;break;case 7:c=a.J}return c}function vf(a,b,c){switch(b){case 0:a.D=c;break;case 1:a.I=c;break;case 2:a.L=c;break;case 3:a.H=c;break;case 4:ne(a,c);break;case 5:a.N=c;break;case 6:a.K=c;break;case 7:a.J=c}}
|
||||
function of(a){a.D=0;a.H=0;a.I=0;a.L=0;a.Ac=0;a.N=0;a.K=0;a.J=0;a.vc=!1;a.Ea=a.cb=0;a.Ym=[0,0];a.en=[0,0];a.Aa=0;a.pj=0;a.fa=0;a.ra=65520;a.Qb=0;a.$c=1023;a.P=a.lc=0;a.ze=a.gf=a.Sd=a.Ae=0;a.Sc=-1;a.nd=a.Tc=-1;a.od=a.ta=-1;a.ba=new Zd(a,ke,"CS");a.Fa=new Zd(a,we,"DS");a.pa=new Zd(a,we,"ES");a.U=new Zd(a,ge,"SS");ne(a,0);me(a,0);if(80386<=a.da){switch(a.Qd){case 80562:case 80563:a.L=771;break;case 80578:a.L=772;break;case 80594:a.L=773;break;case 80595:case 80596:a.L=776}a.ra=16;a.Mg=0;a.pd=0;a.wc=
|
||||
0;a.Rb=[0,0,0,0,null,null,0,0];a.Yf=[null,null,null,null,null,null,0,0];a.Ka=new Zd(a,we,"FS");a.La=new Zd(a,we,"GS");tf(a)}a.Ig=new Zd(a,0,"NULL");a.Ga=a.Fa;a.Sb=a.U;a.M=a.ha=0;a.C=a.F=-1;a.Ia=a.Ig;a.ab=0;if(80286>a.da)ze(a,0,65535);else{a.Kb=0;a.Jc=65535;a.Gb=new Zd(a,5,"LDT",!0);a.ka=new Zd(a,ie,"TSS",!0);a.zb=new Zd(a,fe,"VER",!0);ze(a,65520,61440);var b=z(a);var c=a.ba;var d=-65536;80386>c.Lb.da&&(d&=16777215);c=c.ua=d;a.ea=c+b|0;a.Ng=(c>>>0)+(a.ba.Sa>>>0)+1}ye(a,0);pe(a)}
|
||||
function Bf(a){2==a.Lc?(a.Vb=a.ja,a.kc=Cf,a.uc=Df,a.kd=Ef,2==a.X?(a.la=Ff,a.Ba=Gf,a.mb=Hf):(a.la=If,a.Ba=Jf,a.mb=Kf)):(a.Vb=a.ia,a.kc=Lf,a.uc=Mf,a.kd=Nf,2==a.X?(a.la=Of,a.Ba=Pf,a.mb=Qf):(a.la=Rf,a.Ba=Sf,a.mb=Tf))}function qe(a,b){a.X!=b&&(a.ha|=1024,a.X=b,a.R=2==b?65535:-1,Uf(a))}function Uf(a){2==a.X?(a.Hb=32768,a.nb=a.ja,a.fc=a.ib,2==a.Lc?(a.la=Ff,a.Ba=Gf,a.mb=Hf):(a.la=Of,a.Ba=Pf,a.mb=Qf)):(a.Hb=-2147483648,a.nb=a.ia,a.fc=a.eb,2==a.Lc?(a.la=If,a.Ba=Jf,a.mb=Kf):(a.la=Rf,a.Ba=Sf,a.mb=Tf))}
|
||||
function Vf(a){a.Lc=a.ba.Lc;a.xa=a.ba.xa;Bf(a);a.X=a.ba.X;a.R=a.ba.R;Uf(a);a.ha&=-3073}l.qj=function(){var a=this.D+this.H+this.I+this.L+y(this)+this.N+this.K+this.J|0;return a=a+z(this)+this.ba.T+this.Fa.T+this.U.T+this.pa.T+xe(this)|0};function Wf(a,b,c){void 0===a.Tf[b]&&(a.Tf[b]=[]);a.Tf[b].push(c)}function Xf(a,b,c){c&&(null==a.Uf[b]&&a.Wf++,a.Uf[b]=c)}function Yf(a,b){var c=a.Uf[b];null!=c&&(c(--a.Wf),delete a.Uf[b])}
|
||||
function Zf(a,b){for(var c=a.Rb[7],d=c>>16,e=0;4>e;e++){if(c&3){var f=!!(d&1),g=a.Rb[e];g&=~(d>>2&3);b?a.Z[g>>>a.lb].rd(g&a.Fb,f,a):md(a.Z[g>>>a.lb],f)}c>>=2;d>>=4}}function od(a,b,c,d){if(!(a.M&8192)&&a.Rb[7]&255){c--;var e=a.Rb[7],f=e>>16;d=d?1:0==d?3:0;for(var g=0;4>g;g++){if(e&3&&(f&3)==d){var h=f>>2;if(b+c>=a.Rb[g]&&b<=a.Rb[g]+h){a.Rb[6]|=1<<g;a.ab|=2;break}}e>>=2;f>>=4}}}
|
||||
function pe(a,b,c){void 0===b&&(b=!!(a.ra&1));void 0===c&&(c=!!(a.P&131072));a.oj=b&&!c?$f:Ee;be(a.ba,!1,b,c);be(a.Fa,!1,b,c);be(a.U,!1,b,c);be(a.pa,!1,b,c);80386<=a.da&&(be(a.Ka,!1,b,c),be(a.La,!1,b,c));Vf(a)}
|
||||
l.save=function(a){var b=new ag(this);b.set(0,[this.D,this.H,this.I,this.L,y(this),this.N,this.K,this.J]);var c=z(this),d=this.ba.save(),e=this.Fa.save(),f=this.U.save(),g=this.pa.save();if(null!=this.Kb){var h=[this.ra,this.Kb,this.Jc,this.Qb,this.$c,this.Gb.save(),this.ka.save(),this.lc];80386<=this.da&&(h.push(this.Mg),h.push(this.pd),h.push(this.wc),h.push(this.Rb),h.push(this.Yf))}else h=null;c=[c,d,e,f,g,h,xe(this)];80386<=this.da&&(c.push(this.Ka.save()),c.push(this.La.save()));b.set(1,c);
|
||||
b.set(2,[this.Ga.hc,this.Sb.hc,this.M,this.ha,this.ab,this.C,this.F]);b.set(3,[0,this.Fd,this.Y.Ad,a,Rd(this)]);b.set(4,Nc(this.oa,!!(this.ra&-2147483648)));return b.data()};
|
||||
l.restore=function(a){var b=a[0];this.D=b[0];this.H=b[1];this.I=b[2];this.L=b[3];var c=b[4];this.N=b[5];this.K=b[6];this.J=b[7];b=a[1];this.ba.restore(b[1]);this.Fa.restore(b[2]);this.U.restore(b[3]);this.pa.restore(b[4]);var d=b[5];d&&d.length&&(this.ra=d[0],this.Kb=d[1],this.Jc=d[2],this.Qb=d[3],this.$c=d[4],this.Gb.restore(d[5]),this.ka.restore(d[6]),this.lc=d[7],80386<=this.da&&(this.Mg=d[8],this.pd=d[9],this.wc=d[10],this.Rb=d[11],this.Yf=d[12]),pe(this));ye(this,b[6]);d=!1;a:{var e=this.oa;
|
||||
var f=a[4],g;for(g=0;g<f.length-1;g+=2){var h=f[g],k=f[g+1];if(k&&k.length<e.ea){for(var m=0,p=Array(e.ea),v=0;v<k.length-1;)for(var u=k[v++],A=k[v++];u--;)p[m++]=A;k=p}m=e.Z[h];if(!m||!m.restore(k)){kb("Unable to restore memory block "+h);e=!1;break a}}void 0!==f[g]&&qc(e,f[g]);e=!0}e&&(ze(this,b[0],this.ba.T),ne(this,c),me(this,this.U.T),80386<=this.da&&(this.Ka.restore(b[7]),this.La.restore(b[8])),d=!0);b=a[2];this.Ga=null!=b[0]&&bg(this,b[0])||this.Fa;this.Sb=null!=b[1]&&bg(this,b[1])||this.U;
|
||||
this.M=b[2];this.ha=b[3];this.ab=b[4];this.C=b[5];this.F=b[6];b=a[3];this.Fd=b[1];Ld(this,b[2]);null!=b[3]&&(this.aa.he=b[3]);if(null!=b[4])for(a=b[4],b=0;b<a.length;b++){c=a[b];a:{for(e=0;e<this.qa.length;e++)if(f=this.qa[e],f[0]==c[0]){e=f;break a}e=null}e&&(e[1]=c[1],e[2]=c[2])}return d};function bg(a,b){switch(b){case "CS":return a.ba;case "DS":return a.Fa;case "SS":return a.U;case "ES":return a.pa;case "NULL":return a.Ig;default:return[0,b,0,0,""]}}
|
||||
function cg(a,b){null!=ze(a,z(a),b)&&(a.M|=a.Qf)}function te(a,b){-1!==a.Fa.load(b)&&(a.M|=a.Qf)}function me(a,b,c){var d=y(a);-1!==a.U.load(b)&&(ne(a,d),a.U.ed?(a.Og=a.U.ua+a.U.xa|0,a.xj=a.U.ua+a.U.Sa|0):(a.Og=a.U.ua+a.U.Sa|0,a.xj=a.U.ua),c||(a.M|=4))}function ue(a,b){-1!==a.pa.load(b)&&(a.M|=a.Qf)}function z(a){return a.ea-a.ba.ua|0}function C(a,b){a.ea=a.ba.ua+(b&a.R)|0}function dg(a,b){a.ea=b;a.Ng=(a.ba.ua>>>0)+(a.ba.Sa>>>0)+1;a.Pa=a.ba.Cb;Vf(a)}
|
||||
function ze(a,b,c,d){var e=a.ba;e.Hf=b;e.C=d;b=e.load(c);return-1!==b?(dg(a,b+(a.ba.Hf&a.ba.R)),a.ba.Ne):null}function eg(a,b){var c=(a.ea>>>0)+b;c>a.Ng&&(8088>=a.da?(c=a.ba.ua+(c-a.Ng&a.R),2==b&&(a.M|=8)):x.call(a,13,0));return c|0}function fg(a){a.ea=a.od}function y(a){return a.Ac&~a.U.xa|a.Ca-a.U.ua}function ne(a,b){a.Ac=b;a.Ca=a.U.ua+(b&a.U.xa)|0}
|
||||
function gg(a,b,c,d,e,f){if(63!=(e&63)&&e!=a.resultType){var g=(e^a.resultType)&a.resultType;g&&(g&1&&hg(a),g&2&&ig(a),g&4&&jg(a),g&8&&kg(a),g&16&&lg(a),g&32&&mg(a))}f?(a.ze=d,a.Sd=b):(a.ze=b,a.Sd=d);a.gf=c;a.Ae=d;a.resultType=e}function ng(a,b,c,d,e){a.resultType=c|26;a.Ae=b;d?og(a):pg(a);e?qg(a):rg(a);return b}function sg(a,b,c,d){c&d?og(a):pg(a);(b^c)&d?qg(a):rg(a)}function tg(a){return hg(a)?1:0}
|
||||
function hg(a){a.resultType&1&&(a.P&=-2,(a.ze^(a.ze^a.gf)&(a.gf^a.Sd))&a.resultType&-2147450752&&(a.P|=1),a.resultType&=-2);return a.P&1}function ig(a){a.resultType&2&&(a.P&=-5,38505>>((a.Ae^a.Ae>>4)&15)&1&&(a.P|=4),a.resultType&=-3);return a.P&4}function jg(a){a.resultType&4&&(a.P&=-17,(a.Sd^a.ze^a.gf)&16&&(a.P|=16),a.resultType&=-5);return a.P&16}function kg(a){a.resultType&8&&(a.P&=-65,a.Ae&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.P|=64),a.resultType&=-9);return a.P&64}
|
||||
function lg(a){a.resultType&16&&(a.P&=-129,a.Ae&a.resultType&-2147450752&&(a.P|=128),a.resultType&=-17);return a.P&128}function mg(a){a.resultType&32&&(a.P&=-2049,(a.ze^a.Sd)&(a.gf^a.Sd)&a.resultType&-2147450752&&(a.P|=2048),a.resultType&=-33);return a.P&2048}function pg(a){a.resultType&=-2;a.P&=-2}function ug(a){a.resultType&=-5;a.P&=-17}function vg(a){a.resultType&=-9;a.P&=-65}function rg(a){a.resultType&=-33;a.P&=-2049}function og(a){a.resultType&=-2;a.P|=1}
|
||||
function wg(a){a.resultType&=-5;a.P|=16}function xg(a){a.resultType&=-9;a.P|=64}function qg(a){a.resultType&=-33;a.P|=2048}function xe(a){return a.P&-2262|hg(a)|ig(a)|jg(a)|kg(a)|lg(a)|mg(a)}function yg(a,b){b|=a.ra&1|65520;a.ra=a.ra&-65536|b&65535;a.ra&1&&pe(a,!0)}function ye(a,b,c){a.ra&1||(b&=~a.Pi);void 0===c&&(c=a.Pa);c?b=b&-12289|a.P&12288:a.lc=(b&12288)>>12;c>a.lc&&(b=b&-513|a.P&512);a.resultType=128;a.P=a.P&~(a.Pd|2261)|b&(a.Pd|2261)|a.Xi;a.P&256&&(a.ab|=2,a.M|=4)}
|
||||
function zg(a,b,c,d){var e=0;if(a.ra&1&&(a.Pa>a.lc||a.P&131072)&&a.ka.Qi){var f=a.ka.Qi+(b>>>3);for(e=(1<<c)-1<<(b&7);e&&f<=a.ka.ml&&!(a.ya(f)&e);)e>>>=8,f++}return e?(r(a,256)&&Tb(a,"checkIOPM("+wa(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),x.call(a,13,0),!1):!0}
|
||||
l.Eb=function(a,b,c){switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ma[b]=c;this.sj++;a=!0;break;default:a=yd.prototype.Eb.call(this,a,b,c)}return a};
|
||||
function Ag(a,b,c,d){var e=(d?a.sc:a.Z)[(b&a.bd)>>>a.lb];e&&e.type==ed&&(e=qd(a,b,!1,!0));if(e){var f=b&a.Fb;if(!c||1==c)return e.ae(f,b);if(2==c)return f<a.Fb?e.Kf(f,b):e.ae(f,b)|Ag(a,b+1,1,d)<<8;if(4==c)return f<a.Fb-2?e.fi(f,b):f==a.Fb-1?e.Kf(f,b)|Ag(a,b+2,2,d)<<16:e.ae(f,b)|Ag(a,b+1,1,d)<<8|Ag(a,b+2,1,d)<<16|Ag(a,b+3,1,d)<<24}return null}l.ya=function(a){return this.Z[(a&this.bd)>>>this.lb].Cc(a&this.Fb,a)};
|
||||
l.ja=function(a){var b=a&this.Fb,c=(a&this.bd)>>>this.lb;this.A-=this.B.wg;if(b<this.Fb)return this.Z[c].Jf(b,a);b=this.Z[c].Cc(b,a);this.M&4096||(b|=this.Z[c+1&this.df].Cc(0,a+1)<<8);return b};l.ia=function(a){var b=a&this.Fb,c=(a&this.bd)>>>this.lb;if(b<this.Fb-2)return this.Z[c].Nd(b,a);for(var d=0,e=4,f=0,g=4-(b&3);e--;){d|=this.Z[c].Cc(b++,a++)<<f;if(this.M&4096)break;--g||(c=c+1&this.df,b=0);f+=8}return d};l.ub=function(a,b){this.Z[(a&this.bd)>>>this.lb].Ec(a&this.Fb,b&255,a)};
|
||||
l.ib=function(a,b){var c=a&this.Fb,d=(a&this.bd)>>>this.lb;this.A-=this.B.wg;c<this.Fb?this.Z[d].Of(c,b&65535,a):(this.Z[d++].Ec(c,b&255,a),this.M&4096||this.Z[d&this.df].Ec(0,b>>8&255,a+1))};l.eb=function(a,b){var c=a&this.Fb,d=(a&this.bd)>>>this.lb;this.A-=this.B.wg;if(c<this.Fb-2)this.Z[d].Nf(c,b,a);else for(var e=4,f=4-(c&3);e--;){this.Z[d].Ec(c++,b&255,a++);if(this.M&4096)break;--f||(d=d+1&this.df,c=0);b>>>=8}};function Bg(a,b,c){a.Ia=b;a.vb=c&a.xa;a.C=b.Bb(a.vb,1);return a.M&1?0:a.ya(a.C)}
|
||||
function D(a,b){return Bg(a,a.Ga,b)}function Cg(a,b){return Bg(a,a.Sb,b)}function Dg(a,b,c){a.Ia=b;a.vb=c&a.xa;a.C=b.Bb(a.vb,a.X);if(a.M&9){if(a.M&1)return 0;a=a.ya(a.C)|a.ya(b.Bb(0,1))<<8}else a=a.nb(a.C);return a}function E(a,b){a.Ia=a.Ga;a.vb=b&a.xa;a.C=a.Ia.Bb(a.vb,2);if(a.M&9){if(a.M&1)return 0;b=a.ya(a.C)|a.ya(a.Ia.Bb(0,1))<<8;a.M&=-9}else b=a.ja(a.C);return b}
|
||||
function Eg(a,b){a.Ia=a.Sb;a.vb=b&a.xa;a.C=a.Ia.Bb(a.vb,2);if(a.M&9){if(a.M&1)return 0;b=a.ya(a.C)|a.ya(a.Ia.Bb(0,1))<<8;a.M&=-9}else b=a.ja(a.C);return b}function F(a,b){a.Ia=a.Ga;a.vb=b&a.xa;a.C=a.Ia.Bb(a.vb,4);return a.M&1?0:a.ia(a.C)}function Hg(a,b){a.Ia=a.Sb;a.vb=b&a.xa;a.C=a.Ia.Bb(a.vb,4);return a.M&1?0:a.ia(a.C)}function Ig(a,b){a.M&2||a.ub(a.Ia.Ub(a.vb,1),b)}function Jg(a,b){if(!(a.M&2)){var c=a.Ia.Ub(a.vb,2);a.M&8?(a.ub(c,b),a.ub(a.Ia.Ub(0,1),b>>8),a.M&=-9):a.ib(c,b)}}
|
||||
function Kg(a,b){a.M&2||a.eb(a.Ia.Ub(a.vb,4),b)}function re(a,b,c){c=b.Bb(c,a.X);a.M&8?(b=a.ya(c)|a.ya(b.Bb(0,1))<<8,a.M&=-9):b=a.nb(c);return b}function Lg(a,b,c,d){c=b.Ub(c,a.X);a.M&8?(a.ub(c,d),a.ub(b.Ub(0,1),d>>8),a.M&=-9):a.fc(c,d)}l.sa=function(){var a=eg(this,1),b=this.ya(this.ea);this.ea=a;return b};function Mg(a){var b=eg(a,2);if(a.M&8){var c=a.ya(a.ea)|a.ya(b-1)<<8;a.M&=-9}else c=a.ja(a.ea);a.ea=b;return c}
|
||||
function K(a){var b=eg(a,a.Lc);if(a.M&8){var c=a.ya(a.ea)|a.ya(b-1)<<8;a.M&=-9}else c=a.Vb(a.ea);a.ea=b;return c}l.Ha=function(){var a=eg(this,this.X);if(this.M&8){var b=this.ya(this.ea)|this.ya(a-1)<<8;this.M&=-9}else b=this.nb(this.ea);this.ea=a;return b};l.S=function(){var a=eg(this,1),b=this.ya(this.ea)<<24>>24;this.ea=a;return b};
|
||||
function le(a){var b=a.nb(a.Ca);a.Ca=a.Ca+a.X|0;var c=(a.Og>>>0)-(a.Ca>>>0);0>c&&(8088>=a.da?(ne(a,a.Ca-a.U.ua&a.U.xa),-1>c&&(b=b&255|a.ya(a.Ca-1)<<8)):-1>c?x.call(a,12,0):(!a.U.ed&&a.U.Sa==a.U.xa||a.U.ed&&!a.U.Sa)&&ne(a,a.Ca-a.U.ua&a.U.xa));return b}function ve(a,b){se(a,b,a.X)}
|
||||
function se(a,b,c,d){d=void 0===d?c:d;var e=a.Ca-c|0,f=(e>>>0)-(a.xj>>>0);if(0>f){if(8088>=a.da&&-1==f){a.ub(e+1,b>>8);ne(a,e-a.U.ua&a.U.xa);a.ub(a.Ca,b);return}if(!a.U.ed&&a.U.Sa==a.U.xa||a.U.ed&&!a.U.Sa){if(f>-c){x.call(a,12,0);return}ne(a,e-a.U.ua&a.U.xa);e=a.Ca}else{x.call(a,12,0);return}}switch(d){case 1:a.ub(e,b);break;case 2:a.ib(e,b);break;case 4:a.eb(e,b)}a.Ca=e}
|
||||
function Ng(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.da)2<b.length&&(b=b.substr(1,2));else if("PS"==b||2<b.length)d=8;a.ma[b]&&(void 0===c&&(Mb(a,"Value for "+b+" is invalid"),Gd(a)),d=!a.aa.Xa||a.aa.hj?q(c,d):"--------".substr(0,d),a.ma[b].textContent!=d&&(a.ma[b].textContent=d))}
|
||||
l.Jg=function(a){this.aa.complete=!0;var b=this.aa.gj=this.ca&&Og(this.ca),c=a?this.aa.ki?0:1:-1;this.aa.ki=!1;this.ld=this.A=a;this.V&&!a&&Td(this.V);a||r(this,1024)||(this.M|=4);do{var d=this.M&3312;if(d)this.ha|=d;else if(this.od=this.ea,this.Ga=this.Fa,this.Sb=this.U,this.C=this.F=-1,this.ha&3072&&Vf(this),this.ha=this.M&256,this.ab){a:{if(!(this.M&4)){d=80286>this.da?0:1;for(var e=0;2>e;e++){switch(d){case 0:if(this.ab&1&&this.P&512){var f=Pg(this.V);if(-1<=f&&(this.ab&=-2,0<=f)){this.ab&=-5;
|
||||
Qg.call(this,f);d=!0;break a}}break;case 1:if(this.ab&2){this.ab&=-3;80386<=this.da&&(this.Rb[6]|=16384);Qg.call(this,1);d=!0;break a}}d=1-d}}d=!1}if(d&&!a){this.O("interrupt dispatched");this.M=0;break}if(this.ab&4){this.M=this.A=0;break}}if(b){if(Rg(this.ca,this.ea,c)){Gd(this);break}c=1}this.M=0;this.wa[this.sa()].call(this)}while(0<this.A);return this.aa.complete?this.ld-this.A:void 0===this.aa.complete?0:-1};var rf=512;
|
||||
cb(function(){for(var a=zb(document,"pcx86","cpu"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new Ae(d);yb(d,c)}});
|
||||
function Sg(a){pb.call(this,"FPU",a);this.da=a.model||8087;this.F=new Float64Array(8);this.L=new Int32Array(this.F.buffer);this.Z=new Float32Array(1);this.ha=new Int32Array(this.Z.buffer);this.K=new Float64Array(1);this.H=new Int32Array(this.K.buffer);this.D=Array(3);this.M=this.N=-1;this.I=this.J=this.P=this.A=0;this.U=new Float64Array(1);this.ba=new Int32Array(this.U.buffer);this.ba[0]=0;this.ba[1]=268402688;Tg(this);this.fa=Sg.prototype.ji;this.ea=Sg.prototype.Xk}ia(Sg,pb);l=Sg.prototype;
|
||||
l.tc=function(a,b,c){this.G=c;this.V=ac(a,"ChipSet");Pb(this)};l.$b=function(a,b){if(!b)if(!a||!this.restore)Tg(this);else if(!this.restore(a))return!1;return!0};l.Zb=function(a){return a?this.save():!0};l.save=function(){var a=new ag(this),b=[],c=0;b[c++]=this.bc;b[c++]=Ug(this);b[c++]=Vg(this);for(var d=0;d<this.F.length;d++)b[c++]=this.F[d];a.set(0,b);return a.data()};
|
||||
l.restore=function(a){a=a[0];var b=0;this.bc=a[b++]&-57409;var c=a[b++];this.ga=c&-14337;this.B=(c&14336)>>11;Wg(this);Xg(this,a[b++]);for(c=0;c<this.F.length;c++)this.F[c]=a[b++];return!0};function Tg(a){a.C=0;a.bc=959;a.ga=0;a.B=0;a.V&&(a=a.V,a.da>=Yg&&Zg(a,lh))}function Wg(a){a.ga&=-129;a.ga&~a.bc&63&&(a.ga|=128);if(a.ga&128&&!(a.bc&128))return a=a.V,a.da>=Yg?mh(a,lh):a.fa&nh||Qg.call(a.G,2),!0;a=a.V;a.da>=Yg&&Zg(a,lh);return!1}function oh(a,b){80387<=a.da||(b&=-65);a.ga|=b;return Wg(a)}
|
||||
function Ug(a){return a.ga|a.B<<11}function ph(a,b){return isFinite(b)?!0:!oh(a,Infinity===b?8:16)}function qh(a,b,c){var d=null;null!=b&&null!=c&&(d=b+c,ph(a,d)||(d=null));return d}function rh(a,b,c){var d=null;null!=b&&null!=c&&(d=b-c,ph(a,d)||(d=null));return d}function sh(a,b,c){var d=null;null!=b&&null!=c&&(d=b*c,ph(a,d)||(d=null));return d}function th(a,b,c){var d=null;null==b||null==c||!c&&oh(a,2)||(d=b/c,ph(a,d)||(d=null));return d}
|
||||
function uh(a,b,c){if(null!=b&&null!=c){var d=0;isNaN(b)||isNaN(c)?d=17664:(b-=c,0>b?d=256:0===b&&(d=16384));a.ga=a.ga&-18177|d;return!0}return!1}function vh(a,b,c){if(null==b)return null;var d=a.bc&3072;0==d?(d=Math.round(b),.5===d-b&&d%2&&d--):d=1024==d||3072==d&&0<b?Math.floor(b):Math.ceil(b);if(c){if(d>=c){if(oh(a,1))return null;d=-c}else if(d<-c){if(oh(a,1))return null;d=-c}a.H[0]=d|0;2147483648<c&&(a.H[1]=d/4294967296|0,!a.H[1]&&0>d&&(a.H[1]=-1))}return d}
|
||||
function wh(a,b){var c=3;a.C&1<<b&&(a=a.F[b],c=0,0===a?c=1:isFinite(a)||(c=2));return c}function Vg(a){for(var b=0,c=a.F.length-1;0<=c;c--)b<<=2,b|=wh(a,c);return b}function Xg(a,b){a.C=0;for(var c=1;128>=c;c<<=1)3!=(b&3)&&(a.C|=c),b>>=2}function xh(a){var b=a.B+0&7;return a.C&1<<b?(a.Z[0]=a.F[b],!0):oh(a,1)?!1:(a.Z[0]=a.U[0],!0)}function yh(a){var b=a.B+0&7;return a.C&1<<b?(a.K[0]=a.F[b],!0):oh(a,1)?!1:(a.K[0]=a.U[0],!0)}
|
||||
function L(a,b){var c=null;b=a.B+b&7;a.C&1<<b?c=a.F[b]:oh(a,1)||(c=a.U[0]);return c}function M(a,b,c){return null!=c&&(isNaN(c)?!oh(a,1):1)?(b=a.B+b&7,a.F[b]=c,a.C|=1<<b,!0):!1}function zh(a,b,c){var d=null;b=a.B+b&7;if(c||a.C&1<<b||!oh(a,1))c=b<<1,d=Ah(a,a.L[c],a.L[c+1]);return d}function Bh(a){return a.G.ja(a.G.C)<<16>>16}function Ch(a){return a.G.ia(a.G.C)}function Dh(a){a.ha[0]=a.G.ia(a.G.C);return a.Z[0]}function Eh(a){a.H[0]=a.G.ia(a.G.C);a.H[1]=a.G.ia(a.G.C+4);return a.K[0]}
|
||||
function Fh(a){a.D[0]=a.G.ia(a.G.C);a.D[1]=a.G.ia(a.G.C+4);a.D[2]=a.G.ja(a.G.C+8);return a.D}l.ji=function(){this.G.eb(this.G.C,this.H[0])};l.Xk=function(){this.G.eb(this.G.C,this.H[0]);this.G.eb(this.G.C+4,this.H[1])};function Gh(a){a.G.eb(a.G.C,a.D[0]);a.G.eb(a.G.C+4,a.D[1]);a.G.ib(a.G.C+8,a.D[2])}function Hh(a,b){var c=b[1],d=(b[2]&32768)>>4,e=b[2]&32767;b=b[0]>>>11|c<<21;c=c>>11&1048575;32767==e?e=2047:e&&(e+=-15360,0>=e&&(e=2047,b=c=0));a.H[0]=b;a.H[1]=c|(d|e)<<20;return a.K[0]}
|
||||
function Ah(a,b,c){var d=c>>20&2047,e=2147483648|(c&1048575)<<11|b>>>21;2047==d?d=32767:d?d+=15360:e&=2147483647;a.D[0]=b<<11;a.D[1]=e;a.D[2]=c>>16&32768|d;return a.D}function Ih(a,b){for(var c=0,d=1;b--;)c+=(a&15)*d,d*=10,a>>=4;return c}function Jh(a,b){for(var c=0,d=0;b--;)c|=a%10<<d,a/=10,d+=4;return c}function Kh(a){var b=null,c=1<<a.B;if(!(a.C&c)&&(a.ga&=-513,oh(a,65)))return b;a.C&=~c;b=a.F[a.B];a.B=a.B+1&7;return b}
|
||||
function Lh(a,b){if(null!=b){var c=a.B-1&7,d=1<<c;if(a.C&d&&(a.ga|=512,oh(a,65)))return;if(isNaN(b)&&oh(a,1)){if(oh(a,1))return;b=NaN}a.F[a.B=c]=b;a.C|=d}}
|
||||
function Mh(a,b){var c=a.G;var d=c.nb(b);a.bc=d&-57409;d=c.nb(b+=c.X);a.ga=d&-14337;a.B=(d&14336)>>11;Wg(a);Xg(a,c.nb(b+=c.X));!(c.ra&1)||c.P&131072?(a.I=c.nb(b+=c.X),d=c.nb(b+=c.X),a.P=d&2047,a.I|=(d&-4096)<<4,a.M=-1,a.J=c.nb(b+=c.X),a.J|=(c.nb(b+=c.X)&-4096)<<4,a.N=-1):(a.I=c.nb(b+=c.X),d=c.nb(b+=c.X),a.M=d&65535,a.P=d>>16&2047,a.J=c.nb(b+=c.X),a.N=c.nb(b+=c.X)&65535);return b+c.X}
|
||||
function Nh(a,b){var c=a.G;c.fc(b,a.bc);c.fc(b+=c.X,Ug(a));c.fc(b+=c.X,Vg(a));if(!(c.ra&1)||c.P&131072){var d=(a.M<<4)+a.I;c.fc(b+=c.X,d);c.fc(b+=c.X,d>>4&-4096|a.P);d=(a.N<<4)+a.J;c.fc(b+=c.X,d);c.fc(b+=c.X,d>>4&-4096)}else c.fc(b+=c.X,a.I),c.fc(b+=c.X,a.M|a.P<<16),c.fc(b+=c.X,a.J),c.fc(b+=c.X,a.N);return b+c.X}function Oh(){this.ga&=-32896;Wg(this)}function Ph(){uh(this,L(this,0),L(this,this.A))}function Qh(){uh(this,L(this,0),L(this,this.A))&&Kh(this)}function Rh(){Qh.call(this)}
|
||||
function Sh(){M(this,0,th(this,L(this,0),Dh(this)))}function Th(){this.C&=~(1<<this.B)}function Uh(){Tg(this)}function Vh(){this.bc=this.G.ja(this.G.C)&-57409}function Wh(){Mh(this,this.G.C)}function Xh(){for(var a=this.G,b=Mh(this,a.C),c=this.D,d=0;d<this.F.length;d++)c[0]=a.ia(b),c[1]=a.ia(b+=4),c[2]=a.ja(b+=4),c&&M(this,d,Hh(this,c)),b+=2}function Yh(){for(var a=this.G,b=Nh(this,a.C),c=0;c<this.F.length;c++){var d=zh(this,c,!0);a.eb(b,d[0]);a.eb(b+=4,d[1]);a.ib(b+=4,d[2]);b+=2}Tg(this)}
|
||||
function Zh(){Nh(this,this.G.C);this.bc|=63}function $h(){M(this,this.A,L(this,0))&&Kh(this)}function ai(){$h.call(this)}function bi(){this.G.ib(this.G.C,this.bc)}function ci(){this.G.ib(this.G.C,Ug(this))}function di(){80287<=this.da&&(this.G.D=this.G.D&-65536|Ug(this))}function ei(){var a=L(this,0);M(this,0,L(this,this.A));M(this,this.A,a)}function fi(){ei.call(this)}
|
||||
var gi=Math.log(10)/Math.LN2,hi=Math.LOG2E,ii=Math.PI,ji=Math.log(2)/Math.LN10,ki=Math.LN2,li=Math.pow(2,63),mi={216:{0:function(){M(this,0,qh(this,L(this,0),Dh(this)))},1:function(){M(this,0,sh(this,L(this,0),Dh(this)))},2:function(){uh(this,L(this,0),Dh(this))},3:function(){uh(this,L(this,0),Dh(this))&&Kh(this)},4:function(){M(this,0,rh(this,L(this,0),Dh(this)))},5:function(){M(this,0,rh(this,Dh(this),L(this,0)))},6:Sh,7:Sh,48:function(){M(this,0,qh(this,L(this,0),L(this,this.A)))},49:function(){M(this,
|
||||
0,sh(this,L(this,0),L(this,this.A)))},50:Ph,51:Qh,52:function(){M(this,0,rh(this,L(this,0),L(this,this.A)))},53:function(){M(this,0,rh(this,L(this,this.A),L(this,0)))},54:function(){M(this,0,th(this,L(this,0),L(this,this.A)))},55:function(){M(this,0,th(this,L(this,this.A),L(this,0)))}},217:{0:function(){Lh(this,Dh(this))},2:function(){xh(this)&&this.fa()},3:function(){xh(this)&&(this.fa(),Kh(this))},4:Wh,5:Vh,6:Zh,7:bi,48:function(){Lh(this,L(this,this.A))},49:ei,50:function(){},51:ai,64:function(){M(this,
|
||||
0,-L(this,0))},65:function(){M(this,0,Math.abs(L(this,0)))},68:function(){uh(this,L(this,0),0)},69:function(){this.ga&=-18177;this.L[((this.B+0&7)<<1)+1]&-2147483648&&(this.ga|=512);if(3==wh(this,this.B))this.ga|=16640;else{var a=L(this,0);this.ga=isNaN(a)?this.ga|256:0===a?this.ga|16384:Infinity===a||-Infinity===a?this.ga|1280:this.ga|1024}},80:function(){Lh(this,1)},81:function(){Lh(this,gi)},82:function(){Lh(this,hi)},83:function(){Lh(this,ii)},84:function(){Lh(this,ji)},85:function(){Lh(this,
|
||||
ki)},86:function(){Lh(this,0)},96:function(){M(this,0,Math.pow(2,L(this,0))-1)},97:function(){M(this,1,L(this,1)*Math.log(L(this,0))/Math.LN2)&&Kh(this)},98:function(){M(this,0,Math.tan(L(this,0)))&&Lh(this,1)},99:function(){M(this,1,Math.atan2(L(this,1),L(this,0)))&&Kh(this)},100:function(){var a=L(this,0);null!=a&&(this.K[0]=a,M(this,0,(this.H[1]>>20&2047)-1023),this.H[1]=(this.H[1]|1072693248)&-1073741825,Lh(this,this.K[0]))},102:function(){this.B=this.B-1&7;this.ga&=-513},103:function(){this.B=
|
||||
this.B+1&7;this.ga&=-513},112:function(){M(this,0,L(this,0)%L(this,1))},113:function(){M(this,1,L(this,1)*Math.log(L(this,0)+1)/Math.LN2)&&Kh(this)},114:function(){var a=L(this,0),b=null;if(0<=a||!oh(this,1))b=Math.sqrt(a),ph(this,b)||(b=null);M(this,0,b)},116:function(){M(this,0,vh(this,L(this,0),li))},117:function(){var a=L(this,0),b=L(this,1);null!=a&&null!=b&&M(this,0,a*Math.pow(2,0<b?Math.floor(b):Math.ceil(b)))}},218:{0:function(){M(this,0,qh(this,L(this,0),Ch(this)))},1:function(){M(this,0,
|
||||
sh(this,L(this,0),Ch(this)))},2:function(){uh(this,L(this,0),Ch(this))},3:function(){uh(this,L(this,0),Ch(this))&&Kh(this)},4:function(){M(this,0,rh(this,L(this,0),Ch(this)))},5:function(){M(this,0,rh(this,Ch(this),L(this,0)))},6:function(){M(this,0,th(this,L(this,0),Ch(this)))},7:function(){M(this,0,th(this,Ch(this),L(this,0)))}},219:{0:function(){Lh(this,Ch(this))},2:function(){null!=vh(this,L(this,0),2147483648)&&this.ji()},3:function(){null!=vh(this,L(this,0),2147483648)&&(this.ji(),Kh(this))},
|
||||
5:function(){Lh(this,Hh(this,Fh(this)))},7:function(){zh(this,0)&&(Gh(this),Kh(this))},64:function(){8087==this.da&&(this.bc&=-129)},65:function(){8087==this.da&&(this.bc|=128)},66:Oh,67:Uh,68:function(){},115:function(){}},220:{0:function(){M(this,0,qh(this,L(this,0),Eh(this)))},1:function(){M(this,0,sh(this,L(this,0),Eh(this)))},2:function(){uh(this,L(this,0),Eh(this))},3:function(){uh(this,L(this,0),Eh(this))&&Kh(this)},4:function(){M(this,0,rh(this,L(this,0),Eh(this)))},5:function(){M(this,0,
|
||||
rh(this,Eh(this),L(this,0)))},6:function(){M(this,0,th(this,L(this,0),Eh(this)))},7:function(){M(this,0,th(this,Eh(this),L(this,0)))},48:function(){M(this,this.A,qh(this,L(this,this.A),L(this,0)))},49:function(){M(this,this.A,sh(this,L(this,this.A),L(this,0)))},50:function(){Ph.call(this)},51:Rh,52:function(){M(this,this.A,rh(this,L(this,0),L(this,this.A)))},53:function(){M(this,this.A,rh(this,L(this,this.A),L(this,0)))},54:function(){M(this,this.A,th(this,L(this,0),L(this,this.A)))},55:function(){M(this,
|
||||
this.A,th(this,L(this,this.A),L(this,0)))}},221:{0:function(){Lh(this,Eh(this))},2:function(){yh(this)&&this.ea()},3:function(){yh(this)&&(this.ea(),Kh(this))},4:Xh,6:Yh,7:ci,48:Th,49:fi,50:function(){M(this,this.A,L(this,0))},51:$h},222:{0:function(){M(this,0,qh(this,L(this,0),Bh(this)))},1:function(){M(this,0,sh(this,L(this,0),Bh(this)))},2:function(){uh(this,L(this,0),Bh(this))},3:function(){uh(this,L(this,0),Bh(this))&&Kh(this)},4:function(){M(this,0,rh(this,L(this,0),Bh(this)))},5:function(){M(this,
|
||||
0,rh(this,Bh(this),L(this,0)))},6:function(){M(this,0,th(this,L(this,0),Bh(this)))},7:function(){M(this,0,th(this,Bh(this),L(this,0)))},48:function(){M(this,this.A,qh(this,L(this,this.A),L(this,0)))&&Kh(this)},49:function(){M(this,this.A,sh(this,L(this,this.A),L(this,0)))&&Kh(this)},50:Rh,51:function(){uh(this,L(this,0),L(this,1))&&null!=Kh(this)&&Kh(this)},52:function(){M(this,this.A,rh(this,L(this,0),L(this,this.A)))&&Kh(this)},53:function(){M(this,this.A,rh(this,L(this,this.A),L(this,0)))&&Kh(this)},
|
||||
54:function(){M(this,this.A,th(this,L(this,0),L(this,this.A)))&&Kh(this)},55:function(){M(this,this.A,th(this,L(this,this.A),L(this,0)))&&Kh(this)}},223:{0:function(){Lh(this,Bh(this))},2:function(){null!=vh(this,L(this,0),32768)&&this.G.ib(this.G.C,this.H[0])},3:function(){null!=vh(this,L(this,0),32768)&&(this.G.ib(this.G.C,this.H[0]),Kh(this))},4:function(){var a=Fh(this),b=Ih(a[0],8)+1E8*Ih(a[1],8)+1E16*Ih(a[2],2);a[2]&32768&&(b=-b);Lh(this,b)},5:function(){var a=this.G.ia(this.G.C);a=4294967296*
|
||||
this.G.ia(this.G.C+4)+(a>>>0);Lh(this,a)},6:function(){var a=vh(this,Kh(this));null!=a&&(this.D[0]=Jh(a,8),this.D[1]=Jh(a/1E8,8),this.D[2]=Jh(a/1E16,2),0>a&&(this.D[2]|=32768),Gh(this))},7:function(){null!=vh(this,L(this,0),li)&&(this.Xk(),Kh(this))},48:function(){Th.call(this);Kh(this)},49:fi,50:ai,51:ai,52:di}},ni=[Oh,Uh,Vh,Wh,Xh,Yh,bi,Zh,ci,di];cb(function(){for(var a=zb(document,"pcx86","fpu"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new Sg(d);yb(d,c)}});
|
||||
function oi(a,b){var c=a+b+tg(this)|0;gg(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&255}function pi(a,b){var c=a+b+tg(this)|0;gg(this,a,b,c,this.Hb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&this.R}function qi(a,b){var c=a+b|0;gg(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&255}
|
||||
function ri(a,b){var c=a+b|0;gg(this,a,b,c,this.Hb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&this.R}function si(a,b){a&=b;ng(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return a}function ti(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return ng(this,a&b,this.Hb)&this.R}function ui(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,xg(this),a;vg(this);return a}
|
||||
function vi(a){if(-1===this.C)return x.call(this,6),a;var b=a,c=this.nb(this.C),d=this.nb(this.C+this.X);2==this.X&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Fj;(b<c||b>d)&&x.call(this,5);this.M|=2;return a}function wi(a,b){var c=0;if(b){vg(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else xg(this);this.A-=11+3*c;return a}function xi(a,b){var c=0;if(b){vg(this);for(var d=2==this.X?15:31,e=1<<d;e;){if(b&e){a=d;break}e>>>=1;c++;d--}}else xg(this);this.A-=11+3*c;return a}
|
||||
function yi(a,b){a&1<<(b&(2==this.X?15:31))?og(this):pg(this);this.A-=-1===this.C?3:6;this.M|=2;return a}function zi(a,b){b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=-1===this.C?6:8;return a^b}function Ai(a,b){b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=-1===this.C?6:8;return a&~b}function Bi(a,b){b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=-1===this.C?6:8;return a|b}
|
||||
function Ci(a,b){if(-1===this.C)return yi.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Dg(this,this.Ia,this.vb+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=6;this.M|=2;return a}function Di(a,b){if(-1===this.C)return zi.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Dg(this,this.Ia,this.vb+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=8;return a^b}
|
||||
function Ei(a,b){if(-1===this.C)return Ai.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Dg(this,this.Ia,this.vb+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=8;return a&~b}function Fi(a,b){if(-1===this.C)return Bi.call(this,a,b);var c=this.X<<3;if(b>=c||b<-c)a=Dg(this,this.Ia,this.vb+(b>>(2==this.X?4:5))*this.X);b=1<<(b&(2==this.X?15:31));a&b?og(this):pg(this);this.A-=8;return a|b}
|
||||
function Gi(a,b){gg(this,a,b,a-b|0,191,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.xh:this.B.Mb;this.M|=2;return a}function Hi(a,b){gg(this,a,b,a-b|0,this.Hb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.xh:this.B.Mb;this.M|=2;return a}
|
||||
function Ii(a){if(this.Kc){var b=this.Kc,c=this.pj,d=this.fa,e=d>>3&7;b.A=d&7;var f=(3>(d>>6&3)?0:48)+e;(217==c||219==c)&&52<=f&&(f=e<<4|b.A);if(e=mi[c][f]){if(0>ni.indexOf(e)){f=b.G;var g=f.od;8087==b.da&&(f.ha&16&&g++,f.ha&32&&g++);b.M=f.ba.T;b.I=g-f.ba.ua;-1!==f.C&&(b.N=f.Ia.T,b.J=f.C-f.Ia.ua);b.P=(c&7)<<8|d}e.call(b)}}this.A-=-1===this.C?2:8;return a}function Ji(a){if(80186>this.da)return Ki.call(this,a);x.call(this,13,0);return a}function Ze(a){x.call(this,6);return a}
|
||||
function Ki(a){bf.call(this);return a}function Li(a,b){a=Mi.call(this,this.S(),b);80386>this.da&&(this.A-=12);return a}function Ni(a,b){a=this.Ha();a=2==this.X?Mi.call(this,a,b):Oi.call(this,a,b);80386>this.da&&(this.A-=12);return a}function Pi(a,b){var c=!1;0>b&&(b=-b|0,c=!c);0>a&&(a=-a|0,c=!c);Qi.call(this,a,b);c&&(this.Ea=~this.Ea+1|0,this.cb=~this.cb+(this.Ea?0:1)|0)}
|
||||
function Mi(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767<a||-32768>a?(og(this),qg(this)):(pg(this),rg(this));this.A-=-1===this.C?9:12;return a&65535}function Oi(a,b){Pi.call(this,a,b);this.cb!=this.Ea>>31?(og(this),qg(this)):(pg(this),rg(this));this.A-=-1===this.C?9:12;return this.Ea}function Ri(a,b){this.A-=14+(-1===this.C?0:2);vg(this);-1!==this.zb.load(b)&&this.zb.qc>=this.Pa&&this.zb.qc>=(b&3)&&(xg(this),a=this.zb.ob&-256,2<this.X&&(a|=(this.zb.ext&-65281)<<16));return a}
|
||||
function Si(a,b){if(-1===this.C)return bf.call(this),a;te(this,this.ja(this.C+this.X));this.A-=this.B.Ve;return b}function Ti(){this.A-=this.B.hk;return this.C}function Ui(a,b){if(-1===this.C)return bf.call(this),a;ue(this,this.ja(this.C+this.X));this.A-=this.B.Ve;return b}function Vi(a,b){if(-1===this.C)return bf.call(this),a;a=this.ja(this.C+this.X);this.Ka.load(a);this.A-=this.B.Ve;return b}
|
||||
function Wi(a,b){if(-1===this.C)return bf.call(this),a;a=this.ja(this.C+this.X);this.La.load(a);this.A-=this.B.Ve;return b}function Xi(a,b){this.A-=14+(-1===this.C?0:2);if(b&65528&&-1!==this.zb.load(b)&&(7168==(this.zb.ob&7168)||this.zb.qc>=this.Pa)&&this.zb.qc>=(b&3))return xg(this),this.zb.Sa;vg(this);return a}function Yi(a,b){if(-1===this.C)return bf.call(this),a;me(this,this.ja(this.C+this.X));this.A-=this.B.Ve;return b}
|
||||
function Zi(a,b){this.A-=-1===this.F?-1===this.C?this.B.pk:this.B.nk:this.B.lk;return b}function $i(a,b){switch(this.fa>>3&7){case 4:this.Aa=this.D;break;case 5:this.Aa=this.I;break;case 6:this.Aa=this.L;break;case 7:this.Aa=this.H}return b}function aj(a,b){return b}
|
||||
function bj(a,b){a=this.fa>>3&7;switch(a){case 0:this.Aa=this.D;break;case 2:this.Aa=this.L;break;case 3:this.Aa=this.H;break;default:if(80286==this.da||80386==this.da&&4!=a&&5!=a)x.call(this,6);else switch(a){case 1:this.Aa=this.I;break;case 4:this.Aa=y(this);break;case 5:this.Aa=this.N;break;case 6:this.Aa=this.K;break;case 7:this.Aa=this.J}}return Zi.call(this,0,b)}
|
||||
function cj(a,b){switch(this.fa>>3&7){case 0:b=this.pa.T;break;case 1:b=this.ba.T;break;case 2:b=this.U.T;break;case 3:b=this.Fa.T;break;case 4:if(80386<=this.da){b=this.Ka.T;break}x.call(this,6);b=a;break;case 5:if(80386<=this.da){b=this.La.T;break}default:x.call(this,6),b=a}-1!==this.F&&qe(this,2);return Zi.call(this,0,b)}
|
||||
function Qi(a,b){if(a&-65536||b&-65536){var c=b&65535;b>>>=16;var d=a&65535;a>>>=16;var e=c*d;d=(e>>>16)+b*d;var f=d>>>16;d=(d&65535)+c*a;this.Ea=d<<16|e&65535;this.cb=f+((d>>>16)+b*a)|0}else this.Ea=a*b|0,this.cb=0}function dj(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return ng(this,a|b,128)}function ej(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return ng(this,a|b,this.Hb)&this.R}
|
||||
function fj(a,b){var c=a-b-tg(this)|0;gg(this,a,b,c,191,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&255}function gj(a,b){var c=a-b-tg(this)|0;gg(this,a,b,c,this.Hb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&this.R}function hj(){return mg(this)?1:0}function rj(){return hg(this)?1:0}function sj(){return hg(this)?0:1}function tj(){return kg(this)?1:0}function uj(){return kg(this)?0:1}function vj(){return hg(this)||kg(this)?1:0}
|
||||
function wj(){return hg(this)||kg(this)?0:1}function xj(){return lg(this)?1:0}function yj(){return lg(this)?0:1}function zj(){return ig(this)?1:0}function Aj(){return ig(this)?0:1}function Bj(){return!lg(this)!=!mg(this)?1:0}function Cj(){return!lg(this)!=!mg(this)?0:1}function Dj(){return kg(this)||!lg(this)!=!mg(this)?1:0}function Ej(){return kg(this)||!lg(this)!=!mg(this)?0:1}function Fj(a,b){return Gj.call(this,a,b,this.sa())}function Hj(a,b){return Ij.call(this,a,b,this.sa())}
|
||||
function Jj(a,b){return Gj.call(this,a,b,this.I&31)}function Kj(a,b){return Ij.call(this,a,b,this.I&31)}function Lj(a,b){return Mj.call(this,a,b,this.sa())}function Nj(a,b){return Oj.call(this,a,b,this.sa())}function Pj(a,b){return Mj.call(this,a,b,this.I&31)}function Qj(a,b){return Oj.call(this,a,b,this.I&31)}function Rj(a,b){var c=a-b|0;gg(this,a,b,c,191,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&255}
|
||||
function Sj(a,b){var c=a-b|0;gg(this,a,b,c,this.Hb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return c&this.R}function Tj(a,b){ng(this,a&b,128);this.A-=-1===this.F?-1===this.C?this.B.Zh:this.B.Df:this.B.Df;this.M|=2;return a}function Uj(a,b){ng(this,a&b,this.Hb);this.A-=-1===this.F?-1===this.C?this.B.Zh:this.B.Df:this.B.Df;this.M|=2;return a}function Vj(a,b){var c=this.D&this.R,d=(1<<(this.I&31))-1;return a&~(d<<c)|(b&d)<<c}
|
||||
function Wj(a,b){return b>>(this.D&this.R)&(1<<(this.I&31))-1&this.R}function Xj(a,b){if(-1===this.C){switch(this.fa&7){case 0:this.D=this.D&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.L=this.L&-256|a;break;case 3:this.H=this.H&-256|a;break;case 4:this.D=this.D&-65281|a<<8;break;case 5:this.I=this.I&-65281|a<<8;break;case 6:this.L=this.L&-65281|a<<8;break;case 7:this.H=this.H&-65281|a<<8}this.A-=this.B.ai}else this.F=this.C,Ig(this,a),this.A-=this.B.$h;return b}
|
||||
function Yj(a,b){if(-1===this.C){switch(this.fa&7){case 0:this.D=this.D&~this.R|a;break;case 1:this.I=this.I&~this.R|a;break;case 2:this.L=this.L&~this.R|a;break;case 3:this.H=this.H&~this.R|a;break;case 4:ne(this,y(this)&~this.R|a);break;case 5:this.N=this.H&~this.R|a;break;case 6:this.K=this.K&~this.R|a;break;case 7:this.J=this.J&~this.R|a}this.A-=this.B.ai}else{this.F=this.C;if(!(this.M&2)){var c=this.Ia.Ub(this.vb,this.X);this.M&8?(this.ub(c,a),this.ub(this.Ia.Ub(0,1),a>>8),this.M&=-9):this.fc(c,
|
||||
a)}this.A-=this.B.$h}return b}function Zj(a,b){a^=b;ng(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return a}function ak(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Mb:this.B.Bc;return ng(this,a^b,this.Hb)&this.R}function bk(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c}function ck(a){var b=a-1|0;gg(this,a,1,b,this.Hb|62,!0);this.A-=2;return a&~this.R|b&this.R}
|
||||
function dk(a,b,c){c>>>=0;if(!c||c<=b>>>0)return!1;var d=0,e=1,f=this.Ym;f[0]=c>>>0;f[1]=0;c=this.en;c[0]=a>>>0;for(c[1]=b>>>0;0<bk(c,f);)b=a=f,a[0]+=b[0],a[1]+=b[1],4294967295<a[0]&&(a[0]>>>=0,a[1]++),e+=e;do 0<=bk(c,f)&&(a=c,b=f,a[0]-=b[0],a[1]-=b[1],0>a[0]&&(a[0]>>>=0,a[1]--),d+=e),a=f,a[0]>>>=1,a[1]&1&&(a[0]=(a[0]|2147483648)>>>0),a[1]>>>=1,e/=2;while(1<=e);this.Ea=d;this.cb=c[0];return!0}function ek(a){var b=a+1|0;gg(this,a,1,b,this.Hb|62);this.A-=2;return a&~this.R|b&this.R}
|
||||
function fk(a){this.ra=a;pe(this);this.ra&-2147483648?qf(this):tf(this)}function gk(a){this.M|=1;this.uc.call(this,a);this.A-=-1===this.C?4:5}function Gj(a,b,c){if(c){16<c&&(a=b,c-=16);var d=a<<c-1;a=(d<<1|b>>>16-c)&65535;ng(this,a,32768,d&32768)}return a}function Ij(a,b,c){if(c){var d=a<<c-1;a=d<<1|b>>>32-c;ng(this,a,-2147483648,d&-2147483648)}return a}function Mj(a,b,c){if(c){16<c&&(a=b,c-=16);var d=a>>>c-1;a=(d>>>1|b<<16-c)&65535;ng(this,a,32768,d&1)}return a}
|
||||
function Oj(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;ng(this,a,-2147483648,d&1)}return a}function hk(){this.A-=-1===this.C?2:this.B.Ck;return 1}function ik(){var a=this.I&255;this.A-=(-1===this.C?this.B.Sh:this.B.Rh)+(a<<this.B.Th);return a}function jk(){var a=this.sa();this.A-=(-1===this.C?this.B.Sh:this.B.Rh)+(a<<this.B.Th);return a}function kk(){return null}function lk(){return this.Aa}
|
||||
function mk(a,b){this.nd=this.ba.T;this.Tc=this.U.T;this.ta=this.Ca;var c=z(this),d=this.X;null!=ze(this,a,b,!0)&&(se(this,this.nd,d,2),se(this,c,d,d));this.nd=this.Tc=this.ta=-1}function nk(a,b,c){this.A-=this.B.$j+(c||0);c=xe(this);var d=this.ba.T,e=z(this);a=this.ba.Aj(a);-1!==a&&(ve(this,c),ve(this,d),ve(this,e),null!=b&&ve(this,b),this.Sc=-1,dg(this,a))}
|
||||
function ok(a){this.Tc=this.U.T;this.ta=this.Ca;var b=le(this),c=le(this);a&&ne(this,y(this)+a);ze(this,b,c,!1)&&(a&&ne(this,y(this)+a),pk.call(this,this.Fa),pk.call(this,this.pa),80386<=this.da&&(pk.call(this,this.Ka),pk.call(this,this.La)));2==a&&this.Wf&&Yf(this,this.ea);this.Tc=this.ta=-1}function qk(){8086==this.da?(this.Sc=-1,nk.call(this,0,null,2)):x.call(this,0,null,2)}function Qg(a,b){this.Sc=a;void 0===b&&(b=11);nk.call(this,a,null,b)}
|
||||
function x(a,b,c,d){var e=!1;this.aa.complete?80186<=this.da&&(e=!0,0>this.Sc?(-1!=this.nd&&(this.nd!==this.ba.T&&(this.ba.Cb=this.nd&3,cg(this,this.nd)),this.nd=-1),this.od!==this.ea&&dg(this,this.od),-1!=this.Tc&&(this.Tc!==this.U.T&&me(this,this.Tc),this.Tc=-1),-1!==this.ta&&(this.ta!==this.Ca&&ne(this,this.Ac&~this.U.xa|this.ta-this.U.ua),this.ta=-1)):8!=this.Sc?(b=0,a=8):(b=0,a=-1,of(this),e=d=!1)):dg(this,this.od);var f=a,g=b,h=32,k=Ag(this,this.ea);204!=k||this.$c||(d=!1);this.P&131072&&(6==
|
||||
f&&99==k||13==f&&205==k)&&(d=!1);!1===d&&(h|=1);983040<=this.ea&&1048575>=this.ea&&(d=!1);r(this,h|-2147483648)&&(d=!0);if(r(this,h)||d){var m=this.aa.Xa;f="Fault "+va(f)+(null!=g?" ("+wa(g)+")":"")+" on opcode "+va(k);d&&m&&(f+=" (blocked)");this.ca?(Tb(this,f,d||h,!0),d&&(d=m,rk(this.ca))):(this.Da(f),Gd(this))}if(d&&e)throw-1;if(e)throw this.Sc=a,nk.call(this,a,b,c),this.od=this.ea,this.M=1==a?this.M|8192:this.M|4096,a;}
|
||||
function sf(a,b,c){this.pd=a;a=0;b&&(a|=1);c&&(a|=2);3==this.Pa&&(a|=4);x.call(this,14,a)}function pk(a){var b=a.ob&7680;a.T&65528&&(6144==b||7168==b||7168>b&&a.qc<this.Pa&&a.qc<(a.T&3))&&a.load(0)}
|
||||
function Cf(a){switch((this.fa=this.sa())&199){case 0:var b=D(this,this.H+this.K);this.A-=this.B.Qc;break;case 1:b=D(this,this.H+this.J);this.A-=this.B.Rc;break;case 2:b=Cg(this,this.N+this.K);this.A-=this.B.Rc;break;case 3:b=Cg(this,this.N+this.J);this.A-=this.B.Qc;break;case 4:b=D(this,this.K);this.A-=this.B.xc;break;case 5:b=D(this,this.J);this.A-=this.B.xc;break;case 6:b=D(this,K(this));this.A-=this.B.yd;break;case 7:b=D(this,this.H);this.A-=this.B.xc;break;case 64:b=D(this,this.H+this.K+this.S());
|
||||
this.A-=this.B.Wb;break;case 65:b=D(this,this.H+this.J+this.S());this.A-=this.B.Xb;break;case 66:b=Cg(this,this.N+this.K+this.S());this.A-=this.B.Xb;break;case 67:b=Cg(this,this.N+this.J+this.S());this.A-=this.B.Wb;break;case 68:b=D(this,this.K+this.S());this.A-=this.B.Za;break;case 69:b=D(this,this.J+this.S());this.A-=this.B.Za;break;case 70:b=Cg(this,this.N+this.S());this.A-=this.B.Za;break;case 71:b=D(this,this.H+this.S());this.A-=this.B.Za;break;case 128:b=D(this,this.H+this.K+K(this));this.A-=
|
||||
this.B.Wb;break;case 129:b=D(this,this.H+this.J+K(this));this.A-=this.B.Xb;break;case 130:b=Cg(this,this.N+this.K+K(this));this.A-=this.B.Xb;break;case 131:b=Cg(this,this.N+this.J+K(this));this.A-=this.B.Wb;break;case 132:b=D(this,this.K+K(this));this.A-=this.B.Za;break;case 133:b=D(this,this.J+K(this));this.A-=this.B.Za;break;case 134:b=Cg(this,this.N+K(this));this.A-=this.B.Za;break;case 135:b=D(this,this.H+K(this));this.A-=this.B.Za;break;case 192:b=this.D&255;break;case 193:b=this.I&255;break;
|
||||
case 194:b=this.L&255;break;case 195:b=this.H&255;break;case 196:b=this.D>>8&255;break;case 197:b=this.I>>8&255;break;case 198:b=this.L>>8&255;break;case 199:b=this.H>>8&255;break;default:b=0}var c=this.fa>>3&7;switch(c){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.L&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=this.D&
|
||||
-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.L=this.L&-256|a;break;case 3:this.H=this.H&-256|a;break;case 4:this.D=this.D&-65281|a<<8;break;case 5:this.I=this.I&-65281|a<<8;break;case 6:this.L=this.L&-65281|a<<8;break;case 7:this.H=this.H&-65281|a<<8}}
|
||||
function Df(a){var b=(this.fa=this.sa())&199;switch(b){case 0:var c=D(this,this.H+this.K);this.F=this.C;break;case 1:c=D(this,this.H+this.J);this.F=this.C;break;case 2:c=Cg(this,this.N+this.K);this.F=this.C;break;case 3:c=Cg(this,this.N+this.J);this.F=this.C;break;case 4:c=D(this,this.K);this.F=this.C;break;case 5:c=D(this,this.J);this.F=this.C;break;case 6:c=D(this,K(this));this.F=this.C;break;case 7:c=D(this,this.H);this.F=this.C;break;case 64:c=D(this,this.H+this.K+this.S());this.F=this.C;break;
|
||||
case 65:c=D(this,this.H+this.J+this.S());this.F=this.C;break;case 66:c=Cg(this,this.N+this.K+this.S());this.F=this.C;break;case 67:c=Cg(this,this.N+this.J+this.S());this.F=this.C;break;case 68:c=D(this,this.K+this.S());this.F=this.C;break;case 69:c=D(this,this.J+this.S());this.F=this.C;break;case 70:c=Cg(this,this.N+this.S());this.F=this.C;break;case 71:c=D(this,this.H+this.S());this.F=this.C;break;case 128:c=D(this,this.H+this.K+K(this));this.F=this.C;break;case 129:c=D(this,this.H+this.J+K(this));
|
||||
this.F=this.C;break;case 130:c=Cg(this,this.N+this.K+K(this));this.F=this.C;break;case 131:c=Cg(this,this.N+this.J+K(this));this.F=this.C;break;case 132:c=D(this,this.K+K(this));this.F=this.C;break;case 133:c=D(this,this.J+K(this));this.F=this.C;break;case 134:c=Cg(this,this.N+K(this));this.F=this.C;break;case 135:c=D(this,this.H+K(this));this.F=this.C;break;case 192:c=this.D&255;break;case 193:c=this.I&255;break;case 194:c=this.L&255;break;case 195:c=this.H&255;break;case 196:c=this.D>>8&255;break;
|
||||
case 197:c=this.I>>8&255;break;case 198:c=this.L>>8&255;break;case 199:c=this.H>>8&255;break;default:c=0}switch(this.fa>>3&7){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.L&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:Ig(this,a);this.A-=this.B.Qc;break;case 1:case 2:Ig(this,a);this.A-=this.B.Rc;break;case 4:case 5:case 7:Ig(this,
|
||||
a);this.A-=this.B.xc;break;case 6:Ig(this,a);this.A-=this.B.yd;break;case 64:case 67:case 128:case 131:Ig(this,a);this.A-=this.B.Wb;break;case 65:case 66:case 129:case 130:Ig(this,a);this.A-=this.B.Xb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:Ig(this,a);this.A-=this.B.Za;break;case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I=
|
||||
this.I&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8}}
|
||||
function Ef(a,b){var c=(this.fa=this.sa())&199;switch(c){case 0:var d=D(this,this.H+this.K);this.F=this.C;break;case 1:d=D(this,this.H+this.J);this.F=this.C;break;case 2:d=Cg(this,this.N+this.K);this.F=this.C;break;case 3:d=Cg(this,this.N+this.J);this.F=this.C;break;case 4:d=D(this,this.K);this.F=this.C;break;case 5:d=D(this,this.J);this.F=this.C;break;case 6:d=D(this,K(this));this.F=this.C;break;case 7:d=D(this,this.H);this.F=this.C;break;case 64:d=D(this,this.H+this.K+this.S());this.F=this.C;break;
|
||||
case 65:d=D(this,this.H+this.J+this.S());this.F=this.C;break;case 66:d=Cg(this,this.N+this.K+this.S());this.F=this.C;break;case 67:d=Cg(this,this.N+this.J+this.S());this.F=this.C;break;case 68:d=D(this,this.K+this.S());this.F=this.C;break;case 69:d=D(this,this.J+this.S());this.F=this.C;break;case 70:d=Cg(this,this.N+this.S());this.F=this.C;break;case 71:d=D(this,this.H+this.S());this.F=this.C;break;case 128:d=D(this,this.H+this.K+K(this));this.F=this.C;break;case 129:d=D(this,this.H+this.J+K(this));
|
||||
this.F=this.C;break;case 130:d=Cg(this,this.N+this.K+K(this));this.F=this.C;break;case 131:d=Cg(this,this.N+this.J+K(this));this.F=this.C;break;case 132:d=D(this,this.K+K(this));this.F=this.C;break;case 133:d=D(this,this.J+K(this));this.F=this.C;break;case 134:d=Cg(this,this.N+K(this));this.F=this.C;break;case 135:d=D(this,this.H+K(this));this.F=this.C;break;case 192:d=this.D&255;break;case 193:d=this.I&255;break;case 194:d=this.L&255;break;case 195:d=this.H&255;break;case 196:d=this.D>>8&255;break;
|
||||
case 197:d=this.I>>8&255;break;case 198:d=this.L>>8&255;break;case 199:d=this.H>>8&255;break;default:d=0}a=a[this.fa>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:Ig(this,a);this.A-=this.B.Qc;break;case 1:case 2:Ig(this,a);this.A-=this.B.Rc;break;case 4:case 5:case 7:Ig(this,a);this.A-=this.B.xc;break;case 6:Ig(this,a);this.A-=this.B.yd;break;case 64:case 67:case 128:case 131:Ig(this,a);this.A-=this.B.Wb;break;case 65:case 66:case 129:case 130:Ig(this,a);this.A-=this.B.Xb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:Ig(this,
|
||||
a);this.A-=this.B.Za;break;case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I=this.I&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8}}
|
||||
function Ff(a){switch((this.fa=this.sa())&199){case 0:var b=E(this,this.H+this.K);this.A-=this.B.Qc;break;case 1:b=E(this,this.H+this.J);this.A-=this.B.Rc;break;case 2:b=Eg(this,this.N+this.K);this.A-=this.B.Rc;break;case 3:b=Eg(this,this.N+this.J);this.A-=this.B.Qc;break;case 4:b=E(this,this.K);this.A-=this.B.xc;break;case 5:b=E(this,this.J);this.A-=this.B.xc;break;case 6:b=E(this,K(this));this.A-=this.B.yd;break;case 7:b=E(this,this.H);this.A-=this.B.xc;break;case 64:b=E(this,this.H+this.K+this.S());
|
||||
this.A-=this.B.Wb;break;case 65:b=E(this,this.H+this.J+this.S());this.A-=this.B.Xb;break;case 66:b=Eg(this,this.N+this.K+this.S());this.A-=this.B.Xb;break;case 67:b=Eg(this,this.N+this.J+this.S());this.A-=this.B.Wb;break;case 68:b=E(this,this.K+this.S());this.A-=this.B.Za;break;case 69:b=E(this,this.J+this.S());this.A-=this.B.Za;break;case 70:b=Eg(this,this.N+this.S());this.A-=this.B.Za;break;case 71:b=E(this,this.H+this.S());this.A-=this.B.Za;break;case 128:b=E(this,this.H+this.K+K(this));this.A-=
|
||||
this.B.Wb;break;case 129:b=E(this,this.H+this.J+K(this));this.A-=this.B.Xb;break;case 130:b=Eg(this,this.N+this.K+K(this));this.A-=this.B.Xb;break;case 131:b=Eg(this,this.N+this.J+K(this));this.A-=this.B.Wb;break;case 132:b=E(this,this.K+K(this));this.A-=this.B.Za;break;case 133:b=E(this,this.J+K(this));this.A-=this.B.Za;break;case 134:b=Eg(this,this.N+K(this));this.A-=this.B.Za;break;case 135:b=E(this,this.H+K(this));this.A-=this.B.Za;break;case 192:b=this.D&65535;break;case 193:b=this.I&65535;break;
|
||||
case 194:b=this.L&65535;break;case 195:b=this.H&65535;break;case 196:b=y(this)&65535;break;case 197:b=this.N&65535;break;case 198:b=this.K&65535;break;case 199:b=this.J&65535;break;default:b=0}var c=this.fa>>3&7;switch(c){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.L&65535;break;case 3:d=this.H&65535;break;case 4:d=y(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.K&65535;break;case 7:d=this.J&65535;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=
|
||||
this.D&-65536|a;break;case 1:this.I=this.I&-65536|a;break;case 2:this.L=this.L&-65536|a;break;case 3:this.H=this.H&-65536|a;break;case 4:ne(this,y(this)&-65536|a);break;case 5:this.N=this.N&-65536|a;break;case 6:this.K=this.K&-65536|a;break;case 7:this.J=this.J&-65536|a}}
|
||||
function Gf(a){var b=(this.fa=this.sa())&199;switch(b){case 0:var c=E(this,this.H+this.K);this.F=this.C;break;case 1:c=E(this,this.H+this.J);this.F=this.C;break;case 2:c=Eg(this,this.N+this.K);this.F=this.C;break;case 3:c=Eg(this,this.N+this.J);this.F=this.C;break;case 4:c=E(this,this.K);this.F=this.C;break;case 5:c=E(this,this.J);this.F=this.C;break;case 6:c=E(this,K(this));this.F=this.C;break;case 7:c=E(this,this.H);this.F=this.C;break;case 64:c=E(this,this.H+this.K+this.S());this.F=this.C;break;
|
||||
case 65:c=E(this,this.H+this.J+this.S());this.F=this.C;break;case 66:c=Eg(this,this.N+this.K+this.S());this.F=this.C;break;case 67:c=Eg(this,this.N+this.J+this.S());this.F=this.C;break;case 68:c=E(this,this.K+this.S());this.F=this.C;break;case 69:c=E(this,this.J+this.S());this.F=this.C;break;case 70:c=Eg(this,this.N+this.S());this.F=this.C;break;case 71:c=E(this,this.H+this.S());this.F=this.C;break;case 128:c=E(this,this.H+this.K+K(this));this.F=this.C;break;case 129:c=E(this,this.H+this.J+K(this));
|
||||
this.F=this.C;break;case 130:c=Eg(this,this.N+this.K+K(this));this.F=this.C;break;case 131:c=Eg(this,this.N+this.J+K(this));this.F=this.C;break;case 132:c=E(this,this.K+K(this));this.F=this.C;break;case 133:c=E(this,this.J+K(this));this.F=this.C;break;case 134:c=Eg(this,this.N+K(this));this.F=this.C;break;case 135:c=E(this,this.H+K(this));this.F=this.C;break;case 192:c=this.D&65535;break;case 193:c=this.I&65535;break;case 194:c=this.L&65535;break;case 195:c=this.H&65535;break;case 196:c=y(this)&65535;
|
||||
break;case 197:c=this.N&65535;break;case 198:c=this.K&65535;break;case 199:c=this.J&65535;break;default:c=0}switch(this.fa>>3&7){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.L&65535;break;case 3:d=this.H&65535;break;case 4:d=y(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.K&65535;break;case 7:d=this.J&65535;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:Jg(this,a);this.A-=this.B.Qc;break;case 1:case 2:Jg(this,a);this.A-=this.B.Rc;break;case 4:case 5:case 7:Jg(this,
|
||||
a);this.A-=this.B.xc;break;case 6:Jg(this,a);this.A-=this.B.yd;break;case 64:case 67:case 128:case 131:Jg(this,a);this.A-=this.B.Wb;break;case 65:case 66:case 129:case 130:Jg(this,a);this.A-=this.B.Xb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:Jg(this,a);this.A-=this.B.Za;break;case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:ne(this,y(this)&-65536|a);break;
|
||||
case 197:this.N=this.N&-65536|a;break;case 198:this.K=this.K&-65536|a;break;case 199:this.J=this.J&-65536|a}}
|
||||
function Hf(a,b){var c=(this.fa=this.sa())&199;switch(c){case 0:var d=E(this,this.H+this.K);this.F=this.C;break;case 1:d=E(this,this.H+this.J);this.F=this.C;break;case 2:d=Eg(this,this.N+this.K);this.F=this.C;break;case 3:d=Eg(this,this.N+this.J);this.F=this.C;break;case 4:d=E(this,this.K);this.F=this.C;break;case 5:d=E(this,this.J);this.F=this.C;break;case 6:d=E(this,K(this));this.F=this.C;break;case 7:d=E(this,this.H);this.F=this.C;break;case 64:d=E(this,this.H+this.K+this.S());this.F=this.C;break;
|
||||
case 65:d=E(this,this.H+this.J+this.S());this.F=this.C;break;case 66:d=Eg(this,this.N+this.K+this.S());this.F=this.C;break;case 67:d=Eg(this,this.N+this.J+this.S());this.F=this.C;break;case 68:d=E(this,this.K+this.S());this.F=this.C;break;case 69:d=E(this,this.J+this.S());this.F=this.C;break;case 70:d=Eg(this,this.N+this.S());this.F=this.C;break;case 71:d=E(this,this.H+this.S());this.F=this.C;break;case 128:d=E(this,this.H+this.K+K(this));this.F=this.C;break;case 129:d=E(this,this.H+this.J+K(this));
|
||||
this.F=this.C;break;case 130:d=Eg(this,this.N+this.K+K(this));this.F=this.C;break;case 131:d=Eg(this,this.N+this.J+K(this));this.F=this.C;break;case 132:d=E(this,this.K+K(this));this.F=this.C;break;case 133:d=E(this,this.J+K(this));this.F=this.C;break;case 134:d=Eg(this,this.N+K(this));this.F=this.C;break;case 135:d=E(this,this.H+K(this));this.F=this.C;break;case 192:d=this.D&65535;break;case 193:d=this.I&65535;break;case 194:d=this.L&65535;break;case 195:d=this.H&65535;break;case 196:d=y(this)&65535;
|
||||
break;case 197:d=this.N&65535;break;case 198:d=this.K&65535;break;case 199:d=this.J&65535;break;default:d=0}a=a[this.fa>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:Jg(this,a);this.A-=this.B.Qc;break;case 1:case 2:Jg(this,a);this.A-=this.B.Rc;break;case 4:case 5:case 7:Jg(this,a);this.A-=this.B.xc;break;case 6:Jg(this,a);this.A-=this.B.yd;break;case 64:case 67:case 128:case 131:Jg(this,a);this.A-=this.B.Wb;break;case 65:case 66:case 129:case 130:Jg(this,a);this.A-=this.B.Xb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:Jg(this,
|
||||
a);this.A-=this.B.Za;break;case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:ne(this,y(this)&-65536|a);break;case 197:this.N=this.N&-65536|a;break;case 198:this.K=this.K&-65536|a;break;case 199:this.J=this.J&-65536|a}}
|
||||
function If(a){switch((this.fa=this.sa())&199){case 0:var b=F(this,this.H+this.K);this.A-=this.B.Qc;break;case 1:b=F(this,this.H+this.J);this.A-=this.B.Rc;break;case 2:b=Hg(this,this.N+this.K);this.A-=this.B.Rc;break;case 3:b=Hg(this,this.N+this.J);this.A-=this.B.Qc;break;case 4:b=F(this,this.K);this.A-=this.B.xc;break;case 5:b=F(this,this.J);this.A-=this.B.xc;break;case 6:b=F(this,K(this));this.A-=this.B.yd;break;case 7:b=F(this,this.H);this.A-=this.B.xc;break;case 64:b=F(this,this.H+this.K+this.S());
|
||||
this.A-=this.B.Wb;break;case 65:b=F(this,this.H+this.J+this.S());this.A-=this.B.Xb;break;case 66:b=Hg(this,this.N+this.K+this.S());this.A-=this.B.Xb;break;case 67:b=Hg(this,this.N+this.J+this.S());this.A-=this.B.Wb;break;case 68:b=F(this,this.K+this.S());this.A-=this.B.Za;break;case 69:b=F(this,this.J+this.S());this.A-=this.B.Za;break;case 70:b=Hg(this,this.N+this.S());this.A-=this.B.Za;break;case 71:b=F(this,this.H+this.S());this.A-=this.B.Za;break;case 128:b=F(this,this.H+this.K+K(this));this.A-=
|
||||
this.B.Wb;break;case 129:b=F(this,this.H+this.J+K(this));this.A-=this.B.Xb;break;case 130:b=Hg(this,this.N+this.K+K(this));this.A-=this.B.Xb;break;case 131:b=Hg(this,this.N+this.J+K(this));this.A-=this.B.Wb;break;case 132:b=F(this,this.K+K(this));this.A-=this.B.Za;break;case 133:b=F(this,this.J+K(this));this.A-=this.B.Za;break;case 134:b=Hg(this,this.N+K(this));this.A-=this.B.Za;break;case 135:b=F(this,this.H+K(this));this.A-=this.B.Za;break;case 192:b=this.D;break;case 193:b=this.I;break;case 194:b=
|
||||
this.L;break;case 195:b=this.H;break;case 196:b=y(this);break;case 197:b=this.N;break;case 198:b=this.K;break;case 199:b=this.J;break;default:b=0}var c=this.fa>>3&7;switch(c){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.L;break;case 3:d=this.H;break;case 4:d=y(this);break;case 5:d=this.N;break;case 6:d=this.K;break;case 7:d=this.J;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=a;break;case 1:this.I=a;break;case 2:this.L=a;break;case 3:this.H=a;break;case 4:ne(this,a);
|
||||
break;case 5:this.N=a;break;case 6:this.K=a;break;case 7:this.J=a}}
|
||||
function Jf(a){var b=(this.fa=this.sa())&199;switch(b){case 0:var c=F(this,this.H+this.K);this.F=this.C;break;case 1:c=F(this,this.H+this.J);this.F=this.C;break;case 2:c=Hg(this,this.N+this.K);this.F=this.C;break;case 3:c=Hg(this,this.N+this.J);this.F=this.C;break;case 4:c=F(this,this.K);this.F=this.C;break;case 5:c=F(this,this.J);this.F=this.C;break;case 6:c=F(this,K(this));this.F=this.C;break;case 7:c=F(this,this.H);this.F=this.C;break;case 64:c=F(this,this.H+this.K+this.S());this.F=this.C;break;
|
||||
case 65:c=F(this,this.H+this.J+this.S());this.F=this.C;break;case 66:c=Hg(this,this.N+this.K+this.S());this.F=this.C;break;case 67:c=Hg(this,this.N+this.J+this.S());this.F=this.C;break;case 68:c=F(this,this.K+this.S());this.F=this.C;break;case 69:c=F(this,this.J+this.S());this.F=this.C;break;case 70:c=Hg(this,this.N+this.S());this.F=this.C;break;case 71:c=F(this,this.H+this.S());this.F=this.C;break;case 128:c=F(this,this.H+this.K+K(this));this.F=this.C;break;case 129:c=F(this,this.H+this.J+K(this));
|
||||
this.F=this.C;break;case 130:c=Hg(this,this.N+this.K+K(this));this.F=this.C;break;case 131:c=Hg(this,this.N+this.J+K(this));this.F=this.C;break;case 132:c=F(this,this.K+K(this));this.F=this.C;break;case 133:c=F(this,this.J+K(this));this.F=this.C;break;case 134:c=Hg(this,this.N+K(this));this.F=this.C;break;case 135:c=F(this,this.H+K(this));this.F=this.C;break;case 192:c=this.D;break;case 193:c=this.I;break;case 194:c=this.L;break;case 195:c=this.H;break;case 196:c=y(this);break;case 197:c=this.N;break;
|
||||
case 198:c=this.K;break;case 199:c=this.J;break;default:c=0}switch(this.fa>>3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.L;break;case 3:d=this.H;break;case 4:d=y(this);break;case 5:d=this.N;break;case 6:d=this.K;break;case 7:d=this.J;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:Kg(this,a);this.A-=this.B.Qc;break;case 1:case 2:Kg(this,a);this.A-=this.B.Rc;break;case 4:case 5:case 7:Kg(this,a);this.A-=this.B.xc;break;case 6:Kg(this,a);this.A-=this.B.yd;break;case 64:case 67:case 128:case 131:Kg(this,
|
||||
a);this.A-=this.B.Wb;break;case 65:case 66:case 129:case 130:Kg(this,a);this.A-=this.B.Xb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:Kg(this,a);this.A-=this.B.Za;break;case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.L=a;break;case 195:this.H=a;break;case 196:ne(this,a);break;case 197:this.N=a;break;case 198:this.K=a;break;case 199:this.J=a}}
|
||||
function Kf(a,b){var c=(this.fa=this.sa())&199;switch(c){case 0:var d=F(this,this.H+this.K);this.F=this.C;break;case 1:d=F(this,this.H+this.J);this.F=this.C;break;case 2:d=Hg(this,this.N+this.K);this.F=this.C;break;case 3:d=Hg(this,this.N+this.J);this.F=this.C;break;case 4:d=F(this,this.K);this.F=this.C;break;case 5:d=F(this,this.J);this.F=this.C;break;case 6:d=F(this,K(this));this.F=this.C;break;case 7:d=F(this,this.H);this.F=this.C;break;case 64:d=F(this,this.H+this.K+this.S());this.F=this.C;break;
|
||||
case 65:d=F(this,this.H+this.J+this.S());this.F=this.C;break;case 66:d=Hg(this,this.N+this.K+this.S());this.F=this.C;break;case 67:d=Hg(this,this.N+this.J+this.S());this.F=this.C;break;case 68:d=F(this,this.K+this.S());this.F=this.C;break;case 69:d=F(this,this.J+this.S());this.F=this.C;break;case 70:d=Hg(this,this.N+this.S());this.F=this.C;break;case 71:d=F(this,this.H+this.S());this.F=this.C;break;case 128:d=F(this,this.H+this.K+K(this));this.F=this.C;break;case 129:d=F(this,this.H+this.J+K(this));
|
||||
this.F=this.C;break;case 130:d=Hg(this,this.N+this.K+K(this));this.F=this.C;break;case 131:d=Hg(this,this.N+this.J+K(this));this.F=this.C;break;case 132:d=F(this,this.K+K(this));this.F=this.C;break;case 133:d=F(this,this.J+K(this));this.F=this.C;break;case 134:d=Hg(this,this.N+K(this));this.F=this.C;break;case 135:d=F(this,this.H+K(this));this.F=this.C;break;case 192:d=this.D;break;case 193:d=this.I;break;case 194:d=this.L;break;case 195:d=this.H;break;case 196:d=y(this);break;case 197:d=this.N;break;
|
||||
case 198:d=this.K;break;case 199:d=this.J}a=a[this.fa>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:Kg(this,a);this.A-=this.B.Qc;break;case 1:case 2:Kg(this,a);this.A-=this.B.Rc;break;case 4:case 5:case 7:Kg(this,a);this.A-=this.B.xc;break;case 6:Kg(this,a);this.A-=this.B.yd;break;case 64:case 67:case 128:case 131:Kg(this,a);this.A-=this.B.Wb;break;case 65:case 66:case 129:case 130:Kg(this,a);this.A-=this.B.Xb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:Kg(this,
|
||||
a);this.A-=this.B.Za;break;case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.L=a;break;case 195:this.H=a;break;case 196:ne(this,a);break;case 197:this.N=a;break;case 198:this.K=a;break;case 199:this.J=a}}
|
||||
function Lf(a){switch((this.fa=this.sa())&199){case 0:var b=D(this,this.D);break;case 1:b=D(this,this.I);break;case 2:b=D(this,this.L);break;case 3:b=D(this,this.H);break;case 4:b=D(this,sk.call(this,0));break;case 5:b=D(this,K(this));break;case 6:b=D(this,this.K);break;case 7:b=D(this,this.J);break;case 64:b=D(this,this.D+this.S());break;case 65:b=D(this,this.I+this.S());break;case 66:b=D(this,this.L+this.S());break;case 67:b=D(this,this.H+this.S());break;case 68:b=D(this,sk.call(this,1)+this.S());
|
||||
break;case 69:b=Cg(this,this.N+this.S());break;case 70:b=D(this,this.K+this.S());break;case 71:b=D(this,this.J+this.S());break;case 128:b=D(this,this.D+K(this));break;case 129:b=D(this,this.I+K(this));break;case 130:b=D(this,this.L+K(this));break;case 131:b=D(this,this.H+K(this));break;case 132:b=D(this,sk.call(this,2)+K(this));break;case 133:b=Cg(this,this.N+K(this));break;case 134:b=D(this,this.K+K(this));break;case 135:b=D(this,this.J+K(this));break;case 192:b=this.D&255;break;case 193:b=this.I&
|
||||
255;break;case 194:b=this.L&255;break;case 195:b=this.H&255;break;case 196:b=this.D>>8&255;break;case 197:b=this.I>>8&255;break;case 198:b=this.L>>8&255;break;case 199:b=this.H>>8&255;break;default:b=0}var c=this.fa>>3&7;switch(c){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.L&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=
|
||||
this.D&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.L=this.L&-256|a;break;case 3:this.H=this.H&-256|a;break;case 4:this.D=this.D&-65281|a<<8;break;case 5:this.I=this.I&-65281|a<<8;break;case 6:this.L=this.L&-65281|a<<8;break;case 7:this.H=this.H&-65281|a<<8}}
|
||||
function Mf(a){var b=(this.fa=this.sa())&199;switch(b){case 0:var c=D(this,this.D);this.F=this.C;break;case 1:c=D(this,this.I);this.F=this.C;break;case 2:c=D(this,this.L);this.F=this.C;break;case 3:c=D(this,this.H);this.F=this.C;break;case 4:c=D(this,sk.call(this,0));this.F=this.C;break;case 5:c=D(this,K(this));this.F=this.C;break;case 6:c=D(this,this.K);this.F=this.C;break;case 7:c=D(this,this.J);this.F=this.C;break;case 64:c=D(this,this.D+this.S());this.F=this.C;break;case 65:c=D(this,this.I+this.S());
|
||||
this.F=this.C;break;case 66:c=D(this,this.L+this.S());this.F=this.C;break;case 67:c=D(this,this.H+this.S());this.F=this.C;break;case 68:c=D(this,sk.call(this,1)+this.S());this.F=this.C;break;case 69:c=Cg(this,this.N+this.S());this.F=this.C;break;case 70:c=D(this,this.K+this.S());this.F=this.C;break;case 71:c=D(this,this.J+this.S());this.F=this.C;break;case 128:c=D(this,this.D+K(this));this.F=this.C;break;case 129:c=D(this,this.I+K(this));this.F=this.C;break;case 130:c=D(this,this.L+K(this));this.F=
|
||||
this.C;break;case 131:c=D(this,this.H+K(this));this.F=this.C;break;case 132:c=D(this,sk.call(this,2)+K(this));this.F=this.C;break;case 133:c=Cg(this,this.N+K(this));this.F=this.C;break;case 134:c=D(this,this.K+K(this));this.F=this.C;break;case 135:c=D(this,this.J+K(this));this.F=this.C;break;case 192:c=this.D&255;break;case 193:c=this.I&255;break;case 194:c=this.L&255;break;case 195:c=this.H&255;break;case 196:c=this.D>>8&255;break;case 197:c=this.I>>8&255;break;case 198:c=this.L>>8&255;break;case 199:c=
|
||||
this.H>>8&255;break;default:c=0}switch(this.fa>>3&7){case 0:var d=this.D&255;break;case 1:d=this.I&255;break;case 2:d=this.L&255;break;case 3:d=this.H&255;break;case 4:d=this.D>>8&255;break;case 5:d=this.I>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.H>>8&255;break;default:d=0}a=a.call(this,c,d);switch(b){case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;
|
||||
case 197:this.I=this.I&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8;break;default:Ig(this,a)}}
|
||||
function Nf(a,b){var c=(this.fa=this.sa())&199;switch(c){case 0:var d=D(this,this.D);this.F=this.C;break;case 1:d=D(this,this.I);this.F=this.C;break;case 2:d=D(this,this.L);this.F=this.C;break;case 3:d=D(this,this.H);this.F=this.C;break;case 4:d=D(this,sk.call(this,0));this.F=this.C;break;case 5:d=D(this,K(this));this.F=this.C;break;case 6:d=D(this,this.K);this.F=this.C;break;case 7:d=D(this,this.J);this.F=this.C;break;case 64:d=D(this,this.D+this.S());this.F=this.C;break;case 65:d=D(this,this.I+
|
||||
this.S());this.F=this.C;break;case 66:d=D(this,this.L+this.S());this.F=this.C;break;case 67:d=D(this,this.H+this.S());this.F=this.C;break;case 68:d=D(this,sk.call(this,1)+this.S());this.F=this.C;break;case 69:d=Cg(this,this.N+this.S());this.F=this.C;break;case 70:d=D(this,this.K+this.S());this.F=this.C;break;case 71:d=D(this,this.J+this.S());this.F=this.C;break;case 128:d=D(this,this.D+K(this));this.F=this.C;break;case 129:d=D(this,this.I+K(this));this.F=this.C;break;case 130:d=D(this,this.L+K(this));
|
||||
this.F=this.C;break;case 131:d=D(this,this.H+K(this));this.F=this.C;break;case 132:d=D(this,sk.call(this,2)+K(this));this.F=this.C;break;case 133:d=Cg(this,this.N+K(this));this.F=this.C;break;case 134:d=D(this,this.K+K(this));this.F=this.C;break;case 135:d=D(this,this.J+K(this));this.F=this.C;break;case 192:d=this.D&255;break;case 193:d=this.I&255;break;case 194:d=this.L&255;break;case 195:d=this.H&255;break;case 196:d=this.D>>8&255;break;case 197:d=this.I>>8&255;break;case 198:d=this.L>>8&255;break;
|
||||
case 199:d=this.H>>8&255;break;default:d=0}a=a[this.fa>>3&7].call(this,d,b.call(this));switch(c){case 192:this.D=this.D&-256|a;break;case 193:this.I=this.I&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.H=this.H&-256|a;break;case 196:this.D=this.D&-65281|a<<8;break;case 197:this.I=this.I&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.H=this.H&-65281|a<<8;break;default:Ig(this,a)}}
|
||||
function Of(a){switch((this.fa=this.sa())&199){case 0:var b=E(this,this.D);break;case 1:b=E(this,this.I);break;case 2:b=E(this,this.L);break;case 3:b=E(this,this.H);break;case 4:b=E(this,sk.call(this,0));break;case 5:b=E(this,K(this));break;case 6:b=E(this,this.K);break;case 7:b=E(this,this.J);break;case 64:b=E(this,this.D+this.S());break;case 65:b=E(this,this.I+this.S());break;case 66:b=E(this,this.L+this.S());break;case 67:b=E(this,this.H+this.S());break;case 68:b=E(this,sk.call(this,1)+this.S());
|
||||
break;case 69:b=Eg(this,this.N+this.S());break;case 70:b=E(this,this.K+this.S());break;case 71:b=E(this,this.J+this.S());break;case 128:b=E(this,this.D+K(this));break;case 129:b=E(this,this.I+K(this));break;case 130:b=E(this,this.L+K(this));break;case 131:b=E(this,this.H+K(this));break;case 132:b=E(this,sk.call(this,2)+K(this));break;case 133:b=Eg(this,this.N+K(this));break;case 134:b=E(this,this.K+K(this));break;case 135:b=E(this,this.J+K(this));break;case 192:b=this.D&65535;break;case 193:b=this.I&
|
||||
65535;break;case 194:b=this.L&65535;break;case 195:b=this.H&65535;break;case 196:b=y(this)&65535;break;case 197:b=this.N&65535;break;case 198:b=this.K&65535;break;case 199:b=this.J&65535;break;default:b=0}var c=this.fa>>3&7;switch(c){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.L&65535;break;case 3:d=this.H&65535;break;case 4:d=y(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.K&65535;break;case 7:d=this.J&65535;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=
|
||||
this.D&-65536|a;break;case 1:this.I=this.I&-65536|a;break;case 2:this.L=this.L&-65536|a;break;case 3:this.H=this.H&-65536|a;break;case 4:ne(this,y(this)&-65536|a);break;case 5:this.N=this.N&-65536|a;break;case 6:this.K=this.K&-65536|a;break;case 7:this.J=this.J&-65536|a}}
|
||||
function Pf(a){var b=(this.fa=this.sa())&199;switch(b){case 0:var c=E(this,this.D);this.F=this.C;break;case 1:c=E(this,this.I);this.F=this.C;break;case 2:c=E(this,this.L);this.F=this.C;break;case 3:c=E(this,this.H);this.F=this.C;break;case 4:c=E(this,sk.call(this,0));this.F=this.C;break;case 5:c=E(this,K(this));this.F=this.C;break;case 6:c=E(this,this.K);this.F=this.C;break;case 7:c=E(this,this.J);this.F=this.C;break;case 64:c=E(this,this.D+this.S());this.F=this.C;break;case 65:c=E(this,this.I+this.S());
|
||||
this.F=this.C;break;case 66:c=E(this,this.L+this.S());this.F=this.C;break;case 67:c=E(this,this.H+this.S());this.F=this.C;break;case 68:c=E(this,sk.call(this,1)+this.S());this.F=this.C;break;case 69:c=Eg(this,this.N+this.S());this.F=this.C;break;case 70:c=E(this,this.K+this.S());this.F=this.C;break;case 71:c=E(this,this.J+this.S());this.F=this.C;break;case 128:c=E(this,this.D+K(this));this.F=this.C;break;case 129:c=E(this,this.I+K(this));this.F=this.C;break;case 130:c=E(this,this.L+K(this));this.F=
|
||||
this.C;break;case 131:c=E(this,this.H+K(this));this.F=this.C;break;case 132:c=E(this,sk.call(this,2)+K(this));this.F=this.C;break;case 133:c=Eg(this,this.N+K(this));this.F=this.C;break;case 134:c=E(this,this.K+K(this));this.F=this.C;break;case 135:c=E(this,this.J+K(this));this.F=this.C;break;case 192:c=this.D&65535;break;case 193:c=this.I&65535;break;case 194:c=this.L&65535;break;case 195:c=this.H&65535;break;case 196:c=y(this)&65535;break;case 197:c=this.N&65535;break;case 198:c=this.K&65535;break;
|
||||
case 199:c=this.J&65535;break;default:c=0}switch(this.fa>>3&7){case 0:var d=this.D&65535;break;case 1:d=this.I&65535;break;case 2:d=this.L&65535;break;case 3:d=this.H&65535;break;case 4:d=y(this)&65535;break;case 5:d=this.N&65535;break;case 6:d=this.K&65535;break;case 7:d=this.J&65535;break;default:d=0}a=a.call(this,c,d);switch(b){case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:ne(this,
|
||||
y(this)&-65536|a);break;case 197:this.N=this.N&-65536|a;break;case 198:this.K=this.K&-65536|a;break;case 199:this.J=this.J&-65536|a;break;default:Jg(this,a)}}
|
||||
function Qf(a,b){var c=(this.fa=this.sa())&199;switch(c){case 0:var d=E(this,this.D);this.F=this.C;break;case 1:d=E(this,this.I);this.F=this.C;break;case 2:d=E(this,this.L);this.F=this.C;break;case 3:d=E(this,this.H);this.F=this.C;break;case 4:d=E(this,sk.call(this,0));this.F=this.C;break;case 5:d=E(this,K(this));this.F=this.C;break;case 6:d=E(this,this.K);this.F=this.C;break;case 7:d=E(this,this.J);this.F=this.C;break;case 64:d=E(this,this.D+this.S());this.F=this.C;break;case 65:d=E(this,this.I+
|
||||
this.S());this.F=this.C;break;case 66:d=E(this,this.L+this.S());this.F=this.C;break;case 67:d=E(this,this.H+this.S());this.F=this.C;break;case 68:d=E(this,sk.call(this,1)+this.S());this.F=this.C;break;case 69:d=Eg(this,this.N+this.S());this.F=this.C;break;case 70:d=E(this,this.K+this.S());this.F=this.C;break;case 71:d=E(this,this.J+this.S());this.F=this.C;break;case 128:d=E(this,this.D+K(this));this.F=this.C;break;case 129:d=E(this,this.I+K(this));this.F=this.C;break;case 130:d=E(this,this.L+K(this));
|
||||
this.F=this.C;break;case 131:d=E(this,this.H+K(this));this.F=this.C;break;case 132:d=E(this,sk.call(this,2)+K(this));this.F=this.C;break;case 133:d=Eg(this,this.N+K(this));this.F=this.C;break;case 134:d=E(this,this.K+K(this));this.F=this.C;break;case 135:d=E(this,this.J+K(this));this.F=this.C;break;case 192:d=this.D&65535;break;case 193:d=this.I&65535;break;case 194:d=this.L&65535;break;case 195:d=this.H&65535;break;case 196:d=y(this)&65535;break;case 197:d=this.N&65535;break;case 198:d=this.K&65535;
|
||||
break;case 199:d=this.J&65535;break;default:d=0}a=a[this.fa>>3&7].call(this,d,b.call(this));switch(c){case 192:this.D=this.D&-65536|a;break;case 193:this.I=this.I&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.H=this.H&-65536|a;break;case 196:ne(this,y(this)&-65536|a);break;case 197:this.N=this.N&-65536|a;break;case 198:this.K=this.K&-65536|a;break;case 199:this.J=this.J&-65536|a;break;default:Jg(this,a)}}
|
||||
function Rf(a){switch((this.fa=this.sa())&199){case 0:var b=F(this,this.D);break;case 1:b=F(this,this.I);break;case 2:b=F(this,this.L);break;case 3:b=F(this,this.H);break;case 4:b=F(this,sk.call(this,0));break;case 5:b=F(this,K(this));break;case 6:b=F(this,this.K);break;case 7:b=F(this,this.J);break;case 64:b=F(this,this.D+this.S());break;case 65:b=F(this,this.I+this.S());break;case 66:b=F(this,this.L+this.S());break;case 67:b=F(this,this.H+this.S());break;case 68:b=F(this,sk.call(this,1)+this.S());
|
||||
break;case 69:b=Hg(this,this.N+this.S());break;case 70:b=F(this,this.K+this.S());break;case 71:b=F(this,this.J+this.S());break;case 128:b=F(this,this.D+K(this));break;case 129:b=F(this,this.I+K(this));break;case 130:b=F(this,this.L+K(this));break;case 131:b=F(this,this.H+K(this));break;case 132:b=F(this,sk.call(this,2)+K(this));break;case 133:b=Hg(this,this.N+K(this));break;case 134:b=F(this,this.K+K(this));break;case 135:b=F(this,this.J+K(this));break;case 192:b=this.D;break;case 193:b=this.I;break;
|
||||
case 194:b=this.L;break;case 195:b=this.H;break;case 196:b=y(this);break;case 197:b=this.N;break;case 198:b=this.K;break;case 199:b=this.J;break;default:b=0}var c=this.fa>>3&7;switch(c){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.L;break;case 3:d=this.H;break;case 4:d=y(this);break;case 5:d=this.N;break;case 6:d=this.K;break;case 7:d=this.J;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.D=a;break;case 1:this.I=a;break;case 2:this.L=a;break;case 3:this.H=a;break;case 4:ne(this,
|
||||
a);break;case 5:this.N=a;break;case 6:this.K=a;break;case 7:this.J=a}}
|
||||
function Sf(a){var b=(this.fa=this.sa())&199;switch(b){case 0:var c=F(this,this.D);this.F=this.C;break;case 1:c=F(this,this.I);this.F=this.C;break;case 2:c=F(this,this.L);this.F=this.C;break;case 3:c=F(this,this.H);this.F=this.C;break;case 4:c=F(this,sk.call(this,0));this.F=this.C;break;case 5:c=F(this,K(this));this.F=this.C;break;case 6:c=F(this,this.K);this.F=this.C;break;case 7:c=F(this,this.J);this.F=this.C;break;case 64:c=F(this,this.D+this.S());this.F=this.C;break;case 65:c=F(this,this.I+this.S());
|
||||
this.F=this.C;break;case 66:c=F(this,this.L+this.S());this.F=this.C;break;case 67:c=F(this,this.H+this.S());this.F=this.C;break;case 68:c=F(this,sk.call(this,1)+this.S());this.F=this.C;break;case 69:c=Hg(this,this.N+this.S());this.F=this.C;break;case 70:c=F(this,this.K+this.S());this.F=this.C;break;case 71:c=F(this,this.J+this.S());this.F=this.C;break;case 128:c=F(this,this.D+K(this));this.F=this.C;break;case 129:c=F(this,this.I+K(this));this.F=this.C;break;case 130:c=F(this,this.L+K(this));this.F=
|
||||
this.C;break;case 131:c=F(this,this.H+K(this));this.F=this.C;break;case 132:c=F(this,sk.call(this,2)+K(this));this.F=this.C;break;case 133:c=Hg(this,this.N+K(this));this.F=this.C;break;case 134:c=F(this,this.K+K(this));this.F=this.C;break;case 135:c=F(this,this.J+K(this));this.F=this.C;break;case 192:c=this.D;break;case 193:c=this.I;break;case 194:c=this.L;break;case 195:c=this.H;break;case 196:c=y(this);break;case 197:c=this.N;break;case 198:c=this.K;break;case 199:c=this.J;break;default:c=0}switch(this.fa>>
|
||||
3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.L;break;case 3:d=this.H;break;case 4:d=y(this);break;case 5:d=this.N;break;case 6:d=this.K;break;case 7:d=this.J;break;default:d=0}a=a.call(this,c,d);switch(b){case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.L=a;break;case 195:this.H=a;break;case 196:ne(this,a);break;case 197:this.N=a;break;case 198:this.K=a;break;case 199:this.J=a;break;default:Kg(this,a)}}
|
||||
function Tf(a,b){var c=(this.fa=this.sa())&199;switch(c){case 0:var d=F(this,this.D);this.F=this.C;break;case 1:d=F(this,this.I);this.F=this.C;break;case 2:d=F(this,this.L);this.F=this.C;break;case 3:d=F(this,this.H);this.F=this.C;break;case 4:d=F(this,sk.call(this,0));this.F=this.C;break;case 5:d=F(this,K(this));this.F=this.C;break;case 6:d=F(this,this.K);this.F=this.C;break;case 7:d=F(this,this.J);this.F=this.C;break;case 64:d=F(this,this.D+this.S());this.F=this.C;break;case 65:d=F(this,this.I+
|
||||
this.S());this.F=this.C;break;case 66:d=F(this,this.L+this.S());this.F=this.C;break;case 67:d=F(this,this.H+this.S());this.F=this.C;break;case 68:d=F(this,sk.call(this,1)+this.S());this.F=this.C;break;case 69:d=Hg(this,this.N+this.S());this.F=this.C;break;case 70:d=F(this,this.K+this.S());this.F=this.C;break;case 71:d=F(this,this.J+this.S());this.F=this.C;break;case 128:d=F(this,this.D+K(this));this.F=this.C;break;case 129:d=F(this,this.I+K(this));this.F=this.C;break;case 130:d=F(this,this.L+K(this));
|
||||
this.F=this.C;break;case 131:d=F(this,this.H+K(this));this.F=this.C;break;case 132:d=F(this,sk.call(this,2)+K(this));this.F=this.C;break;case 133:d=Hg(this,this.N+K(this));this.F=this.C;break;case 134:d=F(this,this.K+K(this));this.F=this.C;break;case 135:d=F(this,this.J+K(this));this.F=this.C;break;case 192:d=this.D;break;case 193:d=this.I;break;case 194:d=this.L;break;case 195:d=this.H;break;case 196:d=y(this);break;case 197:d=this.N;break;case 198:d=this.K;break;case 199:d=this.J;break;default:d=
|
||||
0}a=a[this.fa>>3&7].call(this,d,b.call(this));switch(c){case 192:this.D=a;break;case 193:this.I=a;break;case 194:this.L=a;break;case 195:this.H=a;break;case 196:ne(this,a);break;case 197:this.N=a;break;case 198:this.K=a;break;case 199:this.J=a;break;default:Kg(this,a)}}
|
||||
function sk(a){var b=this.sa(),c=b>>6;switch(b>>3&7){case 0:var d=this.D;break;case 1:d=this.I;break;case 2:d=this.L;break;case 3:d=this.H;break;case 4:d=0;break;case 5:d=this.N;break;case 6:d=this.K;break;case 7:d=this.J}switch(b&7){case 0:var e=this.D;break;case 1:e=this.I;break;case 2:e=this.L;break;case 3:e=this.H;break;case 4:e=y(this);this.Ga=this.Sb;break;case 5:a?(e=this.N,this.Ga=this.Sb):e=K(this);break;case 6:e=this.K;break;case 7:e=this.J}return(d<<c)+e|0}
|
||||
function $e(){this.qd[this.sa()].call(this)}function cf(){ve(this,y(this)&this.R);this.A-=this.B.Ic}function Je(){this.ta=this.Ca;var a=y(this)&this.R;ve(this,this.D&this.R);ve(this,this.I&this.R);ve(this,this.L&this.R);ve(this,this.H&this.R);ve(this,a);ve(this,this.N&this.R);ve(this,this.K&this.R);ve(this,this.J&this.R);this.A-=this.B.wk;this.ta=-1}
|
||||
function Ke(){this.ta=this.Ca;this.J=this.J&~this.R|le(this);this.K=this.K&~this.R|le(this);this.N=this.N&~this.R|le(this);ne(this,y(this)+this.X);this.H=this.H&~this.R|le(this);this.L=this.L&~this.R|le(this);this.I=this.I&~this.R|le(this);this.D=this.D&~this.R|le(this);this.A-=this.B.uk;this.ta=-1}function Le(){this.la.call(this,vi)}function df(){!(this.ra&1)||this.P&131072?x.call(this,6):this.Ba.call(this,ui)}function ef(){this.M|=20;this.Ga=this.Sb=this.Ka;this.A-=this.B.Zc}
|
||||
function ff(){this.M|=20;this.Ga=this.Sb=this.La;this.A-=this.B.Zc}function gf(){this.M|=1024;this.ha&1024||(this.X^=6,this.R^=-65536,Uf(this));this.A-=this.B.Zc}function hf(){this.M|=2048;this.ha&2048||(this.Lc^=6,this.xa^=-65536,Bf(this));this.A-=this.B.Zc}function Me(){ve(this,this.Ha());this.A-=this.B.Ic}function Ne(){this.la.call(this,Ni)}function Oe(){ve(this,this.S());this.A-=this.B.Ic}function Pe(){this.la.call(this,Li)}
|
||||
function Qe(){var a=1,b=0,c=this.xa,d=5;this.ha&192&&(a=this.I&c,b=1,this.ha&256&&(d=4));if(a--){var e=this.L&65535;zg(this,e,1,!0)&&(e=Qc(this.oa,e,1,this.ea-b-1),this.ub(this.pa.Ub(this.J&c,1),e),this.J=this.J&~c|this.J+(this.P&1024?-1:1)&c,this.I=this.I&~c|this.I-b&c,this.A-=d,a&&(fg(this),this.M|=256))}}
|
||||
function Re(){var a=1,b=0,c=this.xa,d=5;this.ha&192&&(a=this.I&c,b=1,this.ha&256&&(d=4));if(a--){var e=this.L&65535;zg(this,e,this.X,!0)&&(e=Qc(this.oa,e,this.X,this.ea-b-1),Lg(this,this.pa,this.J&c,e),this.J=this.J&~c|this.J+(this.P&1024?-this.X:this.X)&c,this.I=this.I&~c|this.I-b&c,this.A-=d,a&&(fg(this),this.M|=256))}}
|
||||
function Se(){var a=1,b=0,c=this.xa,d=5;this.ha&192&&(a=this.I&c,b=1,this.ha&256&&(d=4));if(a--){var e=this.L&65535;if(zg(this,e,1,!1)){var f=this.ya(this.Fa.Bb(this.K&c,1));Vc(this.oa,e,1,f,this.ea-b-1);this.K=this.K&~c|this.K+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&(fg(this),this.M|=256)}}}
|
||||
function Te(){var a=1,b=0,c=this.xa,d=5;this.ha&192&&(a=this.I&c,b=1,this.ha&256&&(d=4));if(a--){var e=re(this,this.Fa,this.K&c),f=this.L&65535;zg(this,f,this.X,!1)&&(Vc(this.oa,f,this.X,e,this.ea-b-1),this.K=this.K&~c|this.K+(this.P&1024?-this.X:this.X)&c,this.I=this.I&~c|this.I-b&c,this.A-=d,a&&(fg(this),this.M|=256))}}function tk(){var a=this.S();mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}
|
||||
function uk(){var a=this.S();mg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}function vk(){var a=this.S();hg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}function wk(){var a=this.S();hg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}function xk(){var a=this.S();kg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}function yk(){var a=this.S();kg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}
|
||||
function zk(){var a=this.S();hg(this)||kg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}function Ak(){var a=this.S();hg(this)||kg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}function Bk(){var a=this.S();lg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}function Ck(){var a=this.S();lg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}function Dk(){var a=this.S();ig(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}
|
||||
function Ek(){var a=this.S();ig(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}function Fk(){var a=this.S();!lg(this)!=!mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}function Gk(){var a=this.S();!lg(this)==!mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}function Hk(){var a=this.S();kg(this)||!lg(this)!=!mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua}
|
||||
function Ik(){var a=this.S();kg(this)||!lg(this)!=!mg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)}function Jk(){this.kd.call(this,Kk,this.sa);this.A-=-1===this.F?1:this.B.vg}function Lk(){this.M|=1;this.uc.call(this,Zi)}function Mk(){this.M|=1;this.Ba.call(this,Zi)}function Nk(){this.kc.call(this,Zi)}function Ok(){this.la.call(this,Zi)}function Ue(){this.kd.call(this,Pk,jk)}function Ve(){this.mb.call(this,2==this.X?Qk:Rk,jk)}
|
||||
function Sk(){var a=Mg(this),b=le(this);C(this,b);a&&ne(this,y(this)+a);this.A-=this.B.Bk}function Tk(){var a=le(this);C(this,a);this.A-=this.B.yk}function We(){this.ta=this.Ca;var a=Mg(this),b=this.sa()&31;this.A-=11;ve(this,this.N);var c=y(this)&this.R;if(0<b){for(this.A-=(b<<2)+(1<b?1:0);--b;)this.N=this.N&~this.R|this.N-this.X&this.R,ve(this,re(this,this.U,this.N&this.R));ve(this,c)}this.N=this.N&~this.R|c;ne(this,y(this)&~this.U.xa|y(this)-a&this.U.xa);this.ta=-1}
|
||||
function Xe(){this.ta=this.Ca;ne(this,y(this)&~this.U.xa|this.N&this.U.xa);this.N=this.N&~this.R|le(this)&this.R;this.A-=5;this.ta=-1}function Uk(){ok.call(this,Mg(this));this.A-=this.B.Ak}function Vk(){ok.call(this,0);this.A-=this.B.zk}function Wk(a){this.pj=a;this.la.call(this,Ii)}function Xk(){this.M|=36;this.A-=this.B.Zc}function Ye(){bf.call(this)}function Ie(){x.call(this,6)}
|
||||
function bf(){C(this,this.od-this.ba.ua);Mb(this,"Undefined opcode "+va(this.ya(this.ea))+" at "+q(this.ea,8,!0));Gd(this)}
|
||||
var Be=[function(){this.uc.call(this,qi)},function(){this.Ba.call(this,ri)},function(){this.kc.call(this,qi)},function(){this.la.call(this,ri)},function(){this.D=this.D&-256|qi.call(this,this.D&255,this.sa());this.A--},function(){this.D=this.D&~this.R|ri.call(this,this.D&this.R,this.Ha());this.A--},function(){se(this,this.pa.T,this.X,2);this.A-=this.B.se},function(){this.ta=this.Ca;ue(this,le(this));this.A-=this.B.nc;this.ta=-1},function(){this.uc.call(this,dj)},function(){this.Ba.call(this,ej)},
|
||||
function(){this.kc.call(this,dj)},function(){this.la.call(this,ej)},function(){this.D=this.D&-256|dj.call(this,this.D&255,this.sa());this.A--},function(){this.D=this.D&~this.R|ej.call(this,this.D&this.R,this.Ha());this.A--},function(){se(this,this.ba.T,this.X,2);this.A-=this.B.se},function(){cg(this,le(this));this.A-=this.B.nc},function(){this.uc.call(this,oi)},function(){this.Ba.call(this,pi)},function(){this.kc.call(this,oi)},function(){this.la.call(this,pi)},function(){this.D=this.D&-256|oi.call(this,
|
||||
this.D&255,this.sa());this.A--},function(){this.D=this.D&~this.R|pi.call(this,this.D&this.R,this.Ha());this.A--},function(){se(this,this.U.T,this.X,2);this.A-=this.B.se},function(){this.ta=this.Ca;me(this,le(this));this.A-=this.B.nc;this.ta=-1},function(){this.uc.call(this,fj)},function(){this.Ba.call(this,gj)},function(){this.kc.call(this,fj)},function(){this.la.call(this,gj)},function(){this.D=this.D&-256|fj.call(this,this.D&255,this.sa());this.A--},function(){this.D=this.D&~this.R|gj.call(this,
|
||||
this.D&this.R,this.Ha());this.A--},function(){se(this,this.Fa.T,this.X,2);this.A-=this.B.se},function(){this.ta=this.Ca;te(this,le(this));this.A-=this.B.nc;this.ta=-1},function(){this.uc.call(this,si)},function(){this.Ba.call(this,ti)},function(){this.kc.call(this,si)},function(){this.la.call(this,ti)},function(){this.D=this.D&-256|si.call(this,this.D&255,this.sa());this.A--},function(){this.D=this.D&~this.R|ti.call(this,this.D&this.R,this.Ha());this.A--},function(){this.M|=20;this.Ga=this.Sb=this.pa;
|
||||
this.A-=this.B.Zc},function(){var a=this.D&255,b=jg(this),c=hg(this);9<(a&15)||b?(a+=6,b=16):b=0;159<a||c?(a+=96,c=1):c=0;a&=255;this.D=this.D&-256|a;ng(this,a,128);c?og(this):pg(this);b?wg(this):ug(this);this.A-=this.B.re},function(){this.uc.call(this,Rj)},function(){this.Ba.call(this,Sj)},function(){this.kc.call(this,Rj)},function(){this.la.call(this,Sj)},function(){this.D=this.D&-256|Rj.call(this,this.D&255,this.sa());this.A--},function(){this.D=this.D&~this.R|Sj.call(this,this.D&this.R,this.Ha());
|
||||
this.A--},function(){this.M|=20;this.Ga=this.Sb=this.ba;this.A-=this.B.Zc},function(){var a=this.D&255,b=jg(this),c=hg(this);9<(a&15)||b?(a-=6,b=16):b=0;159<a||c?(a-=96,c=1):c=0;a&=255;this.D=this.D&-256|a;ng(this,a,128);c?og(this):pg(this);b?wg(this):ug(this);this.A-=this.B.re},function(){this.uc.call(this,Zj)},function(){this.Ba.call(this,ak)},function(){this.kc.call(this,Zj)},function(){this.la.call(this,ak)},function(){this.D=this.D&-256|Zj.call(this,this.D&255,this.sa());this.A--},function(){this.D=
|
||||
this.D&~this.R|ak.call(this,this.D&this.R,this.Ha());this.A--},function(){this.M|=20;this.Ga=this.Sb=this.U;this.A-=this.B.Zc},function(){var a,b=this.D&255,c=this.D>>8&255;if(9<(b&15)||jg(this)){b+=6;80286<=this.da&&255<b&&c++;c++;var d=a=1}else d=a=0;this.D=this.D&-65536|(c<<8|b)&65295;d?og(this):pg(this);a?wg(this):ug(this);this.A-=this.B.re},function(){this.uc.call(this,Gi)},function(){this.Ba.call(this,Hi)},function(){this.kc.call(this,Gi)},function(){this.la.call(this,Hi)},function(){Gi.call(this,
|
||||
this.D&255,this.sa());this.A--},function(){Hi.call(this,this.D&this.R,this.Ha());this.A--},function(){this.M|=20;this.Ga=this.Sb=this.Fa;this.A-=this.B.Zc},function(){var a,b=this.D&255,c=this.D>>8&255;if(9<(b&15)||jg(this)){b=b-6&15;c=c-1&255;var d=a=1}else d=a=0;this.D=this.D&-65536|c<<8|b;d?og(this):pg(this);a?wg(this):ug(this);this.A-=this.B.re},function(){this.D=ek.call(this,this.D)},function(){this.I=ek.call(this,this.I)},function(){this.L=ek.call(this,this.L)},function(){this.H=ek.call(this,
|
||||
this.H)},function(){ne(this,ek.call(this,y(this)))},function(){this.N=ek.call(this,this.N)},function(){this.K=ek.call(this,this.K)},function(){this.J=ek.call(this,this.J)},function(){this.D=ck.call(this,this.D)},function(){this.I=ck.call(this,this.I)},function(){this.L=ck.call(this,this.L)},function(){this.H=ck.call(this,this.H)},function(){ne(this,ck.call(this,y(this)))},function(){this.N=ck.call(this,this.N)},function(){this.K=ck.call(this,this.K)},function(){this.J=ck.call(this,this.J)},function(){ve(this,
|
||||
this.D&this.R);this.A-=this.B.Ic},function(){ve(this,this.I&this.R);this.A-=this.B.Ic},function(){ve(this,this.L&this.R);this.A-=this.B.Ic},function(){ve(this,this.H&this.R);this.A-=this.B.Ic},function(){ve(this,y(this)-2&65535);this.A-=this.B.Ic},function(){ve(this,this.N&this.R);this.A-=this.B.Ic},function(){ve(this,this.K&this.R);this.A-=this.B.Ic},function(){ve(this,this.J&this.R);this.A-=this.B.Ic},function(){this.D=this.D&~this.R|le(this);this.A-=this.B.nc},function(){this.I=this.I&~this.R|
|
||||
le(this);this.A-=this.B.nc},function(){this.L=this.L&~this.R|le(this);this.A-=this.B.nc},function(){this.H=this.H&~this.R|le(this);this.A-=this.B.nc},function(){ne(this,y(this)&~this.R|le(this));this.A-=this.B.nc},function(){this.N=this.N&~this.R|le(this);this.A-=this.B.nc},function(){this.K=this.K&~this.R|le(this);this.A-=this.B.nc},function(){this.J=this.J&~this.R|le(this);this.A-=this.B.nc},tk,uk,vk,wk,xk,yk,zk,Ak,Bk,Ck,Dk,Ek,Fk,Gk,Hk,Ik,tk,uk,vk,wk,xk,yk,zk,Ak,Bk,Ck,Dk,Ek,Fk,Gk,Hk,Ik,Jk,function(){this.mb.call(this,
|
||||
Yk,this.Ha);this.A-=-1===this.F?1:this.B.vg},Jk,function(){this.mb.call(this,Yk,this.S);this.A-=-1===this.F?1:this.B.vg},function(){this.uc.call(this,Tj)},function(){this.Ba.call(this,Uj)},function(){this.kc.call(this,Xj)},function(){this.la.call(this,Yj)},Lk,Mk,Nk,Ok,function(){this.M|=1;this.Ba.call(this,cj)},function(){this.M|=1;this.Ga=this.Sb=this.Ig;this.la.call(this,Ti)},function(){this.la.call(this,bj);switch(this.fa>>3&7){case 0:var a=this.D;this.D=this.Aa;ue(this,a);break;case 1:a=this.I;
|
||||
this.I=this.Aa;cg(this,a);break;case 2:a=this.L;this.L=this.Aa;me(this,a);break;case 3:a=this.H;this.H=this.Aa;te(this,a);break;case 4:a=y(this);ne(this,this.Aa);80386<=this.da?this.Ka.load(a):ue(this,a);break;case 5:a=this.N;this.N=this.Aa;80386<=this.da?this.La.load(a):cg(this,a);break;case 6:a=this.K;this.K=this.Aa;me(this,a);break;case 7:a=this.J,this.J=this.Aa,te(this,a)}},function(){this.M|=1;this.ta=this.Ca;this.Aa=le(this);this.mb.call(this,Zk,lk);this.ta=-1},function(){this.A-=3},function(){var a=
|
||||
this.D;this.D=this.D&~this.R|this.I&this.R;this.I=this.I&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.L&this.R;this.L=this.L&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.H&this.R;this.H=this.H&~this.R|a&this.R;this.A-=3},function(){var a=this.D,b=y(this);this.D=this.D&~this.R|b&this.R;ne(this,b&~this.R|a&this.R);this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.N&this.R;this.N=this.N&~this.R|a&this.R;this.A-=3},function(){var a=
|
||||
this.D;this.D=this.D&~this.R|this.K&this.R;this.K=this.K&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.J&this.R;this.J=this.J&~this.R|a&this.R;this.A-=3},function(){this.D=2==this.X?this.D&-65536|this.D<<24>>24&65535:this.D<<16>>16;this.A-=2},function(){this.L=2==this.X?this.L&-65536|(this.D&32768?65535:0):this.D&-2147483648?-1:0;this.A-=this.B.Hj},function(){mk.call(this,this.Ha(),Mg(this));this.A-=this.B.Kj},function(){this.A-=3},function(){var a=xe(this);a&131072&&
|
||||
3>this.lc?x.call(this,13,0):(ve(this,a&-196609),this.A-=this.B.Ic)},function(){if(this.P&131072&&3>this.lc)x.call(this,13,0);else{var a=le(this);a=a&65535|this.P&-65536;ye(this,a);this.A-=this.B.nc}},function(){var a=this.D>>8&255;a&1?og(this):pg(this);a&4?(this.resultType&=-3,this.P|=4):(this.resultType&=-3,this.P&=-5);a&16?wg(this):ug(this);a&64?xg(this):vg(this);a&128?(this.resultType&=-17,this.P|=128):(this.resultType&=-17,this.P&=-129);this.A-=this.B.Yb},function(){this.D=this.D&-65281|(xe(this)&
|
||||
213)<<8;this.A-=this.B.Yb},function(){var a=this.D&-256;var b=K(this);b=this.ya(this.Ga.Bb(b,1));this.D=a|b;this.A-=this.B.Hh},function(){this.D=this.D&~this.R|re(this,this.Ga,K(this));this.A-=this.B.Hh},function(){var a=K(this),b=this.D;this.ub(this.Ga.Ub(a,1),b);this.A-=this.B.Ih},function(){Lg(this,this.Ga,K(this),this.D);this.A-=this.B.Ih},function(){var a=1,b=0,c=this.xa,d=this.B.Jh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Lh,this.ha&256||(this.A-=this.B.Kh));if(a--){var e=this.ya(this.Ga.Bb(this.K&
|
||||
c,1));this.ub(this.pa.Ub(this.J&c,1),e);e=this.P&1024?-1:1;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&(fg(this),this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.Jh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Lh,this.ha&256||(this.A-=this.B.Kh));if(a--){Lg(this,this.pa,this.J&c,re(this,this.Ga,this.K&c));var e=this.P&1024?-this.X:this.X;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&(fg(this),
|
||||
this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.uh;this.ha&192&&(a=this.I&c,b=1,d=this.B.wh,this.ha&256||(this.A-=this.B.vh));if(a--){var e=Bg(this,this.Ga,this.K),f=Bg(this,this.pa,this.J);this.F=this.C;Gi.call(this,e,f);e=this.P&1024?-1:1;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Mb;a&&kg(this)==(this.ha&64)&&(fg(this),this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.uh;this.ha&192&&(a=this.I&c,b=1,d=this.B.wh,this.ha&256||
|
||||
(this.A-=this.B.vh));if(a--){var e=Dg(this,this.Ga,this.K&c),f=Dg(this,this.pa,this.J&c);this.F=this.C;Hi.call(this,e,f);e=this.P&1024?-this.X:this.X;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Mb;a&&kg(this)==(this.ha&64)&&(fg(this),this.M|=256)}},function(){ng(this,this.D&this.sa(),128);this.A-=this.B.re},function(){ng(this,this.D&this.Ha(),this.Hb);this.A-=this.B.re},function(){var a=1,b=0,c=this.xa,d=this.B.Uh;this.ha&192&&(a=this.I&c,b=
|
||||
1,d=this.B.Wh,this.ha&256||(this.A-=this.B.Vh));if(a--){var e=this.D;this.ub(this.pa.Ub(this.J&c,1),e);this.I=this.I&~c|this.I-b&c;80546<=this.Qd&&80564>=this.Qd&&!(this.ha&2048)!=(103!=this.ya(this.ea))&&(c^=-65536);this.J=this.J&~c|this.J+(this.P&1024?-1:1)&c;this.A-=d;a&&(fg(this),this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.Uh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Wh,this.ha&256||(this.A-=this.B.Vh));a--&&(Lg(this,this.pa,this.J&c,this.D),this.J=this.J&~c|this.J+(this.P&1024?-this.X:
|
||||
this.X)&c,this.I=this.I&~c|this.I-b&c,this.A-=d,a&&(fg(this),this.M|=256))},function(){var a=1,b=0,c=this.xa,d=this.B.Bh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Dh,this.ha&256||(this.A-=this.B.Ch));if(a--){var e=this.ya(this.Ga.Bb(this.K&c,1));this.D=this.D&-256|e;this.K=this.K&~c|this.K+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&(fg(this),this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.Bh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Dh,this.ha&256||(this.A-=this.B.Ch));if(a--){var e=
|
||||
re(this,this.Ga,this.K&c);this.D=this.D&~this.R|e;this.K=this.K&~c|this.K+(this.P&1024?-this.X:this.X)&c;this.I=this.I&~c|this.I-b&c;this.A-=d;a&&(fg(this),this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.Oh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Qh,this.ha&256||(this.A-=this.B.Ph));if(a--){var e=this.D&255,f=Bg(this,this.pa,this.J);this.F=this.C;Gi.call(this,e,f);this.J=this.J&~c|this.J+(this.P&1024?-1:1)&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Mb;a&&kg(this)==(this.ha&64)&&(fg(this),
|
||||
this.M|=256)}},function(){var a=1,b=0,c=this.xa,d=this.B.Oh;this.ha&192&&(a=this.I&c,b=1,d=this.B.Qh,this.ha&256||(this.A-=this.B.Ph));if(a--){var e=this.D&this.R,f=Dg(this,this.pa,this.J&c);this.F=this.C;Hi.call(this,e,f);this.J=this.J&~c|this.J+(this.P&1024?-this.X:this.X)&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Mb;a&&kg(this)==(this.ha&64)&&(fg(this),this.M|=256)}},function(){this.D=this.D&-256|this.sa();this.A-=this.B.Yb},function(){this.I=this.I&-256|this.sa();this.A-=this.B.Yb},function(){this.L=
|
||||
this.L&-256|this.sa();this.A-=this.B.Yb},function(){this.H=this.H&-256|this.sa();this.A-=this.B.Yb},function(){this.D=this.D&-65281|this.sa()<<8;this.A-=this.B.Yb},function(){this.I=this.I&-65281|this.sa()<<8;this.A-=this.B.Yb},function(){this.L=this.L&-65281|this.sa()<<8;this.A-=this.B.Yb},function(){this.H=this.H&-65281|this.sa()<<8;this.A-=this.B.Yb},function(){this.D=this.D&~this.R|this.Ha();this.A-=this.B.Yb},function(){this.I=this.I&~this.R|this.Ha();this.A-=this.B.Yb},function(){this.L=this.L&
|
||||
~this.R|this.Ha();this.A-=this.B.Yb},function(){this.H=this.H&~this.R|this.Ha();this.A-=this.B.Yb},function(){ne(this,y(this)&~this.R|this.Ha());this.A-=this.B.Yb},function(){this.N=this.N&~this.R|this.Ha();this.A-=this.B.Yb},function(){this.K=this.K&~this.R|this.Ha();this.A-=this.B.Yb},function(){this.J=this.J&~this.R|this.Ha();this.A-=this.B.Yb},Sk,Tk,Sk,Tk,function(){this.la.call(this,Ui)},function(){this.la.call(this,Si)},function(){this.M|=1;this.kd.call(this,$k,this.sa)},function(){this.M|=
|
||||
1;this.mb.call(this,$k,this.Ha)},Uk,Vk,Uk,Vk,function(){if(this.P&131072&&3>this.lc)x.call(this,13,0);else{var a=this.B.ak;this.Sc=-1;nk.call(this,3,null,a)}},function(){var a=this.sa();if(this.P&131072&&3>this.lc)x.call(this,13,0);else{a:{var b=this.Tf[a];if(void 0!==b)for(var c=0;c<b.length;c++)if(!b[c](this.ea)){b=!1;break a}this.aa.gj&&r(this,16)&&al(this.ca,a,this.ea);b=!0}b?(this.Sc=-1,nk.call(this,a,null,0)):this.A--}},function(){if(mg(this))if(this.P&131072&&3>this.lc)x.call(this,13,0);else{var a=
|
||||
this.B.bk;this.Sc=-1;nk.call(this,4,null,a)}else this.A-=this.B.ck},function(){if(this.P&131072&&3>this.lc)x.call(this,13,0);else{this.Tc=this.U.T;this.ta=this.Ca;this.A-=this.B.Zj;if(this.ra&1&&this.P&16384){var a=this.ja(this.ka.ua+0);oe(this.ba,a,!1)}else{a=this.Pa;var b=le(this),c=le(this),d=le(this);if(this.P&131072)d=d&131071|this.P&-131072;else if(d&131072){var e=le(this),f=le(this),g=le(this),h=le(this),k=le(this),m=le(this);pe(this,!0,!0);me(this,f);ne(this,e);ue(this,g);te(this,h);this.Ka.load(k);
|
||||
this.La.load(m)}null!=ze(this,b,c,!1)&&(ye(this,d,a),this.Wf&&Yf(this,this.ea))}this.Tc=this.ta=-1}},function(){this.kd.call(this,Pk,hk)},function(){this.mb.call(this,2==this.X?Qk:Rk,hk)},function(){this.kd.call(this,Pk,ik)},function(){this.mb.call(this,2==this.X?Qk:Rk,ik)},function(){var a=this.sa();if(a){var b=this.D&255;this.D=this.D&-65536|b/a<<8|b%a;ng(this,this.D,128);this.A-=this.B.Ej}else qk.call(this)},function(){var a=this.D&255,b=(this.D>>8&255)*this.sa()|0,c=a+b|0;this.D=this.D&-65536|
|
||||
c&255;gg(this,a,b,c,191);this.A-=this.B.Dj},function(){this.D=this.D&-256|(hg(this)?255:0);this.A-=2},function(){this.D=this.D&-256|Bg(this,this.Ga,this.H+(this.D&255));this.A-=this.B.Dk},function(){Wk.call(this,216)},function(){Wk.call(this,217)},function(){Wk.call(this,218)},function(){Wk.call(this,219)},function(){Wk.call(this,220)},function(){Wk.call(this,221)},function(){Wk.call(this,222)},function(){Wk.call(this,223)},function(){var a=this.S(),b=this.I-1&this.xa;this.I=this.I&~this.xa|b;b&&
|
||||
!kg(this)?(C(this,z(this)+a),this.A-=this.B.jk):this.A-=this.B.Eh},function(){var a=this.S(),b=this.I-1&this.xa;this.I=this.I&~this.xa|b;b&&kg(this)?(C(this,z(this)+a),this.A-=this.B.Fh):this.A-=this.B.Gh},function(){var a=this.S(),b=this.I-1&this.xa;this.I=this.I&~this.xa|b;b?(C(this,z(this)+a),this.A-=this.B.ik):this.A-=this.B.Eh},function(){var a=this.S();this.I&this.xa?this.A-=this.B.Gh:(C(this,z(this)+a),this.A-=this.B.Fh)},function(){var a=this.sa();zg(this,a,1,!0)&&(this.D=this.D&-256|Qc(this.oa,
|
||||
a,1,this.ea-2)&255,this.A-=this.B.zh)},function(){var a=this.sa();zg(this,a,this.X,!0)&&(this.D=this.D&~this.R|Qc(this.oa,a,this.X,this.ea-2)&this.R,this.A-=this.B.zh)},function(){var a=this.sa();zg(this,a,1,!1)&&(Vc(this.oa,a,1,this.D&255,this.ea-2),this.A-=this.B.Nh)},function(){var a=this.sa();zg(this,a,this.X,!1)&&(Vc(this.oa,a,this.X,this.D&this.R,this.ea-2),this.A-=this.B.Nh)},function(){var a=this.Ha(),b=z(this);a=b+a;ve(this,b);C(this,a);this.A-=this.B.Ij},function(){var a=this.Ha();C(this,
|
||||
z(this)+a);this.A-=this.B.Ah},function(){ze(this,this.Ha(),Mg(this));this.A-=this.B.ek},function(){var a=this.S();C(this,z(this)+a);this.A-=this.B.Ah},function(){var a=this.L&65535;zg(this,a,1,!0)&&(this.D=this.D&-256|Qc(this.oa,a,1,this.ea-1)&255,this.A-=this.B.yh)},function(){var a=this.L&65535;zg(this,a,this.X,!0)&&(this.D=this.D&~this.R|Qc(this.oa,a,this.X,this.ea-1)&this.R,this.A-=this.B.yh)},function(){var a=this.L&65535;zg(this,a,1,!1)&&(Vc(this.oa,a,1,this.D&255,this.ea-1),this.A-=this.B.Mh)},
|
||||
function(){var a=this.L&65535;zg(this,a,2,!1)&&(Vc(this.oa,a,this.X,this.D&this.R,this.ea-1),this.A-=this.B.Mh)},Xk,Xk,function(){this.M|=132;this.A-=this.B.Zc},function(){this.M|=68;this.A-=this.B.Zc},function(){this.P&131072?x.call(this,13,0):(this.ab|=4,this.A-=2,this.ca&&r(this,-2147483648)?(fg(this),rk(this.ca)):this.P&512||(this.ca&&fg(this),Gd(this)))},function(){hg(this)?pg(this):og(this);this.A-=2},function(){this.vc=!1;this.kd.call(this,bl,kk);this.vc&&(this.D=this.D&~this.R|this.Ea&this.R)},
|
||||
function(){this.vc=!1;this.mb.call(this,cl,kk);this.vc&&(this.D=this.D&~this.R|this.Ea&this.R,this.L=this.L&~this.R|this.cb&this.R)},function(){pg(this);this.A-=2},function(){og(this);this.A-=2},function(){this.Pa>this.lc?x.call(this,13,0):(this.P&=-513,this.A-=this.B.Gj)},function(){this.Pa>this.lc?x.call(this,13,0):(this.P|=512,this.M|=4,this.A-=2)},function(){this.P&=-1025;this.A-=2},function(){this.P|=1024;this.A-=2},function(){this.kd.call(this,Ce,kk)},function(){this.mb.call(this,De,kk)}],Kk=
|
||||
[qi,dj,oi,fj,si,Rj,Zj,Gi],Yk=[ri,ej,pi,gj,ti,Sj,ak,Hi],Zk=[function(a,b){this.A-=-1===this.F?this.B.nc:this.B.vk;return b},Ji,Ji,Ji,Ji,Ji,Ji,Ji],$k=[function(a,b){this.A-=-1===this.F?this.B.mk:this.B.kk;return b},Ki,Ki,Ki,Ki,Ki,Ki,Ki],Pk=[function(a,b){var c=a;if(b&=this.Ra){if(b&=7){var d=a<<b-1;c=(a<<b|a>>8-b)&255}else d=a<<7;sg(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ra){if(b&=7){var d=a<<8-b;c=(a>>>b|d)&255}else d=a;sg(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ra){var d=
|
||||
tg(this);(b%=9)?(c=(a<<b|d<<b-1|a>>9-b)&255,d=a<<b-1):d<<=7;sg(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ra){var d=tg(this);(b%=9)?(c=(a>>b|d<<8-b|a<<9-b)&255,d=a<<8-b):d<<=7;sg(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ra){var d=0;8<b?c=0:(d=a<<b-1,c=d<<1&255);ng(this,c,128,d&128,(c^d)&128)}return c},function(a,b){if(b&=this.Ra)b=8<b?0:a>>>b-1,a=b>>>1&255,ng(this,a,128,b&1,a&128);return a},Ki,function(a,b){if(b&=this.Ra)9<b&&(b=9),b=a<<24>>24>>b-1,a=b>>1&255,ng(this,
|
||||
a,128,b&1);return a}],Qk=[function(a,b){var c=a;if(b&=this.Ra){if(b&=15){var d=a<<b-1;c=(a<<b|a>>16-b)&65535}else d=a<<15;sg(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ra){if(b&=15){var d=a<<16-b;c=(a>>>b|d)&65535}else d=a;sg(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ra){var d=tg(this);(b%=17)?(c=(a<<b|d<<b-1|a>>17-b)&65535,d=a<<b-1):d<<=15;sg(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ra){var d=tg(this);(b%=17)?(c=(a>>b|d<<16-b|a<<17-b)&65535,d=a<<
|
||||
16-b):d<<=15;sg(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ra){var d=0;16<b?c=0:(d=a<<b-1,c=d<<1&65535);ng(this,c,32768,d&32768,(c^d)&32768)}return c},function(a,b){if(b&=this.Ra)b=16<b?0:a>>>b-1,a=b>>>1&65535,ng(this,a,32768,b&1,a&32768);return a},Ki,function(a,b){if(b&=this.Ra)17<b&&(b=17),b=a<<16>>16>>b-1,a=b>>1&65535,ng(this,a,32768,b&1);return a}],Rk=[function(a,b){var c=a;if(b&=this.Ra)c=a<<b|a>>>32-b,sg(this,c,a<<b-1,-2147483648);return c},function(a,b){var c=a;if(b&=this.Ra){var d=
|
||||
a<<32-b;c=a>>>b|d;sg(this,c,d,-2147483648)}return c},function(a,b){var c=a;if(b&=this.Ra)c=tg(this),c=a<<b|c<<b-1|a>>>32-b>>>1,sg(this,c,a<<b-1,-2147483648);return c},function(a,b){var c=a;if(b&=this.Ra)c=tg(this),c=a>>>b|c<<32-b|a<<32-b<<1,sg(this,c,a<<32-b,-2147483648);return c},function(a,b){var c=a;if(b&=this.Ra)a<<=b-1,c=a<<1,ng(this,c,-2147483648,a&-2147483648,(c^a)&-2147483648);return c},function(a,b){if(b&=this.Ra)b=a>>>b-1,a=b>>>1,ng(this,a,-2147483648,b&1,a&-2147483648);return a},Ki,function(a,
|
||||
b){if(b&=this.Ra)b=a>>b-1,a=b>>1,ng(this,a,-2147483648,b&1);return a}],bl=[function(a,b){b=this.sa();ng(this,a&b,128);this.A-=-1===this.C?this.B.Yh:this.B.Xh;this.M|=2;return a},Ki,function(a){this.A-=-1===this.C?this.B.Cf:this.B.Bf;return a^255},function(a){var b=-a|0;gg(this,0,a,b,191,!0);this.A-=-1===this.C?this.B.Cf:this.B.Bf;return b&255},function(a){this.Ea=(this.D&255)*a&65535;this.Ea&65280?(og(this),qg(this)):(pg(this),rg(this));this.vc=!0;this.A-=-1===this.C?this.B.rk:this.B.qk;this.M|=2;
|
||||
return a},function(a){var b=(this.D<<24>>24)*(a<<24>>24)|0;this.Ea=b&65535;127<b||-128>b?(og(this),qg(this)):(pg(this),rg(this));this.vc=!0;this.A-=-1===this.C?this.B.Wj:this.B.Vj;this.M|=2;return a},function(a,b){if(!a)return qk.call(this),a;var c=(b=this.D&65535)/a;if(255<c)return qk.call(this),a;this.Ea=c&255|(b%a&255)<<8;this.vc=!0;this.A-=-1===this.C?this.B.Oj:this.B.Nj;this.M|=2;return a},function(a,b){if(!a)return qk.call(this),a;var c=a<<24>>24,d=(b=this.D<<16>>16)/c|0;if(d!=d<<24>>24||8086==
|
||||
this.da&&-128==d)return qk.call(this),a;this.Ea=d&255|(b%c&255)<<8;this.vc=!0;this.A-=-1===this.C?this.B.Sj:this.B.Rj;this.M|=2;return a}],cl=[function(a,b){b=this.Ha();ng(this,a&b,this.Hb);this.A-=-1===this.C?this.B.Yh:this.B.Xh;this.M|=2;return a},Ki,function(a){this.A-=-1===this.C?this.B.Cf:this.B.Bf;return a^this.R},function(a){var b=-a|0;gg(this,0,a,b,this.Hb|63,!0);this.A-=-1===this.C?this.B.Cf:this.B.Bf;return b&this.R},function(a,b){2==this.X?(b=this.D&65535,b=b*a|0,this.Ea=b&65535,this.cb=
|
||||
b>>16&65535):(Qi.call(this,a,this.D),80563==this.Qd&&68657152==this.D&&129==a&&(this.cb=0));this.cb?(og(this),qg(this)):(pg(this),rg(this));this.vc=!0;this.A-=-1===this.C?this.B.tk:this.B.sk;this.M|=2;return a},function(a,b){2==this.X?(b=this.D&65535,b=(b<<16>>16)*(a<<16>>16)|0,this.Ea=b&65535,this.cb=b>>16&65535,b=32767<b||-32768>b):(Pi.call(this,a,this.D),b=this.cb!=this.Ea>>31);b?(og(this),qg(this)):(pg(this),rg(this));this.vc=!0;this.A-=-1===this.C?this.B.Yj:this.B.Xj;this.M|=2;return a},function(a,
|
||||
b){if(2==this.X){if(!a)return qk.call(this),a;b=65536*(this.L&65535)+(this.D&65535);var c=b/a;if(65536<=c)return qk.call(this),a;this.Ea=c&65535;this.cb=b%a&65535}else{if(!dk.call(this,this.D,this.L,a))return qk.call(this),a;this.Ea|=0;this.cb|=0}this.vc=!0;this.A-=-1===this.C?this.B.Qj:this.B.Pj;this.M|=2;return a},function(a,b){if(2==this.X){if(!a)return qk.call(this),a;var c=a<<16>>16,d=(b=this.L<<16|this.D&65535)/c|0;if(d!=d<<16>>16||8086==this.da&&-32768==d)return qk.call(this),a;this.Ea=d&65535;
|
||||
this.cb=b%c&65535}else{b=this.D;c=this.L;d=a;var e=0,f=0;0>d&&(d=-d|0,e=1-e);0>c&&(b=-b|0,c=~c+(b?0:1)|0,f=1,e=1-e);!dk.call(this,b,c,d)||this.Ea>2147483647+e||this.cb>2147483647+f?b=!1:(e&&(this.Ea=-this.Ea),f&&(this.cb=-this.cb),b=!0);if(!b)return qk.call(this),a;this.Ea|=0;this.cb|=0}this.vc=!0;this.A-=-1===this.C?this.B.Uj:this.B.Tj;this.M|=2;return a}],Ce=[function(a){var b=a+1|0;gg(this,a,1,b,190);this.A-=-1===this.C?this.B.Af:this.B.zf;return b&255},function(a){var b=a-1|0;gg(this,a,1,b,190,
|
||||
!0);this.A-=-1===this.C?this.B.Af:this.B.zf;return b&255},Ki,Ki,Ki,Ki,Ki,Ki],De=[function(a){var b=a+1|0;gg(this,a,1,b,this.Hb|62);this.A-=-1===this.C?this.B.Af:this.B.zf;return b&this.R},function(a){var b=a-1|0;gg(this,a,1,b,this.Hb|62,!0);this.A-=-1===this.C?this.B.Af:this.B.zf;return b&this.R},function(a){ve(this,z(this));C(this,a);this.A-=-1===this.C?this.B.Mj:this.B.Lj;this.M|=2;return a},function(a){if(-1===this.C)return Ki.call(this,a);this.ta=this.Ca;mk.call(this,a,this.ja(this.C+this.X));
|
||||
this.A-=this.B.Jj;this.M|=2;this.ta=-1;return a},function(a){C(this,a);this.A-=-1===this.C?this.B.gk:this.B.fk;this.M|=2;return a},function(a){if(-1===this.C)return Ki.call(this,a);ze(this,a,this.ja(this.C+this.X));this.A-=this.B.dk;this.M|=2;return a},function(a){var b=a;this.M&512&&(a=a-2&65535,80286>this.da&&(b=a));ve(this,b);this.A-=-1===this.C?this.B.Ic:this.B.xk;this.M|=2;return a},Ki];function jf(){this.la.call(this,Wj);this.A-=-1===this.C?6:13}
|
||||
function nf(){this.Ba.call(this,Vj);this.A-=-1===this.C?12:19}var af=Array(256);af[0]=function(){16>(this.ya(this.ea)&56)&&(this.M|=1);this.mb.call(this,this.oj,kk)};af[1]=function(){this.ya(this.ea)&16||(this.M|=1);this.mb.call(this,dl,kk)};af[2]=function(){!(this.ra&1)||this.P&131072?x.call(this,6):this.la.call(this,Ri)};af[3]=function(){!(this.ra&1)||this.P&131072?x.call(this,6):this.la.call(this,Xi)};
|
||||
af[5]=function(){this.Pa?x.call(this,13,0,0,!0):(yg(this,this.ja(2054)),this.J=this.ja(2086),this.K=this.ja(2088),this.N=this.ja(2090),this.H=this.ja(2094),this.L=this.ja(2096),this.I=this.ja(2098),this.D=this.ja(2100),je(this.pa,2102,this.ja(2084)),je(this.ba,2108,this.ja(2082)),je(this.U,2114,this.ja(2080)),je(this.Fa,2120,this.ja(2078)),ye(this,this.ja(2072)),C(this,this.ja(2074)),ne(this,this.ja(2092)),this.Kb=this.ja(2126)|this.ya(2128)<<16,this.Jc=this.Kb+this.ja(2130),this.Qb=this.ja(2138)|
|
||||
this.ya(2140)<<16,this.$c=this.Qb+this.ja(2142),je(this.Gb,2132,this.ja(2076)),je(this.ka,2144,this.ja(2070)),this.A-=195)};af[6]=function(){this.Pa?x.call(this,13,0):(this.ra&=-9,this.A-=2)};af[11]=Ie;af[166]=Ie;af[255]=Ie;var B=[];B[5]=Ie;
|
||||
B[7]=function(){if(this.Pa)x.call(this,13,0,0,!0);else{var a=this.pa.Bb(this.J&this.xa,204);if(-1!==a){fk.call(this,this.ia(a));var b=this.ia(a+168),c=(b&24576)>>13;ye(this,this.ia(a+4),c);this.Kb=this.ia(a+112);this.Jc=this.Kb+this.ia(a+116);this.Qb=this.ia(a+100);this.$c=this.Qb+this.ia(a+104);he(this.Gb,this.ia(a+56),this.ia(a+120),this.ia(a+124),this.ia(a+128));he(this.ka,this.ia(a+52),this.ia(a+84),this.ia(a+88),this.ia(a+92));this.J=this.ia(a+12);this.K=this.ia(a+16);this.N=this.ia(a+20);this.H=
|
||||
this.ia(a+28);this.L=this.ia(a+32);this.I=this.ia(a+36);this.D=this.ia(a+40);he(this.La,this.ia(a+60),this.ia(a+132),this.ia(a+136),this.ia(a+140));he(this.Ka,this.ia(a+64),this.ia(a+144),this.ia(a+148),this.ia(a+152));he(this.Fa,this.ia(a+68),this.ia(a+156),this.ia(a+160),this.ia(a+164));he(this.U,this.ia(a+72),b,this.ia(a+172),this.ia(a+176));he(this.ba,this.ia(a+76),this.ia(a+180),this.ia(a+184),this.ia(a+188));he(this.pa,this.ia(a+80),this.ia(a+192),this.ia(a+196),this.ia(a+200));C(this,this.ia(a+
|
||||
8));ne(this,this.ia(a+24))}this.A-=122<<(a&3?1:0)}};B[16]=Lk;B[17]=Mk;B[18]=Nk;B[19]=Ok;B[32]=function(){if(this.Pa)x.call(this,13,0);else{var a=this.sa();switch((a&56)>>3){case 0:var b=this.ra;break;case 2:b=this.pd;break;case 3:b=this.wc;break;default:bf.call(this);return}vf(this,a&7,b);this.A-=6}};B[33]=function(){if(this.Pa)x.call(this,13,0);else{var a=this.sa(),b=(a&56)>>3;4==b||5==b?bf.call(this):(vf(this,a&7,this.Rb[b]),this.A-=22)}};
|
||||
B[34]=function(){if(this.Pa)x.call(this,13,0);else{var a=this.sa(),b=uf(this,a&7);switch((a&56)>>3){case 0:fk.call(this,b);this.A-=10;break;case 2:this.pd=b;this.A-=4;break;case 3:this.wc=b;uc(this);this.A-=5;break;default:bf.call(this)}}};B[35]=function(){if(this.Pa)x.call(this,13,0);else{var a=this.sa(),b=(a&56)>>3;4==b||5==b?bf.call(this):(a=uf(this,a&7),a!=this.Rb[b]&&(Zf(this,!1),this.Rb[b]=a,Zf(this,!0)),this.A-=4>b?22:14)}};
|
||||
B[36]=function(){if(this.Pa)x.call(this,13,0);else{var a=this.sa(),b=(a&56)>>3;6>b?bf.call(this):(vf(this,a&7,this.Yf[b]),this.A-=12)}};B[38]=function(){if(this.Pa)x.call(this,13,0);else{var a=this.sa(),b=(a&56)>>3;6>b?bf.call(this):(this.Yf[b]=uf(this,a&7),this.A-=12)}};B[128]=function(){var a=this.Ha();mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[129]=function(){var a=this.Ha();mg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};
|
||||
B[130]=function(){var a=this.Ha();hg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[131]=function(){var a=this.Ha();hg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};B[132]=function(){var a=this.Ha();kg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[133]=function(){var a=this.Ha();kg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};B[134]=function(){var a=this.Ha();hg(this)||kg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};
|
||||
B[135]=function(){var a=this.Ha();hg(this)||kg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};B[136]=function(){var a=this.Ha();lg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[137]=function(){var a=this.Ha();lg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};B[138]=function(){var a=this.Ha();ig(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[139]=function(){var a=this.Ha();ig(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};
|
||||
B[140]=function(){var a=this.Ha();!lg(this)!=!mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[141]=function(){var a=this.Ha();!lg(this)==!mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[142]=function(){var a=this.Ha();kg(this)||!lg(this)!=!mg(this)?(C(this,z(this)+a),this.A-=this.B.Ta):this.A-=this.B.Ua};B[143]=function(){var a=this.Ha();kg(this)||!lg(this)!=!mg(this)?this.A-=this.B.Ua:(C(this,z(this)+a),this.A-=this.B.Ta)};B[144]=function(){gk.call(this,hj)};
|
||||
B[145]=function(){gk.call(this,hj)};B[146]=function(){gk.call(this,rj)};B[147]=function(){gk.call(this,sj)};B[148]=function(){gk.call(this,tj)};B[149]=function(){gk.call(this,uj)};B[150]=function(){gk.call(this,vj)};B[151]=function(){gk.call(this,wj)};B[152]=function(){gk.call(this,xj)};B[153]=function(){gk.call(this,yj)};B[154]=function(){gk.call(this,zj)};B[155]=function(){gk.call(this,Aj)};B[156]=function(){gk.call(this,Bj)};B[157]=function(){gk.call(this,Cj)};B[158]=function(){gk.call(this,Dj)};
|
||||
B[159]=function(){gk.call(this,Ej)};B[160]=function(){se(this,this.Ka.T,this.X,2);this.A-=this.B.se};B[161]=function(){this.ta=this.Ca;var a=le(this);this.Ka.load(a);this.A-=this.B.nc;this.ta=-1};B[163]=function(){this.Ba.call(this,Ci);-1!==this.C&&(this.A-=6)};B[164]=function(){this.Ba.call(this,2==this.X?Fj:Hj);this.A-=-1===this.C?3:7};B[165]=function(){this.Ba.call(this,2==this.X?Jj:Kj);this.A-=-1===this.C?3:7};B[168]=function(){se(this,this.La.T,this.X,2);this.A-=this.B.se};
|
||||
B[169]=function(){this.ta=this.Ca;var a=le(this);this.La.load(a);this.A-=this.B.nc;this.ta=-1};B[171]=function(){this.Ba.call(this,Fi);-1!==this.C&&(this.A-=5)};B[172]=function(){this.Ba.call(this,2==this.X?Lj:Nj);this.A-=-1===this.C?3:7};B[173]=function(){this.Ba.call(this,2==this.X?Pj:Qj);this.A-=-1===this.C?3:7};B[175]=function(){this.la.call(this,2==this.X?Mi:Oi)};B[178]=function(){this.la.call(this,Yi)};B[179]=function(){this.Ba.call(this,Ei);-1!==this.C&&(this.A-=5)};
|
||||
B[180]=function(){this.la.call(this,Vi)};B[181]=function(){this.la.call(this,Wi)};
|
||||
B[182]=function(){this.kc.call(this,$i);switch(this.fa>>3&7){case 0:this.D=this.D&~this.R|this.D&255;break;case 1:this.I=this.I&~this.R|this.I&255;break;case 2:this.L=this.L&~this.R|this.L&255;break;case 3:this.H=this.H&~this.R|this.H&255;break;case 4:this.Ac=this.Ac&~this.R|this.D>>8&255;this.D=this.Aa;break;case 5:this.N=this.N&~this.R|this.I>>8&255;this.I=this.Aa;break;case 6:this.K=this.K&~this.R|this.L>>8&255;this.L=this.Aa;break;case 7:this.J=this.J&~this.R|this.H>>8&255,this.H=this.Aa}this.A-=
|
||||
-1===this.C?3:6};B[183]=function(){qe(this,2);this.la.call(this,aj);switch(this.fa>>3&7){case 0:this.D=this.D&65535;break;case 1:this.I=this.I&65535;break;case 2:this.L=this.L&65535;break;case 3:this.H=this.H&65535;break;case 4:this.Ac=this.Ac&65535;break;case 5:this.N=this.N&65535;break;case 6:this.K=this.K&65535;break;case 7:this.J=this.J&65535}this.A-=-1===this.C?3:6};B[186]=function(){this.mb.call(this,el,this.sa)};B[187]=function(){this.Ba.call(this,Di);-1!==this.C&&(this.A-=5)};
|
||||
B[188]=function(){this.la.call(this,wi)};B[189]=function(){this.la.call(this,xi)};
|
||||
B[190]=function(){this.kc.call(this,$i);switch(this.fa>>3&7){case 0:this.D=this.D&~this.R|(this.D&255)<<24>>24&this.R;break;case 1:this.I=this.I&~this.R|(this.I&255)<<24>>24&this.R;break;case 2:this.L=this.L&~this.R|(this.L&255)<<24>>24&this.R;break;case 3:this.H=this.H&~this.R|(this.H&255)<<24>>24&this.R;break;case 4:this.Ac=this.Ac&~this.R|this.D<<16>>24&this.R;this.D=this.Aa;break;case 5:this.N=this.N&~this.R|this.I<<16>>24&this.R;this.I=this.Aa;break;case 6:this.K=this.K&~this.R|this.L<<16>>24&
|
||||
this.R;this.L=this.Aa;break;case 7:this.J=this.J&~this.R|this.H<<16>>24&this.R,this.H=this.Aa}this.A-=-1===this.C?3:6};B[191]=function(){qe(this,2);this.la.call(this,aj);switch(this.fa>>3&7){case 0:this.D=this.D<<16>>16;break;case 1:this.I=this.I<<16>>16;break;case 2:this.L=this.L<<16>>16;break;case 3:this.H=this.H<<16>>16;break;case 4:this.Ac=this.Ac<<16>>16;break;case 5:this.N=this.N<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.J=this.J<<16>>16}this.A-=-1===this.C?3:6};
|
||||
var $f=[function(){this.A-=2+(-1===this.C?0:1);return this.Gb.T},function(){this.A-=2+(-1===this.C?0:1);return this.ka.T},function(a){this.M|=2;this.Gb.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.M|=2;-1!==this.ka.load(a)&&(this.ib(this.ka.Ob+4,this.ka.ob|=512),this.ka.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.M|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.zb.load(a)&&2048!=(this.zb.ob&2560)&&(this.zb.qc>=this.Pa&&this.zb.qc>=(a&3)||7168==(this.zb.ob&7168)))return xg(this),
|
||||
a;vg(this);return a},function(a){this.M|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.zb.load(a)&&512==(this.zb.ob&2560)&&this.zb.qc>=this.Pa&&this.zb.qc>=(a&3))return xg(this),a;vg(this);return a},Ki,Ki],Ee=[Ze,Ze,Ze,Ze,Ze,Ze,Ki,Ki],dl=[function(a){if(-1===this.C)x.call(this,6);else{a=this.Jc-this.Kb;var b=this.Kb;80286==this.da?b|=-16777216:80386<=this.da&&2!=this.X&&(a|=b<<16);this.eb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)x.call(this,6);else{a=this.$c-this.Qb;var b=this.Qb;
|
||||
80286==this.da?b|=-16777216:80386<=this.da&&2!=this.X&&(a|=b<<16);this.eb(this.C+2,b);this.A-=12}return a},function(a){-1===this.C||this.P&131072?x.call(this,6):(this.Kb=this.ia(this.C+2)&(this.R|this.R<<8),a&=65535,this.Jc=this.Kb+a,this.M|=2,this.A-=11);return a},function(a){-1===this.C||this.P&131072?x.call(this,6):(this.Qb=this.ia(this.C+2)&(this.R|this.R<<8),a&=65535,this.$c=this.Qb+a,this.M|=2,this.A-=12);return a},function(){this.A-=2+(-1===this.C?0:1);return this.ra},Ki,function(a){this.P&
|
||||
131072?x.call(this,6):(yg(this,a),this.A-=-1===this.C?3:6,this.M|=2);return a},Ki],el=[Ki,Ki,Ki,Ki,yi,Bi,Ai,zi];
|
||||
function fl(a){pb.call(this,"ChipSet",a,32768);var b=a.model;b&&!gl[b]&&kb("Unrecognized ChipSet model: "+b);this.da=gl[b]||hl;this.B=[];b=il(a[jl]);this.B[0]=[b,b];null==b&&(this.L=[360,360],(b=a.floppies)&&b.length&&(this.L=b),kl(this,ll,this.L.length),kl(this,ml,a.monitor||(this.da<Yg?"mono":"ega")));b=il(a[nl]);this.B[1]=[b,b];this.Ba=this.ka=1;this.da>=Yg&&(this.Ba=this.ka=2);this.M=a.scaleTimers||!1;this.Ra=a.dateRTC;this.Ka=this.La=!1;this.Ia=0;if(a=a.sound)this.Ia="number"!=typeof a||0>a||
|
||||
1<a?.5:a,this.Ga=this.P=null,window&&(this.Ga=window.AudioContext||window.webkitAudioContext),this.Ga&&(this.P=new this.Ga);this.reset(!0)}ia(fl,pb);l=fl.prototype;
|
||||
l.tc=function(a,b,c,d){this.oa=b;this.G=c;this.ca=d;this.na=a;this.Kc=ac(a,"FPU");kl(this,ol,this.Kc?1:0,!0);this.C=ac(a,"Keyboard");a=Bd(a,"sound");if(null!=a){var e=+a||0;this.Ia="true"==a||0>e||1<e?.5:e}this.Ea=c.Y.Yd/pl;Pc(b,this,ql);Uc(b,this,rl);this.da<Yg?this.da!=sl?(Pc(b,this,tl),Uc(b,this,ul)):(Pc(b,this,vl),Uc(b,this,wl)):(Pc(b,this,xl),Uc(b,this,yl),(this.da|0)==zl&&(Pc(b,this,Al),Uc(b,this,Bl)));if(d){var f=this;Cl(d,1024,function(){for(var a=0;a<f.ic.length;a++){for(var b=f.ic[a],c=
|
||||
"PIC"+a+":",d=0;d<b.Mc.length;d++)c+=" IC"+(d+1)+"="+va(b.Mc[d]);c+=" IMR="+va(b.sd)+" IRR="+va(b.cc)+" ISR="+va(b.Fc)+" DELAY="+b.Ue;f.ca.O(c)}});Cl(d,2048,function(a){a=(a=a[0])?+a:null;for(var b=0;b<f.qa.length;b++)if(null==a||b==a){Dl(f,b);var c=f.qa[b],d="TIMER"+b+":",e=0;if(null!=c.Yc)for(var g=0;g<=c.Yc;g++)e|=c.rb[g]<<8*g;d+=" mode="+(c.mode>>1)+" bytes="+c.Yc+" count="+wa(e);f.ca.O(d)}});this.da>=Yg&&Cl(d,4096,function(){for(var a="",b=0;b<El;b++){var c=b<=Fl?Gl(f,b):f.A[b];a&&(a+="\n");
|
||||
a+="CMOS["+va(b)+"]: "+va(c)}f.ca.O(a)})}Wf(c,26,this.Rm.bind(this));Pb(this)};l.Eb=function(a,b,c){switch(b){case jl:return this.ma[b]=c,Hl(this,0,b),!0;case nl:if((this.da|0)==Il||this.da==sl)return this.ma[b]=c,Hl(this,1,b),!0;break;case Jl:return this.ma[b]=c,!0}return!1};l.$b=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};l.Zb=function(a){return a?this.save():!0};
|
||||
l.reset=function(a){var b;Kl(this);this.F=Array(this.Ba);for(b=0;b<this.Ba;b++)Ll(this,b);this.ic=Array(this.ka);Ml(this,Nl,Ol);1<this.ka&&Ml(this,Pl,Ql);this.wa=this.ta=null;this.qa=Array((this.da|0)==zl?6:3);for(b=0;b<this.qa.length;b++)Rl(this,b);this.ha=this.Fa=this.H=this.Aa=null;this.fa=nh;this.da==sl&&(this.ea=0);if(this.da>=Yg){this.D=Sl;this.J=0;this.I=Tl;this.pa=0;this.K=Ul|Vl;512<=Wl(this)&&(this.K|=Xl);+Yl(this,ml,void 0)==Zl&&(this.K|=$l);(this.da|0)==zl&&(this.K=this.K|am|bm);this.ra=
|
||||
cm|dm;this.U=Array(8);this.N=0;a&&(this.A=Array(El));em(this,this.Ra);for(a=fm;a<=gm;a++)this.A[a]=0;for(a=hm;a<im;a++)void 0===this.A[a]&&(this.A[a]=0);a=0|+Yl(this,ml,void 0)<<jm.Kg&jm.zc;a|=+Yl(this,ol,void 0)?km:0;b=+Yl(this,ll,void 0);a|=b?b-1<<lm.Kg&lm.zc|lm.hl:0;this.A[mm]=a;this.A[nm]=om(this,0)<<4|om(this,1);pm(this)}};
|
||||
function em(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.O("CMOS date invalid ("+b+"), using "+c)):b&&a.O("CMOS date: "+c);a.A[qm]=c.getSeconds();a.A[rm]=0;a.A[sm]=c.getMinutes();a.A[tm]=0;a.A[um]=c.getHours();a.A[vm]=0;a.A[wm]=c.getDay()+1;a.A[xm]=c.getDate();a.A[ym]=c.getMonth()+1;b=c.getFullYear();a.A[zm]=b%100;b/=100;a.A[Am]=b%10|b/10<<4;a.A[Wm]=38;a.A[Wd]=Xm;a.A[Ym]=0;a.A[Fl]=Zm;a.la=a.Z=0;a.Pa=a.Ca=null}
|
||||
function Gl(a,b){var c=a.A[b];if(b<Wm){var d=!1;b!=um&&b!=vm||a.A[Wd]&Xm||(12>c?c=c?c:12:c=(c-=12)?c+128:140,d=!0);a.A[Wd]&$m||(d&&128<c&&(c-=48),c=c%10|c/10<<4)}else b==Wm&&(a.A[b]&=~an);return c}function bn(a){var b=a.Ca;a.Z=Jd(a.G,a.M)+b;a.A[Wd]&Xd&&Md(a.G,b)}function pm(a){for(var b=0,c=nm;c<im;c++)b+=a.A[c];a.A[cn]=b&255;a.A[im]=b>>8}
|
||||
l.save=function(){var a=new ag(this);a.set(0,[this.B]);for(var b=[],c=0;c<this.F;c++){for(var d=this.F[c],e=d,f=[],g=0;g<e.oc.length;g++){var h=e.oc[g];f[g]=[h.oe,h.$f,h.pc,h.wb,h.rb,h.mode,h.cg,h.To,h.Uo]}b[c]=[d.Pb,d.Ug,d.Vi,d.Ab,f,d.Wi]}a.set(1,[b]);b=[];for(c=0;c<this.ic.length;c++)d=this.ic[c],b[c]=[d.Ue,d.Mc,d.Ld,d.sd,d.cc,d.Fc,d.ie,d.lf];a.set(2,[b]);b=[];for(c=0;c<this.qa.length;c++)d=this.qa[c],b[c]=[d.pc,d.Oc,d.rb,d.je,d.Wg,d.mode,d.Mf,d.vd,d.Yc,d.fd,d.Ke,d.me,d.hd,d.Pb,d.Oe];a.set(3,[this.ta,
|
||||
b,this.wa]);a.set(4,[this.Aa,this.H,this.Fa,this.ha,this.fa]);this.da>=Yg&&(a.set(5,[this.D,this.J,this.I,this.pa,this.K,this.ra]),a.set(6,[this.U[7],this.U,this.N,this.A,this.la,this.Z]));return a.data()};
|
||||
l.restore=function(a){var b;var c=a[0];Array.isArray(c[0])?this.B=c[0]:(this.B[0][0]=c[0],this.B[1][0]=c[1]&15,this.B[0][1]=c[2],this.B[1][1]=c[3]&15);Kl(this);c=a[1];for(b=0;b<this.Ba;b++)Ll(this,b,1==c.length?c[0][b]:c);c=a[2];for(b=0;b<this.ka;b++)Ml(this,b,0===b?Ol:Ql,c[0][b]);c=a[3];this.ta=c[0];this.wa=c[2];for(b=0;b<this.qa.length;b++)Rl(this,b,c[1][b]);c=a[4];this.Aa=c[0];this.H=c[1];this.Fa=c[2];this.ha=c[3];this.fa=c[4];if(c=a[5])this.D=c[0],this.J=c[1],this.I=c[2],this.pa=c[3],this.K=c[4],
|
||||
this.ra=c[5];if(c=a[6])this.U=c[1],this.U[7]=c[0],this.N=c[2],this.A=c[3],this.la=c[4],this.Z=c[5],em(this);return!0};l.start=function(){dn(this)};l.stop=function(){dn(this)};function Ll(a,b,c){var d=a.F[b];d||(d={oc:Array(4)});c=c&&5<=c.length?c:en;d.Pb=c[0];d.Ug=c[1];d.Vi=c[2];d.Ab=c[3];d.fn=b<<2;for(var e=0;e<d.oc.length;e++)fn(d,e,c[4][e]);d.Wi=c[5]||0;a.F[b]=d}
|
||||
function fn(a,b,c){var d=a.oc[b];d||(d={$f:[0,0],pc:[0,0],wb:[0,0],rb:[0,0]});c=c&&8==c.length?c:gn;d.oe=c[0];d.$f[0]=c[1][0];d.$f[1]=c[1][1];d.pc[0]=c[2][0];d.pc[1]=c[2][1];d.wb[0]=c[3][0];d.wb[1]=c[3][1];d.rb[0]=c[4][0];d.rb[1]=c[4][1];d.mode=c[5];d.cg=c[6];d.controller=a;d.tj=b;hn(d,c[8],c[9]);a.oc[b]=d}function hn(a,b,c,d){"string"==typeof b&&(b=Cb(b));b&&(a.done=null,a.To=b.id,a.Uo=c,a.ig=b,a.ah=b[c],a.xg=d)}
|
||||
function Ml(a,b,c,d){var e=a.ic[b];e||(e={Mc:[null,null,null,null]});d=d&&8==d.length?d:jn;e.port=c;e.pq=b<<3;e.Ue=d[0];e.Mc[0]=d[1][0];e.Mc[1]=d[1][1];e.Mc[2]=d[1][2];e.Mc[3]=d[1][3];e.Ld=d[2];e.sd=d[3];e.cc=d[4];e.Fc=d[5];e.ie=d[6];e.lf=d[7];a.ic[b]=e}
|
||||
function Rl(a,b,c){var d=a.qa[b];d||(d={pc:[0,0],Oc:[0,0],rb:[0,0],je:[0,0]});c=c&&13<=c.length?c:kn;d.pc[0]=c[0][0];d.pc[1]=c[0][1];d.Oc[0]=c[1][0];d.Oc[1]=c[1][1];d.rb[0]=c[2][0];d.rb[1]=c[2][1];d.je[0]=c[3][0];d.je[1]=c[3][1];d.Wg=c[4];d.mode=c[5];d.Mf=c[6];d.vd=c[7];d.Yc=c[8];d.fd=c[9];d.Ke=c[10];d.me=c[11];d.hd=c[12];d.Pb=c[13]||0;d.Oe=c[14]||!1;a.qa[b]=d}
|
||||
function Hl(a,b,c){for(var d="",e=a.ma[c],f=1;8>=f;f++){var g="pcjs-bitCell";f||(g+=" pcjs-bitCellLeft");d+='<div id="'+(c+"-"+f)+'" class="'+g+'" data-value="0">'+f+"</div>\n"}e.innerHTML=d;ln(a,b,c,!0)}function mn(a,b,c){if(b=(a=nn[a.da|0])&&a[b])for(var d in b)if(a=b[d],a.zc&1<<c)return a;return null}
|
||||
function Yl(a,b,c){for(var d=null,e=nn[a.da]||nn[a.da|0]||nn[Il],f=0;f<e.length;f++){var g=e[f];if(g&&(g=g[b])){a=a.B[f][c?0:1]&g.zc;for(var h in g.Wc)if(g.Wc[h]==a&&(d=h,"number"==typeof+d))break;break}}return d}function om(a,b){if(b<+Yl(a,ll,void 0)){if(!a.L)return on;if(b<a.L.length)switch(a.L[b]){case 160:case 180:case 320:case 360:return on;case 720:return pn;case 1200:return qn;case 1440:return rn}}return sn}function Wl(a,b){return+Yl(a,tn,b)+ +Yl(a,un,b)}
|
||||
function il(a,b){if(a){b=0;for(var c=1,d=0;d<a.length;d++)"0"==a.charAt(d)&&(b|=c),c<<=1}return b}function kl(a,b,c,d){for(var e=nn[a.da]||nn[a.da|0]||nn[Il],f=0;f<e.length;f++){var g=e[f];if(g&&(g=g[b]))for(var h in g.Wc)if(h==c){a.B[f][d?0:1]&=~g.zc;a.B[f][d?0:1]|=g.Wc[h];return}}}function vn(a,b){a.setAttribute("data-value",b?"1":"0");a.style.color=b?"#ffffff":"#000000";a.style.backgroundColor=b?"#000000":"#ffffff"}function Kl(a){ln(a,0,jl);ln(a,1,nl);wn(a)}
|
||||
function ln(a,b,c,d){if(c=a.ma[c]){d=d?a.B[b][0]:a.B[b][1]=a.B[b][0];c=zb(c,"pcjs-bitCell");for(var e=0;e<c.length;e++){var f=mn(a,b,e);c[e].setAttribute("title",f&&f.Gd||"Reserved");vn(c[e],!(d&1<<e));c[e].onclick=function(a,b){return function(){var c="1"!=b.getAttribute("data-value");vn(b,c);var d=b.getAttribute("id").split("-"),e=1<<+d[1]-1;switch(d[0]){case jl:a.B[0][0]=a.B[0][0]&~e|(c?0:e);break;case nl:a.B[1][0]=a.B[1][0]&~e|(c?0:e)}wn(a)}}(a,c[e])}}}
|
||||
function wn(a){var b=a.ma[Jl];if(null!=b){var c=""+(Wl(a,!0)+"Kb");c+=", "+(+ +Yl(a,ol,!0)?"":"No ")+"FPU";c+=", "+{0:"Enhanced Color",1:"TV",2:"Color",3:"Monochrome"}[+Yl(a,ml,!0)]+" Monitor";c+=", "+ +Yl(a,ll,!0)+" Floppy Drives";if(null!=a.B[0][1]&&a.B[0][1]!=a.B[0][0]||null!=a.B[1][1]&&a.B[1][1]!=a.B[1][0])c+=" (Reset required)";b.textContent=c}}
|
||||
function xn(a,b,c,d,e){var f=a.F[b],g=f.oc[c],h=g.wb[f.Ab];r(a,768)&&t(a,d,null,e,"DMA"+b+".CHANNEL"+c+".ADDR["+f.Ab+"]",h,!0);f.Ab^=1;b||c!=yn||f.Ab||(g.wb[0]++,255<g.wb[0]&&(g.wb[0]=0,g.wb[1]++,255<g.wb[1]&&(g.wb[1]=0)));return h}function zn(a,b,c,d,e,f){var g=a.F[b];r(a,768)&&t(a,d,e,f,"DMA"+b+".CHANNEL"+c+".ADDR["+g.Ab+"]",null,!0);a=g.oc[c];a.wb[g.Ab]=a.$f[g.Ab]=e;g.Ab^=1}
|
||||
function An(a,b,c,d,e){var f=a.F[b],g=f.oc[c],h=g.rb[f.Ab];r(a,768)&&t(a,d,null,e,"DMA"+b+".CHANNEL"+c+".COUNT["+f.Ab+"]",h,!0);f.Ab^=1;b||c!=yn||f.Ab||(g.rb[0]--,0>g.rb[0]&&(g.rb[0]=255,g.rb[1]--,0>g.rb[1]&&(g.rb[1]=255)));return h}function Bn(a,b,c,d,e,f){var g=a.F[b];r(a,768)&&t(a,d,e,f,"DMA"+b+".CHANNEL"+c+".COUNT["+g.Ab+"]",null,!0);a=g.oc[c];a.rb[g.Ab]=a.pc[g.Ab]=e;g.Ab^=1}function Cn(a,b,c,d){var e=a.F[b],f=e.Pb|Dn;e.Pb&=~En;r(a,768)&&t(a,c,null,d,"DMA"+b+".STATUS",f,!0);return f}
|
||||
function Fn(a,b,c,d,e){var f=a.F[b];r(a,768)&&t(a,c,d,e,"DMA"+b+".REQ",null,!0);a=d&3;f.Pb=f.Pb&~(16<<a)|(d&4)<<a+2;f.Vi=d}function Gn(a,b,c,d,e){var f=a.F[b];r(a,768)&&t(a,c,d,e,"DMA"+b+".MASK",null,!0);b=d&Hn;c=f.oc[b];c.oe=!!(d&In);c.oe||Jn(a,f.fn+b)}function Kn(a,b,c,d,e){r(a,768)&&t(a,c,d,e,"DMA"+b+".MODE",null,!0);a.F[b].oc[d&Ln].mode=d}function Mn(a,b,c,d){var e=a.F[b].Wi;r(a,768)&&t(a,c,null,d,"DMA"+b+".TEMP",e,!0);return e}
|
||||
function Nn(a,b,c,d,e){r(a,768)&&t(a,c,d,e,"DMA"+b+".MASTER_CLEAR",null,!0);a=a.F[b];for(b=0;b<a.oc.length;b++)fn(a,b)}function On(a,b,c,d,e){var f=a.F[b].oc[c].cg;r(a,768)&&t(a,d,null,e,"DMA"+b+".CHANNEL"+c+".PAGE",f,!0);return f}function Pn(a,b,c,d,e,f){r(a,768)&&t(a,d,e,f,"DMA"+b+".CHANNEL"+c+".PAGE",null,!0);a.F[b].oc[c].cg=e}function Qn(a,b,c,d){var e=a.U[b];r(a,768)&&t(a,c,null,d,"DMA.SPARE"+b+".PAGE",e,!0);return e}
|
||||
function Rn(a,b,c,d,e){r(a,768)&&t(a,c,d,e,"DMA.SPARE"+b+".PAGE",null,!0);a.U[b]=d}function Sn(a,b,c,d,e){hn(a.F[b>>2].oc[b&3],c,d,e)}function Jn(a,b,c){b=a.F[b>>2].oc[b&3];b.ig&&b.ah&&b.xg?(c&&(b.done=c),b.oe||Tn(a,b,!0)):c&&c(!0)}
|
||||
function Tn(a,b,c){c&&(b.count=b.rb[1]<<8|b.rb[0],b.type=b.mode&Un,b.nj=b.jg=!1);for(var d=!1;0<=b.count&&(c=b.cg<<16|b.wb[1]<<8|b.wb[0],b.type==Vn?(d=!0,function(c){b.ah.call(b.ig,b.xg,-1,function(e,g){0>e&&(b.nj||(b.nj=!0),e=255);b.oe||a.oa.ub(c,e);(d=g)&&setTimeout(function(){Wn(b)||Tn(a,b)},0)})}(c)):b.type==Xn?(c=a.oa.ya(c),0>b.ah.call(b.ig,b.xg,c)&&(b.jg=!0)):b.type!=Yn&&(b.jg=!0)),!d&&!Wn(b););}
|
||||
function Wn(a){if(!a.jg&&0<=--a.count&&(a.mode&Zn?(a.wb[0]--,0>a.wb[0]&&(a.wb[0]=255,a.wb[1]--,0>a.wb[1]&&(a.wb[1]=255))):(a.wb[0]++,255<a.wb[0]&&(a.wb[0]=0,a.wb[1]++,255<a.wb[1]&&(a.wb[1]=0))),!a.oe))return!1;var b=a.controller;b.Pb=b.Pb&~(16<<a.tj)|1<<a.tj;a.mode&$n||(a.oe=!0,a.ig=a.xg=null);a.done&&(a.done(!a.jg),a.done=null);return!0}function ao(a,b,c){var d=0,e=a.ic[b];if(null!=e.lf)switch(e.lf&bo){case co:d=e.cc;break;case eo:d=e.Fc}r(a,34048)&&t(a,e.port,null,c,"PIC"+b,d,!0);return d}
|
||||
function fo(a,b,c,d){var e=a.ic[b];r(a,34048)&&t(a,e.port,c,d,"PIC"+b,null,!0);if(c&go)e.Ld=0,e.Mc[e.Ld++]=c,e.sd=0,e.ie=7,e.cc=e.Fc=0,e.lf=ho|co;else if(c&ho)c&(io|jo)&&r(a,1073741824)&&Tb(a,"PIC"+b+"("+va(e.port)+"): unsupported OCW3 "+va(c),!0,!0),e.lf=c;else if(d=c&ko,d&lo){var f=0;if((d&mo)==mo){var g=c&no;f=1<<g}else for(g=e.ie+1;;){g&=7;var h=1<<g;if(e.Fc&h){f=h;break}if(g++==e.ie)break}e.Fc&f&&(e.Fc&=~f,oo(a));d&po&&r(a,1073741824)&&Tb(a,"PIC"+b+"("+va(e.port)+"): unsupported OCW2 rotate "+
|
||||
va(c),!0,!0)}else d==qo?e.ie=c&no:r(a,1073741824)&&Tb(a,"PIC"+b+"("+va(e.port)+"): unsupported OCW2 automatic EOI "+va(c),!0,!0)}function ro(a,b,c){var d=a.ic[b],e=d.sd;r(a,34048)&&t(a,d.port+1,null,c,"PIC"+b,e,!0);return e}function so(a,b,c,d){var e=a.ic[b];r(a,34048)&&t(a,e.port+1,c,d,"PIC"+b,null,!0);e.Ld<e.Mc.length?(e.Mc[e.Ld++]=c,2==e.Ld&&e.Mc[0]&to&&e.Ld++,3!=e.Ld||e.Mc[0]&uo||e.Ld++):(e.sd=c,d=a.G,d.M|=4,oo(a,b||253!=c?0:6))}
|
||||
function mh(a,b,c){var d=a.ic[b>>3];b=1<<(b&7);d.cc&b||(d.cc|=b,d.Ue=c||0,oo(a))}function Zg(a,b){var c=a.ic[b>>3];b=1<<(b&7);c.cc&b&&(c.cc&=~b,oo(a))}function oo(a,b){var c=-1;if(1<a.ka){var d=a.ic[1];c=~(d.Fc|d.sd)&d.cc}d=a.ic[0];0<=c&&(d.cc=c?d.cc|1<<vo:d.cc&~(1<<vo));c=~(d.Fc|d.sd)&d.cc;a=a.G;a.V&&(a.ab=c?a.ab|1:a.ab&-2);c&&b&&(d.Ue=b)}
|
||||
function Pg(a,b){void 0===b&&(b=0);var c=-1,d=a.ic[b];if(d.Ue)c=-2,d.Ue--;else for(var e=d.cc&((d.Fc|d.sd)^255),f=d.ie+1;;){f&=7;var g=1<<f;if(d.Fc&g)break;if(e&g){b||f!=vo?c=d.Mc[1]+f:c=Pg(a,1);0<=c&&(d.Fc|=g,d.cc&=~g);break}if(f++==d.ie)break}return c}function wo(a,b,c,d,e){var f=b?3:0;var g=a.qa[f+c];g.Oe?(f=g.Pb,g.Oe=!1):(g.vd==g.Yc&&xo(a,f+c),g.Ke?(f=g.je[g.vd++],g.vd==g.Yc&&(g.Ke=!1)):(Dl(a,f+c),f=g.rb[g.vd++]));r(a,2304)&&t(a,d,null,e,"PIT"+b+".TIMER"+c,f,!0);return f}
|
||||
function yo(a,b,c,d,e,f){r(a,2304)&&t(a,d,e,f,"PIT"+b+".TIMER"+c,null,!0);f=b?3:0;d=a.qa[f+c];d.vd==d.Yc&&xo(a,f+c);d.pc[d.vd++]=e;d.vd==d.Yc&&(d.me&&d.mode!=zo&&d.mode!=Ao||(d.Ke=!1,d.rb[0]=d.Oc[0]=d.pc[0],d.rb[1]=d.Oc[1]=d.pc[1],d.hd=Jd(a.G,a.M),d.me=!0,d.fd=d.mode!=zo,b==Bo&&c==Co&&(Zg(a,Do),e=Eo(a,Co)*a.Ea|0,d.mode==Vd&&(e>>=1),Md(a.G,e))),b==Bo&&c==Fo&&dn(a))}function Go(a,b,c,d){t(a,c,null,d,"PIT"+b+".CTRL",null,2048);return b?a.wa:a.ta}
|
||||
function Ho(a,b,c,d,e){t(a,c,d,e,"PIT"+b+".CTRL",null,2048);e=0;c=d&Io;b?(e=3,a.wa=d):a.ta=d;if(c==Jo){if(!(d&Ko))for(c=0;2>=c;c++)if(d&Lo<<c){b=e+c;var f=a.qa[b];f.Oe||(Dl(a,b),f.Pb=f.Wg|f.mode|f.Mf|(f.vd<f.Yc?Mo:0)|(f.fd?No:0),f.Oe=!0)}if(!(d&Oo))for(c=0;2>=c;c++)d&Lo<<c&&Po(a,e+c)}else{c>>=Qo;f=d&Ro;var g=d&So;d&=To;if(d==Uo)Po(a,e+c);else{e+=c;var h=a.qa[e];h.Mf=d;h.mode=g;h.Wg=f;h.pc=[0,0];h.rb=[0,0];h.je=[0,0];h.fd=!1;h.Ke=!1;h.me=!1;h.Oe=!1;xo(a,e);b==Bo&&c==Co&&Zg(a,Do);b==Bo&&c==Fo&&255==
|
||||
a.ic[0].sd&&a.H==(Vo|Wo|Xo|Yo)&&(b=a.qa[0],b.Oc[0]=b.pc[0],b.Oc[1]=b.pc[1],b.hd=Jd(a.G,a.M))}}}function Eo(a,b){a=a.qa[b];(b=a.pc[1]<<8|a.pc[0])||(b=1==a.Yc?256:65536);return b}function Ud(a,b){a=a.qa[b];(b=a.Oc[1]<<8|a.Oc[0])||(b=1==a.Yc?256:65536);return b}function Po(a,b){Dl(a,b);var c=a.qa[b];c.je[0]=c.rb[0];c.je[1]=c.rb[1];c.Ke=!0;xo(a,b)}function xo(a,b){a=a.qa[b];a.vd=a.Mf==Zo?1:0;a.Yc=a.Mf==$o?2:1}
|
||||
function Dl(a,b,c){var d=a.qa[b];if(d.me&&(b!=Fo||a.H&Vo)){var e=Jd(a.G,a.M),f=(e-d.hd)/a.Ea|0;0>f&&(d.hd=e,f=0);var g=Eo(a,b),h=Ud(a,b)-f;d.mode==zo?(0>=h&&(h=0),h||(d.fd=!0,d.me=!1,b||mh(a,Do))):d.mode==ap?(d.fd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.Oc[0]=h&255,d.Oc[1]=h>>8&255,d.hd=e,!b&&d.fd&&mh(a,Do))):d.mode==Vd&&(h-=f,0>=h&&(d.fd=!d.fd,h=g+h,0>=h&&(h=g),d.Oc[0]=h&255,d.Oc[1]=h>>8&255,d.hd=e,!b&&d.fd&&mh(a,Do)));d.rb[0]=h&255;d.rb[1]=h>>8&255;c&&(a.hd=0)}return d}
|
||||
function Td(a,b){for(var c=0;c<a.qa.length;c++)Dl(a,c,b);if(a.da>=Yg){b=a.G.Y.Yd;c=Jd(a.G,a.M);null==a.Ca&&(a.la=Jd(a.G,a.M),a.Pa=1024,a.Ca=Math.floor(a.G.Y.Yd/a.Pa),bn(a));c>=a.Z&&(a.A[Ym]|=bp,a.A[Wd]&Xd&&(a.A[Ym]|=cp,mh(a,dp)),a.Z=c+a.Ca);a.A[qm]==a.A[rm]&&a.A[sm]==a.A[tm]&&a.A[um]==a.A[vm]&&(a.A[Ym]|=ep,a.A[Wd]&fp&&(a.A[Ym]|=cp,mh(a,dp)));var d=c-a.la,e=Math.floor(d/b);if(e&&!(a.A[Wd]&gp)){for(;e--;)if(60<=++a.A[qm]&&(a.A[qm]=0,60<=++a.A[sm]&&(a.A[sm]=0,24<=++a.A[um]))){a.A[um]=0;a.A[wm]=a.A[wm]%
|
||||
7+1;var f=a.A[zm];var g=Ka[a.A[ym]-1];28==g&&0===f%4&&(f%100||0===f%400)&&g++;f=g;++a.A[xm]>f&&(a.A[xm]=1,12<++a.A[ym]&&(a.A[ym]=1,a.A[zm]=(a.A[zm]+1)%100))}a.A[Wm]|=an;a.A[Ym]|=hp;a.A[Wd]&ip&&(a.A[Ym]|=cp,mh(a,dp))}a.la=c-d%b}}l.Am=function(a,b){var c=this.Aa;this.ha&jp&&(this.H&kp?c=this.B[0][1]:this.C&&(c=lp(this.C)));t(this,a,null,b,"PPI_A",c);return c};l.no=function(a,b,c){t(this,a,b,c,"PPI_A");this.Aa=b};l.Bm=function(a,b){var c=this.H;t(this,a,null,b,"PPI_B",c);return c};
|
||||
l.oo=function(a,b,c){t(this,a,b,c,"PPI_B");mp(this,b)};function mp(a,b){var c=!!(b&np),d=!!(a.H&np);a.H=b;a.C&&op(a.C,!(b&kp),!!(b&Yo));c!=d&&dn(a,c)}l.Cm=function(a,b){var c=0;c=(this.da|0)==Il?this.H&Wo?c|this.B[1][1]&pp:c|this.B[1][1]>>4&1:this.H&qp?c|this.B[0][1]>>4:c|this.B[0][1]&15;this.H&Vo&&Dl(this,Fo).fd&&(c=this.H&np?c|rp:c|sp);t(this,a,null,b,"PPI_C",c,32896);return c};l.po=function(a,b,c){t(this,a,b,c,"PPI_C");this.Fa=b};l.Dm=function(a,b){var c=this.ha;t(this,a,null,b,"PPI_CTRL",c);return c};
|
||||
l.qo=function(a,b,c){t(this,a,b,c,"PPI_CTRL");this.ha=b};l.Il=function(a,b){var c=this.C?lp(this.C):0;t(this,a,null,b,"8041_KBD",c);this.ea&=~tp;return c};l.tn=function(a,b,c){t(this,a,b,c,"8041_KBD")};l.Hl=function(a,b){var c=this.H;t(this,a,null,b,"8041_CTRL",c);return c};l.sn=function(a,b,c){t(this,a,b,c,"8041_CTRL");mp(this,b)};l.Jl=function(a,b){var c=this.ea;t(this,a,null,b,"8041_STATUS",c);return c};
|
||||
l.Kl=function(a,b){var c=this.pa;t(this,a,null,b,"8042_OUTBUFF",c,16384);this.D&=~(tp|up);this.C&&vp(this.C);return c};
|
||||
l.vn=function(a,b,c){t(this,a,b,c,"8042_INBUF.DATA",null,16384);if(this.D&wp)switch(this.J){case xp:yp(this,b);break;case zp:Ap(this,b);break;default:if(yp(this,this.I&~Tl),this.C){a=this.C;c=b;var d=-1;r(a)&&Tb(a,"sendCmd("+va(c)+")");switch(a.H||c){case Bp:d=Cp;Dp(a);break;case Ep:a.H&&(c=0);Fp(a,Cp);a.H=c;break;case Gp:a.H&&(c=0);Fp(a,Cp);a.H=c;break;default:Tb(a,"sendCmd(): unrecognized command")}Hp(this,d)}}this.J=b;this.D&=~wp};
|
||||
l.Ll=function(a,b){var c=this.H&~(Ip|Jp)|(Jd(this.G)&64?Jp:0);t(this,a,null,b,"8042_RWREG",c,16384);return c};l.wn=function(a,b,c){t(this,a,b,c,"8042_RWREG",null,16384);mp(this,b)};l.Ml=function(a,b){t(this,a,null,b,"8042_STATUS",this.D,16384);a=this.D&255;this.D&up&&(this.D|=tp,this.D&=~up);return a};
|
||||
l.un=function(a,b,c){t(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.J=b;this.D|=wp;a=0;this.J>=Kp&&(a=this.J^15,this.J=Kp);switch(this.J){case Lp:Hp(this,this.I);break;case Mp:yp(this,this.I|Tl);break;case Np:yp(this,this.I&~Tl);this.C&&vp(this.C);break;case Op:this.C&&(a=this.C,a.A=[],r(a)&&Tb(a,"scan codes flushed"));yp(this,this.I|Tl);Hp(this,Pp);Ap(this,cm|dm);break;case Qp:Hp(this,Rp);break;case Sp:Hp(this,this.K);break;case Tp:Hp(this,this.ra);break;case Up:Hp(this,this.I&Tl?0:Vp);break;case Kp:a&
|
||||
1&&of(this.G)}};function yp(a,b){a.I=b;a.D=a.D&~Wp|b&Xp;a.C&&op(a.C,!!(b&Yp),!(b&Tl))}function Hp(a,b,c){0<=b&&(a.pa=b,c?a.D|=tp:(a.D&=~tp,a.D|=up))}function Ap(a,b){a.ra=b;qc(a.oa,!!(b&dm));b&cm||of(a.G)}function Zp(a,b){a.da<Yg?(mh(a,$p,4),a.ea|=tp):a.I&Tl||a.D&(tp|up)||(Hp(a,b,!0),aq(a.C),mh(a,$p,120))}function bq(a,b,c,d){var e=a.B[b][1];t(a,c,null,d,"DIPSW-"+b,e,32768);return e}l.dm=function(a,b){t(this,a,null,b,"CMOS.ADDR",this.N,4096);return this.N};
|
||||
l.On=function(a,b,c){t(this,a,b,c,"CMOS.ADDR",null,4096);this.N=b;this.fa=b&cq?nh:dq};l.em=function(a,b){var c=this.N&eq,d=c<=Fl?Gl(this,c):this.A[c];r(this,4352)&&t(this,a,null,b,"CMOS.DATA["+va(c)+"]",d,!0);null!=b&&c==Ym&&(this.A[c]&=fq,d&cp&&Zg(this,dp),d&bp&&this.A[Wd]&Xd&&bn(this));return d};
|
||||
l.Pn=function(a,b,c){var d=this.N&eq;r(this,4352)&&t(this,a,b,c,"CMOS.DATA["+va(d)+"]",null,!0);a=b^this.A[d];if(d<=Fl){if(c=b,d<Wm){var e=!1;this.A[Wd]&$m||(c=10*(c>>4)+(c&15),e=!0);if(d==um||d==vm)e&&23<c&&(c+=48),this.A[Wd]&Xm||(12>=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==Wd&&a&Xd&&b&Xd&&bn(this)};l.Ik=function(a,b,c){t(this,a,b,c,"NMI");this.fa=b};l.Zn=function(a,b,c){t(this,a,b,c,"FPU.CLEAR")};l.$n=function(a,b,c){t(this,a,b,c,"FPU.RESET");this.Kc&&Tg(this.Kc)};
|
||||
l.Rm=function(a){if(r(this,16)&&al(this.ca,26,a)){var b=this.G.D>>8;Xf(this.G,a,function(a,d){return function(c){d=Jd(a.G)-d;var e=a.G.L&255,g=a.G.L>>8,h=a.G.L&255,k=a.G.L>>8;if(2==b||3==b)var m=" CH(hour)="+wa(g)+" CL(min)="+va(e)+" DH(sec)="+va(k);else if(4==b||5==b)m=" CX(year)="+wa(a.G.I)+" DH(month)="+va(k)+" DL(day)="+va(h);e=a.ca;g=d;e.message("INT "+va(26)+": C="+(hg(e.G)?1:0)+(m||"")+" (cycles="+g+(c?",level="+(c+1):"")+")")}}(this,Jd(this.G)))}return!0};
|
||||
function dn(a,b){if(a.P){void 0!==b?a.Ka=b:b=!!(a.Ka&&a.G&&a.G.aa.Xa);var c=Math.round(pl/Eo(a,Fo));if(20>c||2E4<c)b=!1;b&&gq(a)?(a.V.frequency.setValueAtTime(c,0),a.ba.gain.value=a.Ia,r(a,33554432)&&Tb(a,"speaker on at "+c+"hz",!0)):a.ba&&(a.ba.gain.value=0,r(a,33554432)&&Tb(a,"speaker off at "+c+"hz",!0))}else b&&Tb(a,"BEEP",33554432)}
|
||||
function gq(a,b){if(a.P){if(b){if(a.La)return!0;a.V=null;a.La=!0}if(a.V)return!0;try{if(a.V=a.P.createOscillator(),"start"in a.V)return a.ba=a.P.createGain(),a.V.connect(a.ba),a.ba.connect(a.P.destination),a.ba.gain.value=0,a.V.type="square",a.V.start(0),!0}catch(c){a.Da("AudioContext exception: "+c.message),a.P=null}}return!1}var Il=5150,hl=5150.9,Yg=5170,sl=5160.101,zl=5180,gl={5150:Il,5160:5160,5170:Yg,att6300:sl,mpc1600:5150.101,z150:5160.15,compaq:5150.102,other:hl};gl.deskpro386=zl;
|
||||
var jl="sw1",nl="sw2",Jl="swdesc",Zl=3,Dn=1,En=15,Hn=3,In=4,Ln=3,Un=12,Yn=0,Vn=4,Xn=8,$n=16,Zn=32,yn=0,Nl=0,Ol=32,Pl=1,Ql=160,go=16,uo=1,to=2,no=7,ko=224,lo=32,mo=96,po=128,qo=192,ho=8,co=2,eo=3,bo=3,io=4,jo=96,Do=0,$p=1,vo=2,dp=8,lh=13,Bo=0,Co=0,Fo=2,Ro=1,So=14,zo=0,ap=4,Vd=6,Ao=8,To=48,Uo=0,Zo=32,$o=48,Io=192,Jo=192,Qo=6,Lo=2,Ko=16,Oo=32,Mo=64,No=128,pl=1193181,Vo=1,np=2,Wo=4,Xo=8,qp=8,Yo=64,kp=128,pp=15,sp=16,rp=32,jp=16,lm={hl:1,ONE:0,hq:64,fq:128,Wp:192,zc:192,Kg:6},km=2,jm={gq:16,up:32,Xp:48,
|
||||
zc:48,Kg:4},ll=1,ol=3,ml=4,tn=5,un=6,nn={};nn[Il]=[{},{}];nn[Il][0][ll]={zc:192,Wc:{1:0,2:64,3:128,4:192},Gd:"Number of Floppy Drives"};nn[Il][0][ol]={zc:2,Wc:{0:0,1:2},Gd:"FPU"};nn[Il][0][ml]={zc:48,Wc:{0:0,1:16,2:32,3:48,none:0,tv:16,color:32,cga:32,mda:48,mono:48,ega:0,vga:0},Gd:"Monitor Type"};nn[Il][0][tn]={zc:12,Wc:{16:0,32:4,48:8,64:12},Gd:"Base Memory (16Kb Increments)"};
|
||||
nn[Il][1][un]={zc:31,Wc:{0:0,32:1,64:2,96:3,128:4,160:5,192:6,224:7,256:8,288:9,320:10,352:11,384:12,416:13,448:14,480:15,512:16,544:17,576:18},Gd:"Expansion Memory (32Kb Increments)"};nn[5160]=[{},{}];nn[5160][0][ll]=nn[Il][0][ll];nn[5160][0][ol]=nn[Il][0][ol];nn[5160][0][ml]=nn[Il][0][ml];nn[5160][0][tn]={zc:12,Wc:{64:0,128:4,192:8,256:12},Gd:"Base Memory (64Kb Increments)"};nn[5160][1][un]=nn[Il][1][un];nn[sl]=[{},{}];nn[sl][0][tn]={zc:143,Wc:{128:1,256:130,512:8,640:141},Gd:"Base Memory (128Kb Increments)"};
|
||||
nn[sl][0][ol]={zc:16,Wc:{0:0,1:16},Gd:"FPU"};nn[sl][1][2]={zc:1,Wc:{0:0,1:1},Gd:"Floppy Type"};nn[sl][1][ll]=nn[Il][0][ll];nn[sl][1][ml]=nn[Il][0][ml];
|
||||
var Xp=4,Yp=8,Tl=16,Pp=85,Rp=0,am=4,bm=8,Xl=16,Ul=32,$l=64,Vl=128,cm=1,dm=2,Vp=1,Jp=16,Ip=192,Lp=32,xp=96,Op=170,Qp=171,Mp=173,Np=174,Sp=192,Tp=208,zp=209,Up=224,Kp=240,tp=1,Wp=4,wp=8,Sl=16,up=256,qm=0,rm=1,sm=2,tm=3,um=4,vm=5,wm=6,xm=7,ym=8,zm=9,Wm=10,Wd=11,Ym=12,Fl=13,hm=14,nm=16,mm=20,fm=21,gm=24,im=46,cn=47,Am=50,eq=63,El=64,cq=128,an=128,gp=128,Xd=64,fp=32,ip=16,$m=4,Xm=2,cp=128,bp=64,ep=32,hp=16,fq=15,Zm=128,sn=0,on=1,qn=2,pn=3,rn=4,dq=128,nh=0,en=[0,null,null,0,Array(4),0],gn=[!0,[0,0],[0,
|
||||
0],[0,0],[0,0]],jn=[0,Array(4)],kn=[[0,0],[0,0],[0,0],[0,0]],ql={0:function(a,b){return xn(this,0,0,a,b)},1:function(a,b){return An(this,0,0,a,b)},2:function(a,b){return xn(this,0,1,a,b)},3:function(a,b){return An(this,0,1,a,b)},4:function(a,b){return xn(this,0,2,a,b)},5:function(a,b){return An(this,0,2,a,b)},6:function(a,b){return xn(this,0,3,a,b)},7:function(a,b){return An(this,0,3,a,b)},8:function(a,b){return Cn(this,0,a,b)},13:function(a,b){return Mn(this,0,a,b)},32:function(a,b){return ao(this,
|
||||
Nl,b)},33:function(a,b){return ro(this,Nl,b)},64:function(a,b){return wo(this,Bo,Co,a,b)},65:function(a,b){return wo(this,Bo,1,a,b)},66:function(a,b){return wo(this,Bo,Fo,a,b)},67:function(a,b){return Go(this,Bo,a,b)},129:function(a,b){return On(this,0,2,a,b)},130:function(a,b){return On(this,0,3,a,b)},131:function(a,b){return On(this,0,1,a,b)},135:function(a,b){return On(this,0,0,a,b)}},tl={96:fl.prototype.Am,97:fl.prototype.Bm,98:fl.prototype.Cm,99:fl.prototype.Dm},xl={96:fl.prototype.Kl,97:fl.prototype.Ll,
|
||||
100:fl.prototype.Ml,112:fl.prototype.dm,113:fl.prototype.em,128:function(a,b){return Qn(this,7,a,b)},132:function(a,b){return Qn(this,0,a,b)},133:function(a,b){return Qn(this,1,a,b)},134:function(a,b){return Qn(this,2,a,b)},136:function(a,b){return Qn(this,3,a,b)},137:function(a,b){return On(this,1,2,a,b)},138:function(a,b){return On(this,1,3,a,b)},139:function(a,b){return On(this,1,1,a,b)},140:function(a,b){return Qn(this,4,a,b)},141:function(a,b){return Qn(this,5,a,b)},142:function(a,b){return Qn(this,
|
||||
6,a,b)},143:function(a,b){return On(this,1,0,a,b)},160:function(a,b){return ao(this,Pl,b)},161:function(a,b){return ro(this,Pl,b)},192:function(a,b){return xn(this,1,0,a,b)},194:function(a,b){return An(this,1,0,a,b)},196:function(a,b){return xn(this,1,1,a,b)},198:function(a,b){return An(this,1,1,a,b)},200:function(a,b){return xn(this,1,2,a,b)},202:function(a,b){return An(this,1,2,a,b)},204:function(a,b){return xn(this,1,3,a,b)},206:function(a,b){return An(this,1,3,a,b)},208:function(a,b){return Cn(this,
|
||||
1,a,b)},218:function(a,b){return Mn(this,1,a,b)}},vl={96:fl.prototype.Il,97:fl.prototype.Hl,100:fl.prototype.Jl,102:function(a,b){return bq(this,0,a,b)},103:function(a,b){return bq(this,1,a,b)}},Al={72:function(a,b){return wo(this,1,0,a,b)},73:function(a,b){return wo(this,1,1,a,b)},74:function(a,b){return wo(this,1,2,a,b)},75:function(a,b){return Go(this,1,a,b)}},rl={0:function(a,b,c){zn(this,0,0,a,b,c)},1:function(a,b,c){Bn(this,0,0,a,b,c)},2:function(a,b,c){zn(this,0,1,a,b,c)},3:function(a,b,c){Bn(this,
|
||||
0,1,a,b,c)},4:function(a,b,c){zn(this,0,2,a,b,c)},5:function(a,b,c){Bn(this,0,2,a,b,c)},6:function(a,b,c){zn(this,0,3,a,b,c)},7:function(a,b,c){Bn(this,0,3,a,b,c)},8:function(a,b,c){r(this,768)&&t(this,a,b,c,"DMA0.CMD",null,!0);this.F[0].Ug=b},9:function(a,b,c){Fn(this,0,a,b,c)},10:function(a,b,c){Gn(this,0,a,b,c)},11:function(a,b,c){Kn(this,0,a,b,c)},12:function(a,b,c){r(this,768)&&t(this,a,b,c,"DMA0.RESET_FF",null,!0);this.F[0].Ab=0},13:function(a,b,c){Nn(this,0,a,b,c)},32:function(a,b,c){fo(this,
|
||||
Nl,b,c)},33:function(a,b,c){so(this,Nl,b,c)},64:function(a,b,c){yo(this,Bo,Co,a,b,c)},65:function(a,b,c){yo(this,Bo,1,a,b,c)},66:function(a,b,c){yo(this,Bo,Fo,a,b,c)},67:function(a,b,c){Ho(this,Bo,a,b,c)},129:function(a,b,c){Pn(this,0,2,a,b,c)},130:function(a,b,c){Pn(this,0,3,a,b,c)},131:function(a,b,c){Pn(this,0,1,a,b,c)},135:function(a,b,c){Pn(this,0,0,a,b,c)}},ul={96:fl.prototype.no,97:fl.prototype.oo,98:fl.prototype.po,99:fl.prototype.qo,160:fl.prototype.Ik},yl={96:fl.prototype.vn,97:fl.prototype.wn,
|
||||
100:fl.prototype.un,112:fl.prototype.On,113:fl.prototype.Pn,128:function(a,b,c){Rn(this,7,a,b,c)},132:function(a,b,c){Rn(this,0,a,b,c)},133:function(a,b,c){Rn(this,1,a,b,c)},134:function(a,b,c){Rn(this,2,a,b,c)},136:function(a,b,c){Rn(this,3,a,b,c)},137:function(a,b,c){Pn(this,1,2,a,b,c)},138:function(a,b,c){Pn(this,1,3,a,b,c)},139:function(a,b,c){Pn(this,1,1,a,b,c)},140:function(a,b,c){Rn(this,4,a,b,c)},141:function(a,b,c){Rn(this,5,a,b,c)},142:function(a,b,c){Rn(this,6,a,b,c)},143:function(a,b,
|
||||
c){Pn(this,1,0,a,b,c)},160:function(a,b,c){fo(this,Pl,b,c)},161:function(a,b,c){so(this,Pl,b,c)},192:function(a,b,c){zn(this,1,0,a,b,c)},194:function(a,b,c){Bn(this,1,0,a,b,c)},196:function(a,b,c){zn(this,1,1,a,b,c)},198:function(a,b,c){Bn(this,1,1,a,b,c)},200:function(a,b,c){zn(this,1,2,a,b,c)},202:function(a,b,c){Bn(this,1,2,a,b,c)},204:function(a,b,c){zn(this,1,3,a,b,c)},206:function(a,b,c){Bn(this,1,3,a,b,c)},208:function(a,b,c){r(this,768)&&t(this,a,b,c,"DMA1.CMD",null,!0);this.F[1].Ug=b},210:function(a,
|
||||
b,c){Fn(this,1,a,b,c)},212:function(a,b,c){Gn(this,1,a,b,c)},214:function(a,b,c){Kn(this,1,a,b,c)},216:function(a,b,c){r(this,768)&&t(this,a,b,c,"DMA1.RESET_FF",null,!0);this.F[1].Ab=0},218:function(a,b,c){Nn(this,1,a,b,c)},240:fl.prototype.Zn,241:fl.prototype.$n},wl={96:fl.prototype.tn,97:fl.prototype.sn,160:fl.prototype.Ik},Bl={72:function(a,b,c){yo(this,1,0,a,b,c)},73:function(a,b,c){yo(this,1,1,a,b,c)},74:function(a,b,c){yo(this,1,2,a,b,c)},75:function(a,b,c){Ho(this,1,a,b,c)}};
|
||||
cb(function(){for(var a=zb(document,"pcx86","chipset"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new fl(d);yb(d,c);wn(d)}});function hq(a){pb.call(this,"ROM",a);this.A=null;this.H=a.addr;this.C=a.size;this.F=a.alias;this.B=a.notify;this.I=null;if(this.B){var b=this.B.indexOf("[");if(0<b){try{this.I=eval(this.B.substr(b))}catch(c){}this.B=this.B.substr(0,b)}}if(this.D=this.J=a.file)a=ya(xa(this.D)),"json"!=a&&"hex"!=a&&(this.D=Na()+"/api/v1/dump?file="+this.J+"&format=bytes&decimal=true")}ia(hq,pb);
|
||||
hq.prototype.tc=function(a,b,c,d){this.na=a;this.oa=b;this.G=c;this.ca=d;if(this.D){var e=this,f="Loading "+this.D+"...";Ma(this.D,null,!0,function(a,b,c){iq(e,a,b,c)},function(){e.O(f,Kb)})}};hq.prototype.$b=function(){this.Id&&(this.ca&&jq(this.ca,this.id,0,this.H>>>4,0,this.H,this.C,this.Id),delete this.Id);return!0};hq.prototype.Zb=function(){return!0};
|
||||
function iq(a,b,c,d){if(d)a.Da("Unable to load system ROM (error "+d+": "+b+")",0>d);else{rb(a.de,b,c);if("["==c.charAt(0)||"{"==c.charAt(0))try{var e=eval("("+c+")"),f=e.bytes,g=e.longs||e.data;if(f)a.A=f;else if(g)for(a.A=Array(4*g.length),d=c=0;c<g.length;c++)a.A[d++]=g[c]&255,a.A[d++]=g[c]>>8&255,a.A[d++]=g[c]>>16&255,a.A[d++]=g[c]>>24&255;else a.A=e;a.Id=e.symbols;if(!a.A.length){kb("Empty ROM: "+b);return}if(1==a.A.length){kb(a.A[0]);return}}catch(h){a.Da("ROM data error: "+h.message);return}else for(b=
|
||||
c.replace(/\n/gm," ").replace(/ +$/,"").split(" "),a.A=Array(b.length),e=0;e<b.length;e++)a.A[e]=qa(b[e],16);kq(a)}}
|
||||
function kq(a){if(!Ob(a))if(!a.J)Pb(a);else if(a.A&&a.oa){a.C||(a.C=a.A.length);if(a.A.length!=a.C)Mb(a,"ROM size ("+q(a.A.length,8,!0)+") does not match specified size ("+q(a.C,8,!0)+")");else{var b=a.H;if(rc(a.oa,b,a.C,Gc)){for(var c=0;c<a.A.length;c++){var d=a.oa,e=b+c;d.Z[(e&d.C)>>>d.A].bf(e&d.D,a.A[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.F?b.push(a.F):null!=a.F&&a.F.length&&(b=a.F);for(c=0;c<b.length;c++){d=a;e=b[c];var f=zc(d.oa,d.H,d.C);yc(d.oa,e,d.C,f)}a.B&&((b=Cb(a.B,a.id))?
|
||||
(c=a.A,d=a.I,b.Ma==lq?mq(b,c,d||[12640,8752],8):b.Ma==nq&&mq(b,c,d||[14221,16269],8),Pb(b)):a.Da("Unable to find component: "+a.B));delete a.A}}Pb(a)}}cb(function(){for(var a=zb(document,"pcx86","rom"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new hq(d);yb(d,c)}});function oq(a){pb.call(this,"RAM",a);this.B=a.addr;this.A=a.size;this.F=a.test;this.D=!!this.A;this.C=!1}ia(oq,pb);l=oq.prototype;l.tc=function(a,b,c,d){this.oa=b;this.G=c;this.ca=d;this.V=ac(a,"ChipSet");Pb(this)};
|
||||
l.$b=function(a,b){return!b&&(this.reset(),a&&this.controller&&!this.restore(a))?!1:!0};l.Zb=function(a){return a&&this.controller?this.save():!0};
|
||||
l.reset=function(){if(!this.B&&!this.D&&this.V){var a=1024*Wl(this.V);this.A&&a!=this.A&&(Ec(this.oa,this.B,this.A),this.C=!1);this.A=a}!this.C&&this.A&&rc(this.oa,this.B,this.A,1)&&(this.C=!0,"ramCPQ"==this.ye&&(this.controller=new pq(this),rc(this.oa,qq,4,4,this.controller)));if(this.C){if(this.F||Mc(this.oa,1138,4660),"ramCPQ"!=this.ye&&this.V&&(a=this.V,a.A)){var b=1048576>this.B?fm:23,c=a.A[b]|a.A[b+1]<<8;c+=this.A>>10;a.A[b]=c&255;a.A[b+1]=c>>8;pm(a)}}else kb("No RAM allocated")};
|
||||
l.save=function(){var a=new ag(this);this.controller&&a.set(0,this.controller.save());return a.data()};l.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function pq(a){this.D=a;this.C=rq;this.G=sq;this.B=tq;this.A=null}l=pq.prototype;l.save=function(){return[this.C,this.B]};l.restore=function(a){this.ub(0,a[0]&255);this.ub(2,a[1]&255);return!0};l.ya=function(a){var b=255;2>a?b=a&1?this.G>>8:this.G&255:4>a&&(b=a&1?this.B>>8:this.B&255);return b};
|
||||
l.ub=function(a,b){if(a)2==a&&(this.B=this.B&-256|b);else if(b!=(this.C&255)){a=this.D.oa;if(b&uq)this.A&&(yc(a,vq,wq,this.A),this.A=null);else{this.A||(this.A=zc(a,vq,wq));var c=zc(a,xq,wq);yc(a,vq,wq,c,b&yq?1:Gc)}this.C=this.C&-256|b}};l.rj=function(){return zq};l.bh=function(){return Aq};var qq=-2134900736,xq=16646144,vq=917504,wq=131072,uq=1,yq=2,rq=65535,sq=2575,tq=2,zq=[null,0],Aq=[function(a){return this.controller.ya(a)},null,null,function(a,b){this.controller.ub(a,b)},null,null];
|
||||
cb(function(){for(var a=zb(document,"pcx86","ram"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new oq(d);yb(d,c)}});function Bq(a){pb.call(this,"Keyboard",a,65536);Cq(this,a.model);this.ea=Ua("Mobi");this.ha=Ua("MSIE");Tb(this,"mobile keyboard support: "+(this.ea?"true":"false"));this.ba=0;this.fa=this.$g=!1;this.B=[];this.la=50;this.Z=0;this.F=null;this.I=a.autoType;this.P=!1;this.L=this.M=null;this.exports={type:this.gh,wait:this.$o};Pb(this)}ia(Bq,pb);l=Bq.prototype;
|
||||
l.Eb=function(a,b,c,d){var e=this,f=a+"-"+b;if(void 0===this.ma[f])switch(b){case "kbd":case "screen":return c.onkeydown=function(a){return Dq(e,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(Eq(e.na)){e.C="";var b=!N[a]||!!(e.jc&Fq);b||Gq(e,a,!0);a=b}else a=!1;return a},c.onkeyup=function(a){return Dq(e,a,!1)},!0;case "caps-lock":return this.ma[f]=c,c.onclick=function(a){a.preventDefault();e.na&&e.na.cd();Gq(e,Hq,!0)},!0;case "num-lock":return this.ma[f]=c,c.onclick=function(a){a.preventDefault();
|
||||
e.na&&e.na.cd();Gq(e,Iq,!0)},!0;case "scroll-lock":return this.ma[f]=c,c.onclick=function(a){a.preventDefault();e.na&&e.na.cd();Gq(e,Jq,!0)},!0;default:var g=b.toUpperCase().replace(/-/g,"_");if(void 0!==Kq[g]&&"button"==a)return this.ma[f]=c,c.onclick=function(a,b,c){return function(b){b.preventDefault();a.na&&a.na.cd();a.C="";Lq(a,c,!0);Gq(a,c,!0)}}(this,g,Kq[g]),!0;if(void 0!==Mq[b])return this.ba++,this.ma[f]=c,a=function(a,b,c){return function(b){b.preventDefault();a.na&&a.na.cd();a.C="";Gq(a,
|
||||
c)}}(this,b,Mq[b]),b=function(a,b,c){return function(){Nq(a,c)}}(this,b,Mq[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0;if(d)return this.ma[f]=c,c.onclick=function(a){a.preventDefault();e.na&&e.na.cd();return e.gh(d)},!0}return!1};
|
||||
function Oq(a,b,c){if(a.ba){for(var d in pa)if(b==pa[d]){b=+d;(d=na[d])&&(b=d);break}for(var e in Mq)if((d=Mq[e]==b)||(d=b,d>=n.Hd&&d<=n.z&&(d-=n.Hd-n.ee),d=Mq[e]==d),d){(a=a.ma["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}}l.tc=function(a,b,c,d){this.na=a;this.oa=b;this.G=c;this.ca=d;var e=this;this.qa=Cd(this.G,this.id+".inject",function(){Pq(e)});this.V=ac(a,"ChipSet");this.I=Bd(a,"autoType")||this.I;Wf(c,33,this.Sm.bind(this))};
|
||||
l.Sm=function(){if(10==(this.G.D>>8&255))if(this.P=!0,this.L)this.L(),this.L=null,this.P=!1;else{var a=this.I;!this.F&&a&&(this.F=a,this.gh(this.F))}return!0};function Cq(a,b){var c=0;a.da=null;"string"==typeof b&&(a.da=b.toUpperCase(),c=Qq.indexOf(a.da),0>c&&(c=0));if(b=Qq[c])a.ka=parseInt(b.substr(2),10)}function Dp(a){Tb(a,"keyboard reset",65792);a.A=[];Fp(a,Rq)}function op(a,b,c){a.N!==c&&(a.N=a.U=c)&&(a.J=!0);a.K!==b&&(a.K=b)&&!a.U&&aq(a,!0);a.K&&a.U&&(Dp(a),a.U=!1)}
|
||||
function Fp(a,b){a.V&&(a.A.unshift(b),a.J=!0,Zp(a.V,b))}function vp(a){var b=0;a.A.length&&a.J&&(b=a.A[0],a.V&&Zp(a.V,b));r(a)&&Tb(a,b?"scan code "+va(b)+" available":"no scan codes available")}function lp(a){var b=0;a.A.length&&(b=a.A[0]);r(a)&&Tb(a,"scan code "+va(b)+" delivered");return b}function aq(a,b){0<a.A.length&&(a.A.shift(),(a.J=b)&&(a.A.length&&a.V?Zp(a.V,a.A[0]):b=!1),r(a)&&Tb(a,"scan codes shifted, notify "+(b?"true":"false")))}
|
||||
l.$b=function(a,b){return!b&&(this.reset(),a&&this.restore&&!this.restore(a))?!1:!0};l.Zb=function(a){return a?this.save():!0};l.reset=function(){if(!this.da&&this.V)switch(this.V.da){case Il:case 5160:Cq(this,Qq[0]);break;default:Cq(this,Qq[1])}Sq(this)};l.save=function(){var a=new ag(this),b=[];b[0]=this.N;b[1]=this.K;a.set(0,b);return a.data()};l.restore=function(a){return Sq(this,a[0])};
|
||||
function Sq(a,b){var c=0;b?a.F=a.I:(b=[],a.F=null);a.N=b[c++];a.K=b[c];a.H=0;a.jc=a.D=0;a.A=[];a.J=!0;a.C="";return!0}l.gh=function(a,b){if(a&&!this.C){if(a){for(var c,d=/(?:^|[^$])\$([a-z]+)/g;c=d.exec(a);){switch(c[1]){case "date":var e=Ga("n-j-Y");break;case "time":e=Ga("h:i:s");break;default:continue}a=a.replace("$"+c[1],e)}a=a.replace(/\$\$/g,"$$")}this.C=a;this.Z=b||150;Pq(this);return!0}return!1};
|
||||
function Pq(a){for(var b=0;0<a.C.length&&!b;)if(b=a.C.charAt(0),a.C=a.C.substr(1),b=b.charCodeAt(0),240<=b){a.Z=100*(b-240)||150;b=0;break}b&&(10==b&&(b=13),Gq(a,b,!0));a.C.length?Pd(a.G,a.qa,a.Z):a.M&&(a.M(),a.M=null)}l.$o=function(a,b){var c=!1;switch(b){case "DOS":this.P?c=!0:this.L=a;break;default:this.C.length?this.M=a:c=!0}return c};
|
||||
function Lq(a,b,c,d){if(N[b]){var e=Math.floor(b/1E3)&2;if(b=Tq[b]||0){!e||b&Uq||(b>>=1);if(b&Vq){if(!1===d)return!0;d=null}null==d?d=!((c?a.D:a.jc)&b):d||b&Wq&&(b=Wq);if(c){a.D&=~b;d&&(a.D|=b);c=b;var f,g;for(g in Xq)d="led-"+g,e=Xq[g],c&&c!=e||!(f=a.ma[d])||(f.style.backgroundColor=a.D&e?"#00ff00":"#000000")}else a.jc&=~b,d&&(a.jc|=b);return!0}}return!1}
|
||||
function Gq(a,b,c){if((N[b]||N[b+=1E3])&&a.G&&a.G.aa.Xa){Tq[b]&&a.B.length&&0<a.B[0].zd&&(a.B[0].zd=0);for(var d,e=0;e<a.B.length;e++)if(d=a.B[e],d.ve==b){if(!c||0<=d.zd){e=-1;break}0<e&&(0<a.B[0].zd&&(a.B[0].zd=0),a.B.splice(e,1));break}0>e||(e==a.B.length&&(d={},d.ve=b,d.jc=a.jc,Oq(a,b,!0),e++),0<e&&a.B.splice(0,0,d),d.nf=!0,d.zd=c?-1:Tq[b]?0:1,Yq(a,d))}}
|
||||
function Nq(a,b,c){if(!N[b]||!(c||a.G&&a.G.aa.Xa))return!1;for(var d=!1,e=0;e<a.B.length;e++){var f=a.B[e];if(f.ve==b||f.ve==pa[b]){a.B.splice(e,1);f.li&&clearTimeout(f.li);f.nf&&!c&&Zq(a,f.ve,!1);Oq(a,b,!1);d=!0;break}}!a.B.length&&a.fa&&(Lq(a,Hq),a.fa=!1);return d}function Yq(a,b){if(!a.G||!a.G.aa.Xa)Nq(a,b.ve,!0);else if(Zq(a,b.ve,b.nf)&&b.zd){if(0>b.zd){if(!b.nf){Nq(a,b.ve);return}b.nf=!1;var c=a.la}else c=1==b.zd++?500:100;b.li=setTimeout(function(a){return function(){Yq(a,b)}}(a),c)}}
|
||||
function $q(a,b,c){var d=b;if(b>=n.ee&&b<=n.Zf)!(a.jc&(ar|br|cr))==c&&(d=b+(n.Hd-n.ee));else if(b>=n.Hd&&b<=n.z)!!(a.jc&(ar|br|cr))==c&&(d=b-(n.Hd-n.ee));else if(!!(a.jc&(ar|br))==c){if(a=pa[b])d=a}else if(a=na[b])d=a;return d}l.yg=function(a){a||(this.jc&=~Wq)};
|
||||
function Dq(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode;if(!Eq(a.na))return!1;a.C="";Db(a.de);var h=$q(a,g,!0);a.$g&&h==n["`"]&&(g=h=27);if(N[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),Lq(a,h,!1,c)){if(20==g||144==g||145==g)a.ha||(c=e=!0);if(!(c||91!=g&&93!=g))for(var k=0;k<a.B.length;k++){var m=a.B[k];m.nf=!1;0<m.zd&&(m.zd=0)}}else 8==g&&(a.jc&(dr|er))==dr&&(h=fr),d=!1;else if(N[h]&&a.jc&(gr|hr)&&(d=!1),d&&c||a.jc&ir)f=!0;d||b.preventDefault();f||a.ea&&d||(c?Gq(a,h,e):Nq(a,h)||(b=$q(a,g,!1),b!=h&&Nq(a,b)));
|
||||
return d}
|
||||
function Zq(a,b,c){var d=!1;Lq(a,b,!0,c);var e=N[b]||N[b+1E3];if(void 0!==e){e==jr&&(a.jc&(dr|er))==(dr|er)&&(e=kr);d=[];var f=e&255;if(83<f&&83==a.ka)return!1;d.push(f|(c?0:lr));for(b=b>=n.ee&&b<=n.Zf||b>=n.Hd&&b<=n.z;e>>>=8;){var g=0,h=e&255;f==mr||f==nr?d.push(f|(c?0:lr)):(h==O?a.D&(ar|br)||a.D&cr&&b||(g=h):h==or?a.D&(dr|pr)||(g=h):h==qr?a.D&(er|rr)||(g=h):d.push(f|(c?0:lr)),g&&(c?d.unshift(g):d.push(g|lr)))}for(c=0;c<d.length;c++)e=a,f=d[c],e.A&&(e.A.length<sr?(r(e)&&Tb(e,"scan code "+va(f)+" buffered"),
|
||||
e.A.push(f),1==e.A.length&&e.V&&Zp(e.V,f)):(e.A.length==sr&&e.A.push(tr),Tb(e,"scan code buffer overflow")));d=!0}return d}var Qq=["US83","US84","US101"],Hq=1020,Iq=1144,Jq=1145,ur=n.al+4E3,fr=4008,jr=14,or=29,O=42,qr=56,kr=83,lr=128,mr=224,nr=225,br=1,ar=2,pr=4,dr=8,gr=12,rr=16,er=32,hr=48,Fq=128,ir=192,Uq=85,Wq=255,cr=512,Vq=3584,Tq={};Tq[3016]=br;Tq[1016]=ar;Tq[1017]=dr;Tq[1018]=er;Tq[1091]=Fq;Tq[1093]=64;Tq[1224]=Fq;Tq[Hq]=cr;Tq[Iq]=1024;Tq[Jq]=2048;
|
||||
var Kq={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,SYSREQ:4027,CTRL_C:ur,CTRL_BREAK:fr,CTRL_ALT_DEL:4046,CTRL_ALT_INS:4045,CTRL_ALT_ENTER:4013},Mq={esc:1027,1:n["1"],2:n["2"],3:n["3"],4:n["4"],5:n["5"],6:n["6"],7:n["7"],8:n["8"],9:n["9"],0:n["0"],"-":n["-"],"=":n["="],bs:1008,tab:1009,q:n.Q,w:n.Ji,e:n.E,r:n.Ei,t:n.Gi,y:n.Li,u:n.Hi,i:n.wi,o:n.Ci,p:n.Di,"[":n["["],"]":n["]"],enter:13,ctrl:1017,a:n.ee,s:n.Fi,
|
||||
d:n.si,f:n.ti,g:n.ui,h:n.vi,j:n.xi,k:n.yi,l:n.zi,";":n[";"],quote:n["'"],"`":n["`"],shift:1016,"\\":n["\\"],z:n.Zf,x:n.Ki,c:n.ri,v:n.Ii,b:n.pi,n:n.Bi,m:n.Ai,",":n[","],".":n["."],"/":n["/"],"right-shift":3016,prtsc:1044,alt:1018,space:1032,"caps-lock":Hq,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":Iq,"scroll-lock":Jq,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035,
|
||||
"num-down":1040,"num-pgdn":1034,"num-ins":1045,"num-del":1046,sysreq:84},Xq={"caps-lock":cr,"num-lock":1024,"scroll-lock":2048},N={1027:1};N[n["1"]]=2;N[n["!"]]=2|O<<8;N[n["2"]]=3;N[n["@"]]=3|O<<8;N[n["3"]]=4;N[n["#"]]=4|O<<8;N[n["4"]]=5;N[n.$]=5|O<<8;N[n["5"]]=6;N[n["%"]]=6|O<<8;N[n["6"]]=7;N[n["^"]]=7|O<<8;N[n["7"]]=8;N[n["&"]]=8|O<<8;N[n["8"]]=9;N[n["*"]]=9|O<<8;N[n["9"]]=10;N[n["("]]=10|O<<8;N[n["0"]]=11;N[n[")"]]=11|O<<8;N[n["-"]]=12;N[n._]=12|O<<8;N[n["="]]=13;N[n["+"]]=13|O<<8;N[1008]=jr;
|
||||
N[1009]=15;N[n.q]=16;N[n.Q]=16|O<<8;N[n.Yo]=17;N[n.Ji]=17|O<<8;N[n.e]=18;N[n.E]=18|O<<8;N[n.r]=19;N[n.Ei]=19|O<<8;N[n.t]=20;N[n.Gi]=20|O<<8;N[n.y]=21;N[n.Li]=21|O<<8;N[n.Wo]=22;N[n.Hi]=22|O<<8;N[n.Cl]=23;N[n.wi]=23|O<<8;N[n.on]=24;N[n.Ci]=24|O<<8;N[n.p]=25;N[n.Di]=25|O<<8;N[n["["]]=26;N[n["{"]]=26|O<<8;N[n["]"]]=27;N[n["}"]]=27|O<<8;N[13]=28;N[1017]=or;N[n.Hd]=30;N[n.ee]=30|O<<8;N[n.So]=31;N[n.Fi]=31|O<<8;N[n.d]=32;N[n.si]=32|O<<8;N[n.zl]=33;N[n.ti]=33|O<<8;N[n.Al]=34;N[n.ui]=34|O<<8;N[n.Bl]=35;
|
||||
N[n.vi]=35|O<<8;N[n.Wm]=36;N[n.xi]=36|O<<8;N[n.k]=37;N[n.yi]=37|O<<8;N[n.Xm]=38;N[n.zi]=38|O<<8;N[n[";"]]=39;N[n[":"]]=39|O<<8;N[n["'"]]=40;N[n['"']]=40|O<<8;N[n["`"]]=41;N[n["~"]]=41|O<<8;N[1016]=O;N[n["\\"]]=43;N[n["|"]]=43|O<<8;N[n.z]=44;N[n.Zf]=44|O<<8;N[n.x]=45;N[n.Ki]=45|O<<8;N[n.ql]=46;N[n.ri]=46|O<<8;N[n.Xo]=47;N[n.Ii]=47|O<<8;N[n.ol]=48;N[n.pi]=48|O<<8;N[n.n]=49;N[n.Bi]=49|O<<8;N[n.cn]=50;N[n.Ai]=50|O<<8;N[n[","]]=51;N[n["<"]]=51|O<<8;N[n["."]]=52;N[n[">"]]=52|O<<8;N[n["/"]]=53;
|
||||
N[n["?"]]=53|O<<8;N[3016]=54;N[1044]=55;N[1018]=qr;N[1032]=57;N[Hq]=58;N[1112]=59;N[1113]=60;N[1114]=61;N[1115]=62;N[1116]=63;N[1117]=64;N[1118]=65;N[1119]=66;N[1120]=67;N[1121]=68;N[Iq]=69;N[Jq]=70;N[1036]=71;N[1038]=72;N[1033]=73;N[1109]=74;N[1037]=75;N[1101]=76;N[1039]=77;N[1107]=78;N[1035]=79;N[1040]=80;N[1034]=81;N[1045]=82;N[1046]=kr;N[4027]=84;N[1122]=87;N[1123]=88;N[1091]=91;N[1093]=93;N[1224]=91;N[ur]=46|or<<8;N[fr]=70|or<<8;N[4046]=kr|or<<8|qr<<16;N[4045]=82|or<<8|qr<<16;
|
||||
N[4013]=28|or<<8|qr<<16;var Bp=255,Ep=243,Gp=237,Rq=170,Cp=250,tr=255,sr=20;cb(function(){for(var a=zb(document,"pcx86","keyboard"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new Bq(d);yb(d,c)}});
|
||||
function vr(a,b,c,d){if(void 0!==b&&(!c||c.length)){this.video=a;var e=wr[b],f=a.fa||e[5];if(!c||6>c.length)c=[!1,0,null,null,0,Array(b<lq?xr:yr)];this.ca=a.ca;this.type=e[0];this.port=e[1];this.Ma=b;this.fb=e[2];this.Tb=e[3];this.ud=d||e[4];65536<=this.ud&&720896<=this.fb&&(this.Tb=Math.min(this.ud>>2,32768));this.rc=c[0];this.Uc=c[1];this.Ye=c[2];this.ga=c[3];this.gc=c[4]&255;this.Cg=c[4]>>8&255;this.$a=c[5];this.mh=xr;this.bg=zr;this.$d=this.$a[Ar]|this.$a[Br]<<8;this.ag=63;if(b>=lq){this.ag=255;
|
||||
this.mh=yr;this.bg=Cr;b=c[6];void 0===b&&(b=[!1,0,Array(Dr),0,f==Zl?0:Er,0,0,Array(Fr),0,0,0,Array(Gr),0,[this.fb,this.Tb,this.ud],Array(this.ud>>2),Hr|Ir|Jr|Kr|Lr,0,-1,0,-1,0,-1,0,0,0,0,Mr,Nr,0,0,Or,Array(Pr)]);this.Je=b[0];this.Bd=b[1];this.Dc=b[2];this.Qg=Qr;this.Fg=b[3];this.$e=b[4];this.Lf=b[5];this.Ed=b[6];this.be=b[7];this.Sg=Rr;this.Rk=b[8];this.Sk=b[9];this.Dd=b[10];this.Cd=b[11];this.Rg=Sr;this.xb=b[12];d=b[13];"number"==typeof d&&(d=[this.fb,this.Tb,d]);this.fb=d[0];this.Tb=d[1];d=this.ud>>
|
||||
2;if((this.dd=b[14])&&this.dd.length<d){e=this.dd;for(var g=0,h=Array(d),k=0;k<e.length-1;){for(var m=e[k++],p=e[k++];m--;)h[g]=p,g+=2;g==d&&(g=1)}this.dd=h}(d=b[15])&&(d&Lr?d&=~Lr:d=Tr[d&65280]|Tr[d&255]);this.Hg(d);this.bi=b[16];this.kb=b[17];this.Pc=b[18];this.Db=b[19];this.Ef=b[20];this.Md=b[21];this.Zd=b[22];this.nh=b[23];this.oh=b[24];this.$d=b[25];this.ci=this.Ff=0;this.Ma==nq&&(this.gi=b[26],this.Dg=b[27],this.ad=b[28],this.yc=b[29],this.Eg=b[30],this.Ze=b[31])}f=Ur[f]||Ur[Zl];this.qh=a.G.Y.Yd/
|
||||
f.ug|0;this.hn=this.qh*f.Ag/100|0;this.rh=this.qh*f.tg|0;this.kn=this.rh*f.Bg/100|0;this.th=c[7]||0}}
|
||||
function Vr(a){var b=[];if(void 0!==a.Ma){b[0]=a.rc;b[1]=a.Uc;b[2]=a.Ye;b[3]=a.ga;b[4]=a.gc|a.Cg<<8;b[5]=a.$a;if(a.Ma>=lq){var c=[];c[0]=a.Je;c[1]=a.Bd;c[2]=a.Dc;c[3]=a.Fg;c[4]=a.$e;c[5]=a.Lf;c[6]=a.Ed;c[7]=a.be;c[8]=a.Rk;c[9]=a.Sk;c[10]=a.Dd;c[11]=a.Cd;c[12]=a.xb;c[13]=[a.fb,a.Tb,a.ud];var d;if(d=a.dd){var e=0,f=[];if(void 0!==d[0])for(var g=0;2>g;g++)for(var h=g;h<d.length;){for(var k=d[h],m=h+2;m<d.length&&d[m]===k;)m+=2;f[e++]=m-h>>1;f[e++]=k;h=m}f.length<d.length&&(d=f)}c[14]=d;c[15]=a.pg|Lr;
|
||||
c[16]=a.bi;c[17]=a.kb;c[18]=a.Pc;c[19]=a.Db;c[20]=a.Ef;c[21]=a.Md;c[22]=a.Zd;c[23]=a.nh;c[24]=a.oh;c[25]=a.$d;a.Ma==nq&&(c[26]=a.gi,c[27]=a.Dg,c[28]=a.ad,c[29]=a.yc,c[30]=a.Eg,c[31]=a.Ze);b[6]=c}b[7]=a.th}return b}function Wr(a,b,c,d,e){if(d){var f,g="";for(f=0;f<e.length;f++){var h=d===a.$a?Xr(a,f):d[f];g&&(g+="\n");g+=b+"["+q(f,2)+"]: "+Ca(e[f],18)+(f===c?"*":" ")+q(h,255<h?4:2);null!=h&&(g+=" ("+h+".)")}a.ca.O(g)}else a.ca.O(b+": "+q(c,2))}vr.prototype.rj=function(a){return[this.dd,a-this.fb]};
|
||||
vr.prototype.bh=function(){return this.A};vr.prototype.Hg=function(a){if(null!=a&&a!=this.pg){var b=a&Yr,c=Zr[b];c||b&Ir&&(c=Zr[Ir]);b=a&$r;var d=Zr[b];d||b&Kr&&(d=Zr[Kr]);this.A||(this.A=Array(6));this.A[0]=c;this.A[1]=d;this.pg=a}};
|
||||
function Xr(a,b){var c=a.$a[b];if(null!=c&&a.Ma>=lq){var d=0,e=0,f=0;switch(b){case as:d=bs;a.Ma==nq&&(e=cs);break;case ds:a.Ma==lq&&(d=es);break;case fs:d=gs;a.Ma==nq&&(e=hs);break;case is:d=js;a.Ma==nq&&(e=ks);break;case ls:d=ms;a.Ma==nq&&(f=ns);break;case os:d=ps,a.Ma==nq&&(f=qs)}d&&(c|=a.$a[rs]&d?256:0,c|=a.$a[rs]&e?512:0,c|=a.$a[ss]&f?512:0)}return c}
|
||||
var Br=12,Ar=13,xr=18,as=6,rs=7,bs=1,js=2,gs=4,ms=8,ps=16,es=32,cs=32,ks=64,hs=128,ss=9,ns=32,qs=64,ds=10,fs=16,is=18,ls=21,os=24,yr=25,ts={},us=(ts[0]=255,ts[1]=255,ts[2]=255,ts[3]=15,ts[4]=127,ts[5]=31,ts[6]=127,ts[7]=127,ts[8]=3,ts[9]=31,ts[10]=127,ts[11]=31,ts[Br]=63,ts[Ar]=255,ts[14]=63,ts[15]=255,ts[16]=63,ts[17]=255,ts),zr="HTOTAL HDISP HSPOS HSWIDTH VTOTAL VTOTADJ VDISP VSPOS ILMODE MAXSCAN CURSTART CUREND STARTHIGH STARTLOW CURHIGH CURLOW PENHIGH PENLOW".split(" "),Cr="HTOTAL HDEND HBSTART HBEND HRSTART HREND VTOTAL OVERFLOW PRESCAN MAXSCAN CURSTART CUREND STARTHIGH STARTLOW CURHIGH CURLOW VRSTART VREND VDEND OFFSET UNDERLINE VBSTART VBEND MODECTRL LINECOMP".split(" "),
|
||||
Dr=20,Qr="PAL00 PAL01 PAL02 PAL03 PAL04 PAL05 PAL06 PAL07 PAL08 PAL09 PAL0A PAL0B PAL0C PAL0D PAL0E PAL0F MODE OVERSCAN PLANES HPAN".split(" "),Er=1,Mr=1,Fr=5,Rr=["RESET","CLOCKING","MAPMASK","CHARMAP","MEMMODE"],Nr=255,Or=0,Pr=256,Gr=9,Sr="SRESET ESRESET COLORCMP DATAROT READMAP MODE MISC COLORDC BITMASK".split(" "),Hr=1024,Ir=4096,Yr=65280,Jr=0,Kr=16,$r=255,Lr=-2147483648,Tr=[];Tr[2]=Hr;Tr[3]=Hr|Ir;Tr[16]=1280;Tr[512]=Jr;Tr[1024]=Jr|32;Tr[1536]=Jr|96;Tr[2560]=Jr|160;Tr[3584]=Jr|224;Tr[768]=Jr|Kr;
|
||||
Tr[4096]=1;Tr[8192]=2;Tr[24576]=98;Tr[40960]=162;Tr[57344]=226;var Zr=[];Zr[Hr]=function(a){a+=this.G;return(this.controller.xb=this.W[a])>>this.controller.bi&255};Zr[Hr|16384]=function(a){return(this.controller.xb=this.W[(a&-4)+this.G])>>((a&3)<<3)&255};Zr[Hr|Ir]=function(a){a+=this.G;var b=this.controller.xb=this.W[a&-2];return(a&1?b>>8:b)&255};
|
||||
Zr[1280]=function(a){a+=this.G;a=this.controller.xb=this.W[a];for(var b=this.controller.oh,c=this.controller.nh&b,d=0,e=128;e;)(a&b)==c&&(d|=e),c>>>=1,b>>>=1,e>>=1;return d};Zr[Jr]=function(a,b){a+=this.G;b=(b|b<<8|b<<16|b<<24)&this.controller.Md|this.controller.Zd;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[Jr|32]=function(a,b){a+=this.G;b=b>>this.controller.Pc|b<<8-this.controller.Pc&255;b=(b|b<<8|b<<16|b<<24)&this.controller.Md|this.controller.Zd;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[Jr|96]=function(a,b){a+=this.G;b=b>>this.controller.Pc|b<<8-this.controller.Pc&255;b=(b|b<<8|b<<16|b<<24)&this.controller.Md|this.controller.Zd;b&=this.controller.xb;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[Jr|160]=function(a,b){a+=this.G;b=b>>this.controller.Pc|b<<8-this.controller.Pc&255;b=(b|b<<8|b<<16|b<<24)&this.controller.Md|this.controller.Zd;b|=this.controller.xb;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[Jr|224]=function(a,b){a+=this.G;b=b>>this.controller.Pc|b<<8-this.controller.Pc&255;b=(b|b<<8|b<<16|b<<24)&this.controller.Md|this.controller.Zd;b^=this.controller.xb;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};Zr[Jr|4]=function(a,b){var c=(a&-4)+this.G;a=(a&3)<<3;b=b<<a&this.controller.kb|this.W[c]&~(255<<a&this.controller.kb);this.W[c]!=b&&(this.W[c]=b,this.Oa=!0)};
|
||||
Zr[Jr|Kr]=function(a,b){a+=this.G;var c=a&-2;b=(b|b<<8|b<<16|b<<24)&this.controller.Db|this.controller.xb&~this.controller.Db;a=this.controller.kb&(c==a?16711935:-16711936);b=b&a|this.W[c]&~a;this.W[c]!=b&&(this.W[c]=b,this.Oa=!0)};Zr[1]=function(a){a+=this.G;var b=this.W[a]&~this.controller.kb|this.controller.xb&this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[1|Kr]=function(a){a+=this.G;var b=a&-2;a=this.controller.kb&(b==a?16711935:-16711936);a=this.W[b]&~a|this.controller.xb&a;this.W[b]!=a&&(this.W[b]=a,this.Oa=!0)};Zr[2]=function(a,b){a+=this.G;b=vs[b&15];b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[98]=function(a,b){a+=this.G;b=vs[b&15];b&=this.controller.xb;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};Zr[162]=function(a,b){a+=this.G;b=vs[b&15];b|=this.controller.xb;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
Zr[226]=function(a,b){a+=this.G;b=vs[b&15];b^=this.controller.xb;b=b&this.controller.Db|this.controller.xb&~this.controller.Db;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};Zr[3]=function(a,b){a+=this.G;b=b>>this.controller.Pc|b<<8-this.controller.Pc&255;b=(b|b<<8|b<<16|b<<24)&this.controller.Db;b=this.controller.Ef&b|this.controller.xb&~b;b=b&this.controller.kb|this.W[a]&~this.controller.kb;this.W[a]!=b&&(this.W[a]=b,this.Oa=!0)};
|
||||
function Q(a,b,c,d,e){pb.call(this,"Video",a,262144);var f=this,g;this.$c=Ua("Gecko/");this.da=a.model;var h=ws[this.da]||ws.mda;this.Ma=h[0];this.ud=a.memory||0;this.nd=a.switches;this.Sb=a.randomize;null==this.Sb&&(this.Sb=1);this.ea=a.mode;if(null==this.ea||null==xs[this.ea])this.ea=h[1];this.Rb=a.charCols;this.Ac=a.charRows;if(void 0===this.Rb||void 0===this.Ac)this.Rb=xs[this.ea][0],this.Ac=xs[this.ea][1];this.Z=a.screenWidth;this.ka=a.screenHeight;this.bd=a.scale;this.Qd=12<=Math.round(this.Z/
|
||||
this.Rb);this.N=b;this.L=c;this.F=(this.mg=d)||b||null;this.lc=a.screenColor||"black";this.md=(1-(Xa("flicker")||a.flicker||0)).toString();this.Hb=!1;b&&(b.style.backgroundColor=this.lc);e&&(e.style.backgroundColor=this.lc);b=a.smoothing;(c=Xa("smoothing"))&&(b="true"==c);null!=b&&(g=Va(this.L,"imageSmoothingEnabled"))&&(this.L[g]=b);this.od=a.touchScreen;this.lb=ys;this.H=null;this.Pd=a.autoLock;this.fb=this.Tb=0;this.ra=[];this.ha=Array(this.Ma==nq?256:16);this.Ia=!1;if(this.P=e)if(g=Va(e,"requestFullscreen")||
|
||||
Va(e,"requestFullScreen")){this.P.A=e[g];if(e=Va(document,"on","fullscreenchange")){var k=Va(document,"fullscreenElement")||Va(document,"fullScreenElement");document.addEventListener(e,function(){zs(f,!!k)},!1)}(e=Va(document,"on","fullscreenerror"))&&document.addEventListener(e,function(){zs(f,null)},!1)}if(this.F&&(this.F.onfocus=function(){return f.yg(!0)},this.F.onblur=function(){return f.yg(!1)},this.F.ne=(g=Va(this.F,"requestPointerLock"))&&this.F[g],this.F.B=(g=Va(this.F,"exitPointerLock"))&&
|
||||
this.F[g],this.F.ne&&(e=Va(document,"on","pointerlockchange")))){var m=Va(document,"pointerLockElement");document.addEventListener(e,function(){f.Gf(!(!m||document[m]!==f.F))},!1)}(this.Aa=a.fontROM)&&"json"!=ya(this.Aa)&&(this.Aa=Na()+"/api/v1/dump?file="+this.Aa+"&format=bytes")}ia(Q,pb);l=Q.prototype;
|
||||
l.tc=function(a,b,c,d){var e=this;this.oa=b;this.G=c;this.ca=d;c=+Bd(a,"randomize");0<=c&&1>=c&&(this.Sb=c);c=(c=ws[this.da])&&c[0];c!==As&&(Pc(b,this,Bs),Uc(b,this,Cs));c!==Ds&&(Pc(b,this,Es),Uc(b,this,Fs));this.Ma>=lq&&(Pc(b,this,Gs),Uc(b,this,Hs));this.Ma==nq&&(Pc(b,this,Is),Uc(b,this,Js));d&&Cl(d,262144,function(a){if(e.B)if(a[0]){var b=e.B;if(b.dd){var c,d=!1,f=8,g=8,h=-1,J=b.video.D>>3;for(c=0;c<a.length;c++){var H=a[c];if(c){var G=H.charAt(0);var P=qa(H.substr(1),16);switch(G){case "l":f=P;
|
||||
break;case "n":1<=P&&8>=P&&(g=P,d=!0);break;case "p":0<=P&&3>=P&&(h=P);break;case "w":P<J&&(J=P);break;default:b.ca.O("unrecognized argument: "+H)}}else var I=qa(H,16)}void 0===I?I=b.B||0:I>=b.fb&&(I-=b.fb);a="";for(c=0;c<f;c++){H=q(b.fb+I)+":";for(P=0;P<g&&I<b.dd.length;P++)G=b.dd[I++],H+=" "+(0>h?q(G):ta(G>>(h<<3),8));d&&(I+=J-g);a&&(a+="\n");a+=H}a&&b.ca.O(a);b.B=I}else b.ca.O("no buffer")}else e.ca.O("BIOSMODE: "+va(e.la)),b=e.B,Wr(b,"CRTC",b.gc,b.$a,b.bg),b.Ma>=lq&&(Wr(b," GRC",b.Dd,b.Cd,b.Rg),
|
||||
Wr(b," SEQ",b.Ed,b.be,b.Sg),Wr(b," ATC",b.Bd,b.Dc,b.Qg),Wr(b," ATCINDX",b.Bd),b.ca.O(" ATCDATA: "+b.Je),Wr(b," FEAT",b.Lf),Wr(b," MISC",b.$e),Wr(b," STATUS0",b.Fg)),Wr(b," STATUS1",b.ga),b.Ma!=Ds&&b.Ma!=As||Wr(b," MODEREG",b.Uc),b.Ma==As&&Wr(b," COLOR",b.Ye),b.Ma>=lq&&(b.ca.O(" LATCHES: "+q(b.xb)),b.ca.O(" ACCESS: "+q(b.pg,4)),b.ca.O("Use 'dump video [addr]' to dump video memory"));else e.ca.O("no active video card")});if((this.C=ac(a,"Keyboard"))&&this.N){for(var f in this.ma)0<f.indexOf("lock")&&
|
||||
this.C.Eb("led",f,this.ma[f]);this.C.Eb(this.mg?"textarea":"canvas","screen",this.F)}this.Fb=9;(this.V=ac(a,"ChipSet"))&&this.nd&&this.Ma==lq&&(this.Fb=il(this.nd,this.Fb));"mouse"==this.od?(this.H=ac(a,"Mouse"))&&Ks(this,Ls):"keygrid"==this.od&&this.C&&Ks(this,Ms);this.lb||Ks(this,Ns);if(this.Aa){var g="Loading "+this.Aa+"...";Ma(this.Aa,null,!0,function(a,b,c){Os(e,a,b,c)},function(){e.O(g,Kb)})}Cd(this.G,this.id,function(){Ps(e)},1E3/Qs)};
|
||||
l.Eb=function(a,b,c){var d=this;if(!this.ma[b])switch(this.ma[b]=c,b){case "fullScreen":return this.P&&this.P.A?c.onclick=function(){if(d.P){if(d.P.A){var a="100%";if(screen&&screen.width&&screen.height){var b=screen.width/screen.height,c=d.Z/d.ka;b>c&&(a=Math.round(c/b*100)+"%")}d.$c?(d.N.style.width=a,d.N.style.width=a,d.N.style.display="block",d.N.style.margin="auto"):(d.P.style.width=a,d.P.style.height="auto");d.P.style.backgroundColor=d.lc;d.P.A()}d.F&&d.F.focus()}}:c.parentNode.removeChild(c),
|
||||
!0;case "lockPointer":return this.Sd=c.textContent,this.F&&this.F.ne?c.onclick=function(){d.ne(!0)}:c.parentNode.removeChild(c),!0;case "refresh":return c.onclick=function(){Ps(d,!0)},!0}return!1};function zs(a,b){!b&&a.P&&(a.$c?a.N.style.width=a.N.style.height="":a.P.style.width=a.P.style.height="");Tb(a,"notifyFullScreen("+b+")",!0);a.C&&(a.C.$g=b)}
|
||||
l.ne=function(a){var b=!1;this.F&&(a?this.F.ne&&(this.F.ne(),this.H&&this.H.Gf(!0),b=!0):this.F.B&&(this.F.B(),this.H&&this.H.Gf(!1),b=!0),this.F&&this.F.focus());return b};l.Gf=function(a){this.H&&(this.H.Gf(a),this.C&&(this.C.$g=a));var b=this.ma.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.Sd)};
|
||||
function Ks(a,b){var c=a.F;c&&!a.lb&&(a.lb=b,c.addEventListener("touchstart",function(b){gq(a.V,b);a.lb!=Ns&&Rs(a,b,!0)},!1),b!=Ns&&(c.addEventListener("touchmove",function(b){Rs(a,b)},!0),c.addEventListener("touchend",function(b){Rs(a,b,!1)},!1),a.mb=a.vb=a.pd=-1,a.wc=!1,a.Kb=null,a.vc=!1,a.Rd=function(){a.vc=!0;a.H.Xd(Ss,!0)}))}l.yg=function(a){this.C&&this.C.yg(a)};
|
||||
function Rs(a,b,c){var d=0,e=0;var f=a.N;do isNaN(f.offsetLeft)||(d+=f.offsetLeft,e+=f.offsetTop);while(f=f.offsetParent);var g=a.Z/a.N.offsetWidth,h=a.ka/a.N.offsetHeight;if(b.targetTouches&&b.targetTouches.length){f=b.targetTouches[0].pageX;var k=b.targetTouches[0].pageY}else f=b.pageX,k=b.pageY;f=(f-d)*g;k=(k-e)*h;if(a.lb==Ms)c&&Gq(a.C,Ts[k/(a.ka/3)|0][f/(a.Z/3)|0],!0);else if(a.H){e=a.wc;d=b.timeStamp-a.pd;!0===c?(a.wc=500<d,a.pd=b.timeStamp,a.Kb=setTimeout(a.Rd,500)):null!=a.Kb&&(clearTimeout(a.Kb),
|
||||
a.Kb=null);void 0===c&&(a.wc=!1);e||b.preventDefault();if(!1===c){a.vc?(a.H.Xd(Ss,!1),a.vc=!1,b=!0):b=!1;if(b)return;if(200>d){a.H.Xd(Ss,!0);a.H.Xd(Ss,!1);return}}if(c||0>a.mb||0>a.vb)a.mb=f,a.vb=k;c=Math.round(f-a.mb);b=Math.round(k-a.vb);a.mb=f;a.vb=k;a.H.sf(c,b,a.mb,a.vb)}}l.$b=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Zb=function(a){return a?this.save():!0};
|
||||
l.reset=function(){var a=0;this.V&&(a=+Yl(this.V,ml,void 0));this.da||(this.Ma=a==Zl?Ds:As);this.ea=Us;switch(this.Ma){case nq:a=7;break;case lq:var b=Vs[this.Fb];b&&(a=b[0]);a||(a=4);break;case Ds:a=Zl;this.ea=Ws;break;default:a=2}this.fa!==a&&(this.fa=a);this.B=null;this.U=this.fc=new vr(this,Ds);this.K=this.Gb=new vr(this,As);this.Ma<lq?this.A=new vr:(this.A=new vr(this,this.Ma,null,this.ud),Xs(this));Ys(this);this.la=null;Zs(this,this.ea);if(this.B.fb&&this.Sb){a=this.B.fb+this.Ra;for(b=this.B.fb;b<
|
||||
a;b+=2){var c=65536*Math.random()|0;if(4==this.fa||7==this.fa){var d=b>>1&255;c=c>>8&~$s;c>>4==(c&15)&&(c^=15)}else d=c&255,c=(c&256?at|bt:ct|dt)|et&c>>8;Mc(this.oa,b,d|c<<8)}Ps(this,!0)}};function Xs(a){a.A.$e&Er?(a.U=a.fc,a.K=a.A):(a.U=a.A,a.K=a.Gb)}l.save=function(){var a=new ag(this);a.set(0,Vr(this.fc));a.set(1,Vr(this.Gb));a.set(2,[this.fa,this.ea,this.la]);a.set(3,Vr(this.A));return a.data()};
|
||||
l.restore=function(a){var b=a[2];this.fa=b[0];this.ea=b[1];this.la=b[2];this.B=null;this.U=this.fc=new vr(this,Ds,a[0]);this.K=this.Gb=new vr(this,As,a[1]);this.A=new vr(this,this.Ma,a[3],this.ud);this.A.rc&&Xs(this);Ys(this);if(!ft(this))return!1;gt(this);return!0};
|
||||
function Os(a,b,c,d){if(d)a.Da("Unable to load font ROM (error "+d+": "+b+")",0>d);else{rb(a.de,b,c);try{var e=eval("("+c+")"),f=e.bytes||e;if(!f.length){kb("Empty font ROM: "+b);return}if(1==f.length){kb(f[0]);return}if(8192==f.length)mq(a,f,[6144,0]);else if(2048==f.length)mq(a,f,[0]);else{a.Da("Unrecognized font data length ("+f.length+")");return}}catch(g){a.Da("Font ROM data error: "+g.message);return}(a.L||a.ca)&&Pb(a)}}
|
||||
function ht(a,b){if(1==b)return a.ha[0]=it[ct],a.ha[1]=it[at],a.ha;if(2==b){var c=a.B.Ye;if(a.B===a.A){var d=a.A.Dc[0];c=d&7;d&16&&(c|=8);18!=a.A.Dc[1]&&(c|=32)}a.ha[0]=it[c&15];c=c&32?jt:kt;for(d=0;d<c.length;d++)a.ha[d+1]=it[c[d]];return a.ha}if(a.K===a.Gb)return it;a.Ia&&b&&!a.ha[16]&&(a.Ia=!1);if(!a.Ia){c=a.A;d=c.Ze;var e;if(8==b)for(e=0;256>e;e++){var f=d[e]||0;var g=f<<2&252;var h=f>>4&252;f=f>>10&252;a.ha[e]=[g,h,f,255]}else{var k=d&&d[255];b=null!=c.Dc[15]?c.Dc:lt;for(e=0;16>e;e++)f=b[e]&
|
||||
63,k?(f|=(c.Dc[20]&12)<<4,c.Dc[16]&128&&(f&=-49,f|=(c.Dc[20]&3)<<4),f=d[f],g=f<<2&252,h=f>>4&252,f=f>>10&252):(g=(f&4?170:0)|(f&32?85:0),h=(f&2?170:0)|(f&16?85:0),f=(f&1?170:0)|(f&8?85:0)),a.ha[e]=[g,h,f,255]}a.Ia=!0}return a.ha}function mq(a,b,c,d){a.zb=b;a.Pa=c;a.Fa=d}
|
||||
function Ys(a,b){var c=!1;if(window&&a.zb&&(!b||a.I)){var d=0,e=a.Fa?a.Fa:8,f=ht(a);null!=a.Pa[0]&&mt(a,nt,a.Pa[0],d,e,8,a.zb,f)&&(c=!0);d=a.Fa?0:2048;e=a.Fa?a.Fa:9;null!=a.Pa[1]&&(mt(a,ot,a.Pa[1],d,e,14,a.zb,pt,qt)&&(c=!0),a.Fa&&mt(a,a.Ma,a.Pa[1],0,a.Fa,14,a.zb,f)&&(c=!0))}b||(a.ba=-1,a.Ba=-1,a.ta=0);return c}function mt(a,b,c,d,e,f,g,h,k){var m=!1;null!=c&&(rt(a,b,c,d,e,f,g,h,k)&&(m=!0),a.Qd&&rt(a,b<<1,c,d,e,f,g,h,k)&&(m=!0));return m}
|
||||
function rt(a,b,c,d,e,f,g,h,k){var m=!1,p=b&1?0:1,v=a.ra[b],u=16>h.length?h.length:16;v||(v={Gc:e<<p,Hc:f<<p,Be:Array(u),Ni:h.slice(0,u),hf:k,Pg:Array(u)});for(k=0;k<u;k++){var A=h[k],J=v.Be[k]?v.Ni[k]:[];if(A[0]!==J[0]||A[1]!==J[1]||A[2]!==J[2]){var H,G;m=v;J=k;var P=A,I=p,oa=c,Z=d,hb=e,ra=f,ib=g,Sb=[0,0,0,0],Jb=document.createElement("canvas");Jb.width=m.Gc<<4;Jb.height=m.Hc<<4;var cc=Jb.getContext("2d"),vc=8>ra||!Z?ra:8,jb=cc.createImageData(m.Gc,m.Hc);for(G=0;256>G;G++){for(A=0;A<ra;A++)for(var kf=
|
||||
m.hf&&J&1&&A>=ra-2,Sd=ib[A<vc?oa+G*vc+A:Z+G*vc+A-vc],lf=0;lf<=I;lf++)for(H=0;H<hb;H++){var Fg=H<<I,mf=(A<<I)+lf,Gg=kf||Sd&128>>(8<=H&&192<=G&&223>=G?7:H)?P:Sb;st(jb,Fg,mf,Gg);I&&st(jb,Fg+1,mf,Gg)}cc.putImageData(jb,(G&15)*m.Gc,(G>>4)*m.Hc)}m.Be[J]="#"+q(P[0],2)+q(P[1],2)+q(P[2],2);m.Ni[J]=P;m.Pg[J]=Jb;m=!0}}a.ra[b]=v;return m}function tt(a){0<a.ta||0<=a.ba?0>a.Ba&&(a.Ba=0):a.Ba=-1}
|
||||
function gt(a){if(a.I){for(var b=10;15>=b;b++)if(null==a.B.$a[b])return;var c=a.B.$a[10];b=c&31;var d=a.B.$a[11]&us[11],e=a.B.$a[9]&us[9],f=!1;a.B===a.A&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)ut(a);else{c=a.B.$a[15];c|=(a.B.$a[14]&a.B.ag)<<8;a.ba!=c&&(ut(a),a.ba=c);d=d-b+1;if(a.qd!=b||a.Sc!=d)a.qd=b,a.Sc=d;a.wa=e+1;tt(a)}}}
|
||||
function ut(a){if(0<=a.ba){if(void 0!==a.M){var b=vt<<8,c=a.M[a.ba];if(c&b){c&=~b;b=a.ba%a.D;var d=a.ba/a.D|0;a.I&&a.ra[a.I]&&(a.Ea&&wt(a,b,d,c,a.Ea),wt(a,b,d,c));a.M[a.ba]=c}}a.ba=-1}}
|
||||
function xt(a){var b=a.B;a.Tc=!1;var c=b.Cd[5];if(null!=c){var d=Hr;var e=Jr,f=b.Cd[3]&31;switch(c&3){case 0:if(f){e=Jr|32;switch(f&24){case 8:e=Jr|96;break;case 16:e=Jr|160;break;case 24:e=Jr|224}b.Pc=f&7}break;case 1:e=1;break;case 2:switch(f&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.Ma==nq&&(e=3,b.Pc=f&7)}c&8&&(d=1280);b=b.be[4];null!=b&&(b&4||(d|=Ir,e|=Kr),c&64&&(b&8&&(d|=16384,e|=4),a.Tc=!0));d|=e}return d}
|
||||
function yt(a,b){var c=a.B;return c&&null!=b&&b!=c.pg?(c.Hg(b),a.oa.Hg(c.fb,c.Tb,c.bh(),!0),!0):!1}
|
||||
function ft(a,b){var c=a.la,d=a.B;if(d)if(d.Ma==Ds)c=Ws;else if(d.Ma>=lq){c=null;var e=d.ud>>2,f=32768<e?32768:e,g=d.Cd[6];if(null!=g){switch(g&12){case 0:d.fb=655360;d.Tb=e;c=zt;break;case 4:d.fb=655360;d.Tb=e;c=a.fa==Zl?At:Bt;break;case 8:d.fb=720896;d.Tb=f;c=Ws;break;case 12:d.fb=753664,d.Tb=f,c=a.fa==Zl?Ct:Us}var h=80==(d.Cd[5]&80);!h||d.fb==a.fb&&d.Tb==a.Tb||(b=!0);e=Xr(d,as);f=d.$a[ss];var k=d.$a[23],m=d.be[1]&8;c!=zt&&(g&1?655360==d.fb||h||k&1?d.Cd[5]&64?c=f&31?143>=d.$a[is]?Dt:Et:Ft:f&128||
|
||||
350>e?c=m?Gt:Ht:480<=e&&(c=a.fa==Zl?It:Jt):c=m?7-c:Kt:c-=m?2:0);h=xt(a)}}else d.Uc&8?(d.Uc&2?(c=d.Uc&16?Kt:Lt,d.Uc&4||--c):(c=d.Uc&1?Us:Mt,d.Uc&4&&--c),a.Hb&&(a.N.style.opacity="1",a.Hb=!1)):!a.Hb&&1>+a.md&&(a.Hb=!0,a.N.style.opacity=a.md,d=a.G,d.aa.Pf=!0,Fd(d));else a.la=null,null==c&&(c=a.ea);if(!Zs(a,c,b))return!1;yt(a,h);return!0}
|
||||
function Zs(a,b,c){if(null!=b&&(b!=a.la||c)){a.Fd=0;a.la=b;a.Ia=!1;b=a.B||(b==Ws?a.U:a.K);if(b!=a.B||b.fb!=a.fb||b.Tb!=a.Tb){ut(a);if(a.fb){if(!Ec(a.oa,a.fb,a.Tb))return!1;a.B&&(a.B.rc=!1)}a.B=b;b.rc=!0;a.fb=b.fb;a.Tb=b.Tb;if(!rc(a.oa,b.fb,b.Tb,3,b===a.A?b:null))return!1}a:{a.I=0;a.D=a.Rb;a.J=a.Ac;a.La=a.D;a.Qb=xs[Ws][2];b=0;if(c=xs[a.la])a.D=c[0],a.J=c[1],a.Qb=c[2],b=c[3],a.I=c[4],4!=a.fa&&7!=a.fa||a.B!==a.A||a.I!=nt||(7==(a.A.$a[ss]&31)?a.J=350>Xr(a.A,is)?43:50:a.I=a.Ma);a.ld=a.D*a.J|0;a.kd=a.ld/
|
||||
a.Qb|0;a.Ra=a.kd;a.kc=0;void 0!==b&&(a.Ra=(a.Ra<<1)+b|0,a.kc=a.Ra+b>>1);if(a.ra.length){a.qa=a.Z/a.D|0;a.pa=a.ka/a.J|0;if(a.I){b=a.ra[a.I];if(!b)break a;c=a.ra[a.I<<1];a.bd&&80==a.D?c&&a.qa>=3*c.Gc>>2&&(a.I<<=1,b=c):(c&&a.qa>=c.Gc&&(a.I<<=1,b=c),a.bd||(a.qa=b.Gc,a.pa=b.Hc));a.ab=a.cb=0;b&&(a.ab=a.D*b.Gc,a.cb=a.J*b.Hc)}else a.qa=a.pa=1,a.ab=a.D,a.cb=a.J;a.Ka=a.L.createImageData(a.ab,a.cb);a.Ca=document.createElement("canvas");a.Ca.width=a.ab;a.Ca.height=a.cb;a.Ea=a.Ca.getContext("2d");a.Jc=a.Kc=0;
|
||||
a.sc=a.Z;a.uc=a.ka;b=a.Z-a.D*a.qa;c=a.ka-a.J*a.pa;0<b&&(a.Jc=b>>1,a.sc-=b);0<c&&(a.Kc=c>>1,a.uc-=c);if(b||c)a.L.fillStyle=a.N.style.backgroundColor,a.L.fillRect(0,0,a.Z,a.ka)}}mu(a,!0);Ps(a)}return!0}function st(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function ou(a){a.ta=-1;a.Ga=!1;var b=a.kd;if(void 0===a.M||a.M.length!=b)a.M=Array(b)}function mu(a,b){b||(a.Ia=!1);ou(a)}
|
||||
function wt(a,b,c,d,e){var f=d&255,g=d>>8;d=g&15;var h=a.ra[a.I];h.hf&&(d=h.hf[d]);var k=g>>4&15;h.hf&&(k=h.hf[k]);e?(b*=h.Gc,c*=h.Hc,e.fillStyle=h.Be[k],e.fillRect(b,c,h.Gc,h.Hc)):(b=b*a.qa+a.Jc,c=c*a.pa+a.Kc,a.L.fillStyle=h.Be[k],a.L.fillRect(b,c,a.qa,a.pa));g&pu&&(k=(f&15)*h.Gc,f=(f>>4)*h.Hc,e?e.drawImage(h.Pg[d],k,f,h.Gc,h.Hc,b,c,h.Gc,h.Hc):a.L.drawImage(h.Pg[d],k,f,h.Gc,h.Hc,b,c,a.qa,a.pa));g&vt&&(f=a.qd,g=a.Sc,e?(a.wa&&a.wa!==h.Hc&&(f=f*h.Hc/a.wa|0,g=g*h.Hc/a.wa|0),e.fillStyle=h.Be[d],e.fillRect(b,
|
||||
c+f,h.Gc,g)):(a.wa&&a.wa!==a.pa&&(f=f*a.pa/a.wa|0,g=g*a.pa/a.wa|0),a.L.fillStyle=h.Be[d],a.L.fillRect(b,c+f,a.qa,g)))}
|
||||
function Ps(a,b){b=void 0===b?!1:b;if(a.aa.ac){var c=!1,d=a.B;d&&(d!==a.A?d.Uc&8&&(c=!0):d.Bd&32&&(c=!0));if(c||b){if(b)ou(a);else if(void 0===a.M)return;c=!1;!(b||++a.Fd&15)&&0<=a.Ba&&(a.Ba++,c=!0);var e=a.ld,f=a.fb,g=f,h=g+a.Tb;a.la>=Dt&&(f=g=655360,h=g+65536);if(qu(a,d)&8||d.Ff&&d.Ff<d.ci){var k=d.$a[Ar];k|=(d.$a[Br]&d.ag)<<8;d.$d!==k&&(d.$d=k,mu(a));d.Ff=0}var m=d.$d<<(a.I?1:0);g+=m;k=a.Ra;a.Ma>=lq&&d.$a[19]&&d.$a[19]<<1!=d.$a[1]+1&&(a.La=d.$a[19]<<(a.I?1:d.$a[20]&64?3:4),k=(a.La*(a.J-1)+a.D)/
|
||||
a.Qb|0,a.la<=Ws&&(k<<=1));var p=d=0;g+k>h&&(p=k,g>=h?(d=f+(g-h),k=0):(d=f,k=h-g,p-=k));h=a.ba-(m>>1);g=ru(a,f,g,k,0,h,e,b,c);p&&(g+=ru(a,f,d,p,0+g,h,e,b,c));g&&(a.Ga=!0)}}}
|
||||
function ru(a,b,c,d,e,f,g,h,k){var m=d>>1;m>g&&(m=g);var p=c+d;if(h=!h&&a.Ga){h=a.oa;for(var v=!0,u=c>>>h.A,A=h.B-(c&h.D);0<d&&u<h.Z.length;)h.Z[u].Oa&&(h.Z[u].Oa=v=!1,h.Z[u].mj=!0),d-=A,A=h.B,u++;h=v}if(h){if(!k)return m;if(!a.ta){f-=e;if(0>f)return m;c+=f<<1;e+=f;g=e+1}}if(a.I){if(a.ra[a.I]){b=c;c=e;k=f=e=0;h=pu<<8;d=1048575;u=a.B.Uc&32;a.Ma>=lq&&(u=a.B.Dc[16]&8);v=a.ba-a.B.$d;u&&(k=$s<<8,d&=~k,a.Ba&2||(d&=~h));for(a.ta=0;b<p&&c<g;)u=Lc(a.oa,b),u|=h,u&k&&(a.ta++,u&=d),c==v&&(u|=a.Ba&1?vt<<8:0),
|
||||
a.Ga&&u===a.M[c]||(wt(a,c%a.D,c/a.D|0,u,a.Ea),a.M[c]=u,f++),b+=2,e++,c++;f&&a.Ea&&a.L.drawImage(a.Ca,0,0,a.ab,a.cb,a.Jc,a.Kc,a.sc,a.uc);tt(a)}}else{if(a.kc){b=c;m=p-b>>1;g=0;c=a.Qb;e=b;f=16==c?65536:196608;k=16==c?1:2;h=ht(a,k);v=d=0;u=a.D;A=0;var J=a.J,H=0;for(a.ta=0;e<p;){var G=Lc(a.oa,e);if(a.Ga&&G===a.M[g])d+=c;else{a.M[g]=G;G=G>>8|(G&255)<<8;var P=f,I=16;d<u&&(u=d);for(var oa=0;oa<c;oa++){var Z=(G&(P>>=k))>>(I-=k);st(a.Ka,d++,v,h[Z])}d>A&&(A=d);v<J&&(J=v);v>=H&&(H=v+1)}e+=2;g++;if(d>=a.D){d=
|
||||
0;v+=2;if(v>a.J)break;v==a.J&&(v=1,e=b+a.kc)}}u<a.D&&(a.Ea.putImageData(a.Ka,0,0,u,J,A-u,H-J),a.L.drawImage(a.Ca,0,0,a.D,a.J,0,0,a.Z,a.ka));a=m}else{if(a.Tc){m=0;g=p-c;e=ht(a,8);f=a.B.dd;h=k=0;d=a.D;v=0;u=a.J;A=0;J=a.B.be[4]&8?4:1;H=a.B.Dc[19]&15;G=a.La>a.D?a.La-a.D-H>>3:0;for(a.ta=0;c<p;){P=f[c-b];oa=4;H||(a.Ga&&P===a.M[m]?(k+=oa,oa=0):a.M[m]=P,m++);if(oa){k<d&&(d=k);for(I=0;I<oa;I++)st(a.Ka,k++,h,e[P&255]),P>>=8;k>v&&(v=k);h<u&&(u=h);h>=A&&(A=h+1)}c+=J;if(k>=a.D){k=0;if(++h>a.J)break;c+=G}}H&&(g=
|
||||
0)}else{m=0;g=p-c;e=ht(a);f=a.B.dd;h=k=0;d=a.D;v=0;u=a.J;A=0;J=a.B.Dc[19]&15;H=a.La>a.D?a.La-a.D-J>>3:0;for(a.ta=0;c<p;){G=c++-b;G=f[G];I=8;J?k?(P=a.D-k,I>P&&(I=P)):(G<<=J,I-=J,a.Ga=!1):(a.Ga&&G===a.M[m]?(k+=I,I=0):a.M[m]=G,m++);if(I){k<d&&(d=k);for(P=0;P<I;P++)oa=su[G&2155905152]||0,st(a.Ka,k++,h,e[oa]),G<<=1;k>v&&(v=k);h<u&&(u=h);h>=A&&(A=h+1)}if(k>=a.D){k=0;if(++h>a.J)break;c+=H}}J&&(g=0)}d<a.D&&(a.Ea.putImageData(a.Ka,0,0,d,u,v-d,A-u),a.L.drawImage(a.Ca,0,0,a.D,a.J,0,0,a.Z,a.ka));a=g}m=a}return m}
|
||||
function qu(a,b){var c=0;a=Jd(a.G)-b.th;0>a&&(b.th=a,a=-a|0);a%b.qh>b.hn&&(c|=1);a%b.rh>b.kn&&(c|=9);b.ci=a/b.rh|0;return c}l.wm=function(a,b){return tu(this,this.U,a,b)};l.ko=function(a,b,c){var d=this.U;d.Cg=d.gc;d.gc=b&31;t(this,a,b,c,"CRTC.INDX")};l.vm=function(a,b){return uu(this,this.U,a,b)};l.jo=function(a,b,c){vu(this,this.U,a,b,c)};l.xm=function(a,b){return wu(this,this.U,b)};l.lo=function(a,b,c){a=this.U;t(this,a.port+4,b,c,"MODE");a.Uc=b;ft(this,!1)};
|
||||
l.ym=function(a,b){return xu(this,this.U,b)};l.Hk=function(a,b,c){this.A.Lf=this.A.Lf&-4|b&3;t(this,a,b,c,"FEAT")};l.Rl=function(a,b){a=this.A.Bd;b&&!r(this)||t(this,960,null,b,"ATC.INDX",a);return a};l.kl=function(a,b){a=this.A.Dc[this.A.Bd&31];b&&!r(this)||t(this,960,null,b,"ATC."+this.A.Qg[this.A.Bd&31],a);return a};
|
||||
l.Gk=function(a,b,c){var d=this.A,e=d.Bd&32;if(d.Je){d.Je=!1;var f=d.Bd&31;if(16<=f||!e)if(yu||d.Dc[f]!==b)c&&!r(this)||t(this,a,b,c,"ATC."+d.Qg[f]),d.Dc[f]=b,mu(this,!1)}else d.Bd=b,t(this,a,b,c,"ATC.INDX"),d.Je=!0,b&32&&!e&&Ys(this,!0)&&Ps(this,!0),a=d.$a[Ar],a|=(d.$a[Br]&d.ag)<<8,d.$d!=a&&(d.$d=a,mu(this)),d.Ff=0};
|
||||
l.Im=function(a,b){a=0;if(this.Ma==lq)a=3-((this.A.$e&12)>>2),a=(this.Fb&1<<a)<<4-a;else{var c=this.A.Ze[0];45!=(c&63)&&2880!=(c&4032)&&184320!=(c&258048)&&(a|=16)}a|=this.A.Fg&-17;this.A.Fg=a;t(this,962,null,b,"STATUS0",a);return a};l.mo=function(a,b,c){this.A.$e=b;Xs(this);t(this,962,b,c,"MISC")};l.Jm=function(a,b){a=this.A.gi;t(this,963,null,b,"VGA_ENABLE",a);return a};l.uo=function(a,b,c){this.A.gi=b;t(this,963,b,c,"VGA_ENABLE")};
|
||||
l.Gm=function(a,b){a=this.A.Ed;t(this,964,null,b,"SEQ.INDX",a);return a};l.so=function(a,b,c){this.A.Ed=b;t(this,964,b,c,"SEQ.INDX")};l.Fm=function(a,b){a=this.A.be[this.A.Ed];b&&!r(this)||t(this,965,null,b,"SEQ."+this.A.Sg[this.A.Ed],a);return a};l.ro=function(a,b,c){if(yu||this.A.be[this.A.Ed]!==b)c&&!r(this)||t(this,965,b,c,"SEQ."+this.A.Sg[this.A.Ed]),this.A.be[this.A.Ed]=b;switch(this.A.Ed){case 2:this.A.kb=vs[b&15];break;case 4:yt(this,xt(this))&&Ps(this,!0)}};
|
||||
l.hm=function(a,b){a=this.A.Dg;b&&!r(this)||t(this,966,null,b,"DAC.MASK",a);return a};l.Sn=function(a,b,c){if(yu||this.A.Dg!==b)c&&!r(this)||t(this,966,b,c,"DAC.MASK"),this.A.Dg=b};l.im=function(a,b){a=this.A.Eg;b&&!r(this)||t(this,967,null,b,"DAC.STATE",a);return a};l.Tn=function(a,b,c){c&&!r(this)||t(this,967,b,c,"DAC.READ");this.A.ad=b;this.A.Eg=3;this.A.yc=0};l.Un=function(a,b,c){c&&!r(this)||t(this,968,b,c,"DAC.WRITE");this.A.ad=b;this.A.Eg=Or;this.A.yc=0};
|
||||
l.gm=function(a,b){a=this.A.Ze[this.A.ad]>>this.A.yc&63;b&&!r(this)||t(this,969,null,b,"DAC.DATA["+va(this.A.ad)+"]["+va(this.A.yc)+"]",a);this.A.yc+=6;12<this.A.yc&&(this.A.yc=0,this.A.ad=this.A.ad+1&Pr-1);return a};l.Rn=function(a,b,c){a=this.A.Ze[this.A.ad];c&&!r(this)||t(this,969,b,c,"DAC.DATA["+va(this.A.ad)+"]["+va(this.A.yc)+"]");b=a&~(63<<this.A.yc)|(b&63)<<this.A.yc;a!==b&&(this.A.Ze[this.A.ad]=b,mu(this,!1));this.A.yc+=6;12<this.A.yc&&(this.A.yc=0,this.A.ad=this.A.ad+1&Pr-1)};
|
||||
l.Km=function(a,b){a=this.A.Lf;t(this,970,null,b,"FEAT",a);return a};l.eo=function(a,b,c){this.A.Sk=b;t(this,970,b,c,"GRC2")};l.Lm=function(a,b){a=this.A.$e;t(this,972,null,b,"MISC",a);return a};l.co=function(a,b,c){this.A.Rk=b;t(this,972,b,c,"GRC1")};l.pm=function(a,b){a=this.A.Dd;t(this,974,null,b,"GRC.INDX",a);return a};l.bo=function(a,b,c){this.A.Dd=b;t(this,974,b,c,"GRC.INDX")};l.om=function(a,b){a=this.A.Cd[this.A.Dd];b&&!r(this)||t(this,975,null,b,"GRC."+this.A.Rg[this.A.Dd],a);return a};
|
||||
l.ao=function(a,b,c){if(yu||this.A.Cd[this.A.Dd]!==b)c&&!r(this)||t(this,975,b,c,"GRC."+this.A.Rg[this.A.Dd]),this.A.Cd[this.A.Dd]=b;switch(this.A.Dd){case 0:this.A.Ef=vs[b&15];this.A.Zd=this.A.Ef&~this.A.Md;break;case 1:this.A.Md=~vs[b&15];this.A.Zd=this.A.Ef&~this.A.Md;break;case 2:this.A.nh=vs[b&15]&-2139062144;break;case 3:case 5:yt(this,xt(this));break;case 4:this.A.bi=(b&3)<<3;break;case 6:ft(this,!1);break;case 7:this.A.oh=vs[b&15]&-2139062144;break;case 8:this.A.Db=b|b<<8|b<<16|b<<24}};
|
||||
l.am=function(a,b){return tu(this,this.K,a,b)};l.Mn=function(a,b,c){var d=this.K;d.Cg=d.gc;d.gc=b&31;t(this,a,b,c,"CRTC.INDX")};l.$l=function(a,b){return uu(this,this.K,a,b)};l.Ln=function(a,b,c){vu(this,this.K,a,b,c)};l.bm=function(a,b){return wu(this,this.K,b)};l.Nn=function(a,b,c){a=this.K;t(this,a.port+4,b,c,"MODE");a.Uc=b;ft(this,!1)};l.Zl=function(a,b){var c=this.K.Ye;b&&!r(this)||t(this,a,null,b,this.K.type+".COLOR",c);return c};
|
||||
l.Kn=function(a,b,c){c&&!r(this)||t(this,a,b,c,this.K.type+".COLOR");this.K.Ye!==b&&(this.K.Ye=b,mu(this,!1))};l.cm=function(a,b){return xu(this,this.K,b)};function tu(a,b,c,d){if(b.rc)var e=b.gc;t(a,c,null,d,"CRTC.INDX",e);return e}function uu(a,b,c,d){var e;b.rc&&b.gc<b.mh&&(e=b.$a[b.gc]);d&&!r(a)||t(a,c,null,d,"CRTC."+b.bg[b.gc],e);return e}
|
||||
function vu(a,b,c,d,e){if(b.gc<b.mh){if(yu||b.$a[b.gc]!==d)e&&!r(a)||t(a,c,d,e,"CRTC."+b.bg[b.gc]),b.$a[b.gc]=d;if(b.gc==Br||b.gc==Ar)qu(a,b),b.Ff=b.ci;(9==b.gc&&8!=b.Cg||b.gc==is&&223==d)&&ft(a,!0);gt(a)}}function wu(a,b,c){var d=b.Uc;t(a,b.port+4,null,c,"MODE",d);return d}function xu(a,b,c){var d=qu(a,b);b===a.A?(d|=b.ga&48^48,b.Je=!1):d=(b.ga^=9)|240;b.ga=d;t(a,b.port+6,null,c,b===a.A?"STATUS1":"STATUS",d);return d}
|
||||
var yu=!0,Mt=1,Ct=2,Us=3,Lt=5,Kt=6,Ws=7,Gt=13,Ht=14,At=15,Bt=16,It=17,Jt=18,Dt=19,Et=20,Ft=21,zt=255,Qs=60,ot=1,nt=3,Ds=ot,As=nt,lq=5,nq=7,ws={mda:[Ds,Ws],cga:[As,Us],ega:[lq,Us],vga:[nq,Us]},Ur={2:{ug:15700,tg:208,Ag:85,Bg:96}};Ur[Zl]={ug:18432,tg:364,Ag:85,Bg:96};Ur[4]={ug:21850,tg:364,Ag:85,Bg:96};Ur[7]={ug:16700,tg:480,Ag:85,Bg:83};var Vs={6:[1,Zl,!0],7:[2,Zl,!0],8:[6,Zl,!0],9:[4,Zl,!0],10:[Zl,1,!0],11:[Zl,2,!0],0:[1,Zl,!1],1:[2,Zl,!1],2:[6,Zl,!1],3:[4,Zl,!1],4:[Zl,1,!1],5:[Zl,2,!1]},xs=[];
|
||||
xs[Mt]=[40,25,1,0,nt];xs[Us]=[80,25,1,0,nt];xs[4]=[320,200,8,192];xs[Kt]=[640,200,16,192];xs[Ws]=[80,25,1,0,ot];xs[Gt]=[320,200,8];xs[Ht]=[640,200,8];xs[At]=[640,350,8];xs[Bt]=[640,350,8];xs[It]=[640,480,8];xs[Jt]=[640,480,8];xs[Dt]=[320,200,1];xs[Et]=[320,240,4];xs[Ft]=[320,400,4];xs[0]=xs[Mt];xs[Ct]=xs[Us];xs[Lt]=xs[4];
|
||||
var ct=0,at=7,et=8,bt=0,dt=112,$s=128,pu=256,vt=512,pt=[[0,0,0,255],[127,192,127,255],[127,192,127,255],[127,255,127,255],[127,255,127,255]],qt=[0,1,2,2,2,2,2,2,0,3,4,4,4,4,4,4],it=[[0,0,0,255],[0,0,170,255],[0,170,0,255],[0,170,170,255],[170,0,0,255],[170,0,170,255],[170,85,0,255],[170,170,170,255],[85,85,85,255],[85,85,255,255],[85,255,85,255],[85,255,255,255],[255,85,85,255],[255,85,255,255],[255,255,85,255],[255,255,255,255]],kt=[2,4,6],jt=[3,5,at],lt=[0,1,2,3,4,5,20,7,56,57,58,59,60,61,62,63],
|
||||
vs=[0,255,65280,65535,16711680,16711935,16776960,16777215,-16777216,-16776961,-16711936,-16711681,-65536,-65281,-256,-1],su=[0];su[128]=1;su[32768]=2;su[32896]=3;su[8388608]=4;su[8388736]=5;su[8421376]=6;su[8421504]=7;su[-2147483648]=8;su[-2147483520]=9;su[-2147450880]=10;su[-2147450752]=11;su[-2139095040]=12;su[-2139094912]=13;su[-2139062272]=14;su[-2139062144]=15;var wr=[];wr[Ds]=["MDA",948,720896,4096,0,Zl];wr[As]=["CGA",980,753664,16384,0,2];wr[lq]=["EGA",980,753664,16384,65536,4];
|
||||
wr[nq]=["VGA",980,753664,16384,262144,7];
|
||||
var ys=0,Ns=1,Ms=2,Ls=3,Ts=[[1036,1038,1033],[1037,1032,1039],[1035,1040,1034]],Bs={948:Q.prototype.wm,949:Q.prototype.vm,952:Q.prototype.xm,954:Q.prototype.ym},Cs={948:Q.prototype.ko,949:Q.prototype.jo,952:Q.prototype.lo},Es={980:Q.prototype.am,981:Q.prototype.$l,984:Q.prototype.bm,985:Q.prototype.Zl,986:Q.prototype.cm},Fs={980:Q.prototype.Mn,981:Q.prototype.Ln,984:Q.prototype.Nn,985:Q.prototype.Kn},Gs={960:Q.prototype.Rl,961:Q.prototype.kl,962:Q.prototype.Im,964:Q.prototype.Gm,965:Q.prototype.Fm,
|
||||
974:Q.prototype.pm,975:Q.prototype.om},Hs={954:Q.prototype.Hk,960:Q.prototype.Gk,961:Q.prototype.Gk,962:Q.prototype.mo,964:Q.prototype.so,965:Q.prototype.ro,970:Q.prototype.eo,972:Q.prototype.co,974:Q.prototype.bo,975:Q.prototype.ao,986:Q.prototype.Hk},Is={963:Q.prototype.Jm,966:Q.prototype.hm,967:Q.prototype.im,969:Q.prototype.gm,970:Q.prototype.Km,972:Q.prototype.Lm},Js={963:Q.prototype.uo,966:Q.prototype.Sn,967:Q.prototype.Tn,968:Q.prototype.Un,969:Q.prototype.Rn};
|
||||
cb(function(){for(var a=zb(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=Ab(c),e=document.createElement("canvas");if(void 0===e||!e.getContext){c.innerHTML="<br/>Missing <canvas> support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.height="auto";0<=Oa().indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,
|
||||
e,d.screenWidth,d.screenHeight),c.onresize(null));var f=+(Xa("aspect")||d.aspect);f&&.3<=f&&3.33>=f&&(bb("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");Ua("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d");d=new Q(d,e,g,f,c);yb(d,c)}});
|
||||
function zu(a){pb.call(this,"ParallelPort",a,4194304);this.H=a.adapter;switch(this.H){case 1:this.D=956;this.C=7;break;case 2:this.D=888;this.C=7;break;case 3:this.D=632;this.C=5;break;default:kb("Unrecognized parallel adapter #"+this.H);return}this.A=this.B=null;a=a.binding;"console"==a?this.B="":wb(this,a,Au)}ia(zu,pb);l=zu.prototype;l.Eb=function(a,b,c){switch(b){case Au:return this.ma[b]=this.A=c,!0}return!1};
|
||||
l.tc=function(a,b,c,d){this.oa=b;this.G=c;this.ca=d;this.V=ac(a,"ChipSet");Pc(b,this,Bu,this.D);Uc(b,this,Cu,this.D);Pb(this)};l.$b=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Zb=function(a){return a?this.save():!0};l.reset=function(){Du(this)};l.save=function(){var a=new ag(this),b=0,c=[];c[b++]=this.F;c[b++]=this.Pb;c[b]=this.kf;a.set(0,c);return a.data()};l.restore=function(a){return Du(this,a[0])};
|
||||
function Du(a,b){var c=0;void 0===b&&(b=[0,0,0]);a.F=b[c++];a.Pb=b[c++];a.kf=b[c];return!0}l.jm=function(a,b){var c=this.F;t(this,a,null,b,"DATA",c);return c};l.Hm=function(a,b){var c=this.Pb;t(this,a,null,b,"STAT",c);return c};l.fm=function(a,b){var c=this.kf;t(this,a,null,b,"CTRL",c);return c};
|
||||
l.Vn=function(a,b,c){t(this,a,b,c,"DATA");this.F=b;this.Pb|=Eu;a=!1;Tb(this,"transmitByte("+va(b)+")");this.A&&(8==b?this.A.value=this.A.value.slice(0,-1):(this.A.value+=String.fromCharCode(b),this.A.scrollTop=this.A.scrollHeight),a=!0);if(null!=this.B){if(10==b||1024<=this.B.length)this.O(this.B),this.B="";10!=b&&(this.B+=String.fromCharCode(b));a=!0}a&&(this.Pb&=~Eu);Fu(this)};l.Qn=function(a,b,c){t(this,a,b,c,"CTRL");this.kf=b;Fu(this)};
|
||||
function Fu(a){a.V&&a.C&&(a.kf&Gu&&!(a.Pb&Eu)?mh(a.V,a.C):Zg(a.V,a.C))}var Au="buffer",Eu=64,Gu=16,Bu={0:zu.prototype.jm,1:zu.prototype.Hm,2:zu.prototype.fm},Cu={0:zu.prototype.Vn,2:zu.prototype.Qn};cb(function(){for(var a=zb(document,"pcx86","parallel"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new zu(d);yb(d,c)}});
|
||||
function Hu(a){pb.call(this,"SerialPort",a,8388608);this.ha=a.adapter;switch(this.ha){case 1:this.ea=1016;this.N=4;break;case 2:this.ea=760;this.N=3;break;default:kb("Unrecognized serial adapter #"+this.ha);return}this.C=this.K=null;this.pa=a.tabSize||0;this.la=a.charBOL||0;this.L=this.qa=0;this.ra=Iu|Ju;this.P=!0;a=a.binding;"console"==a?this.K="":wb(this,a,Ku);this.H=this.ba=this.U=null;this.exports={connect:this.vj,receiveData:this.Xe,receiveStatus:this.jl}}ia(Hu,pb);l=Hu.prototype;
|
||||
l.Ti=function(a,b,c){var d=null;a!=this.ye||this.H||(this.H=b,this.U=c,this.P=!1,d=this);return d};l.Eb=function(a,b,c){var d=this;switch(b){case Ku:return this.ma[b]=this.C=c,this.C.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64<b&&(b-=64),d.Xe(b);return!0},this.C.onkeypress=function(a){a=a||window.event;d.Xe(a.which||a.keyCode);a.preventDefault&&a.preventDefault();return!0},this.C.removeAttribute("readonly"),!0}return!1};
|
||||
l.tc=function(a,b,c,d){this.na=a;this.oa=b;this.G=c;this.ca=d;var e=this;this.ta=Cd(this.G,this.id+".receive",function(){e.Xe()});this.wa=Cd(this.G,this.id+".transmit",function(){e.A=e.A|Lu|Mu});this.V=ac(a,"ChipSet");Pc(b,this,Nu,this.ea);Uc(b,this,Ou,this.ea);Pb(this)};
|
||||
l.vj=function(a){if(!this.H){var b=Bd(this.na,"connection");if(b){var c=b.split("->");if(2==c.length){var d=Da(c[0]);if(d!=this.ye)return;c=Da(c[1]);if(this.H=Cb(c)){var e=this.H.exports;if(e){var f=e.connect;f&&f.call(this.H,this.P);if(this.ba=e.receiveData){this.P=a;this.U=e.receiveStatus;this.status("Connected "+this.de+"."+d+" to "+c);return}}}}this.status("Unable to establish connection: "+b)}}};
|
||||
l.$b=function(a,b){if(!b)if(this.vj(this.P),!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Zb=function(a){return a?this.save():!0};l.reset=function(){Pu(this)};l.save=function(){var a=new ag(this),b=0,c=[];c[b++]=this.fa;c[b++]=this.ka;c[b++]=this.I;c[b++]=this.M;c[b++]=this.F;c[b++]=this.D;c[b++]=this.Z;c[b++]=this.A;c[b++]=this.B;c[b]=this.J;a.set(0,c);return a.data()};l.restore=function(a){return Pu(this,a[0])};
|
||||
function Pu(a,b){var c=0;void 0===b&&(b=[0,0,Qu,0,Ru,0,0,Lu|Mu,a.ra,[]]);a.fa=b[c++];a.ka=b[c++];a.I=b[c++];a.M=b[c++];a.F=b[c++];a.D=b[c++];a.Z=b[c++];a.A=b[c++];a.B=b[c++];a.J=b[c];return!0}l.Xe=function(a){if(null!=a)if("number"==typeof a)this.J.push(a);else if("string"==typeof a)for(var b=0;b<a.length;b++)this.J.push(a.charCodeAt(b));else this.J=this.J.concat(a);Su(this);return!0};
|
||||
l.jl=function(a){var b=this.B;this.B&=~(Iu|Ju);a&32&&(this.B=this.B|Iu|Tu);a&64&&(this.B=this.B|Ju|Uu);b!=this.B&&Vu(this)};function Su(a){0<a.J.length&&!(a.A&Wu)&&(a.fa=a.J.shift(),a.A|=Wu,a.J.length&&a.G&&Pd(a.G,a.ta,1E3/(1843200/((a.I||1)<<7))|0));Vu(a)}l.Em=function(a,b){var c=this.D&Xu?this.I&255:this.fa;t(this,a,null,b,this.D&Xu?"DLL":"RBR",c);this.A&=~Wu;Su(this);return c};l.qm=function(a,b){var c=this.D&Xu?this.I>>8:this.M;t(this,a,null,b,this.D&Xu?"DLM":"IER",c);return c};
|
||||
l.rm=function(a,b){var c=this.F;this.F|=Ru;t(this,a,null,b,"IIR",c);return c};l.sm=function(a,b){var c=this.D;t(this,a,null,b,"LCR",c);return c};l.um=function(a,b){var c=this.Z;t(this,a,null,b,"MCR",c);return c};l.tm=function(a,b){var c=this.A;t(this,a,null,b,"LSR",c);return c};l.zm=function(a,b){var c=this.B;this.B&=~(Tu|Uu);t(this,a,null,b,"MSR",c);return c};
|
||||
l.to=function(a,b,c){t(this,a,b,c,this.D&Xu?"DLL":"THR");if(this.D&Xu)this.I=this.I&-256|b;else{this.ka=b;this.A&=~(Lu|Mu);Tb(this,"transmitByte("+va(b)+")");this.ba&&this.ba.call(this.H,b);if(this.C){if(13==b)this.L=0;else if(8==b)this.C.value=this.C.value.slice(0,-1),0<this.L&&this.L--;else{var d;13!=b&&10!=b&&(d=Ea[b]);a=d=d?"<"+d+">":String.fromCharCode(b);c=a.length;32>b&&1==c&&(c=0);9==b&&(c=this.pa||8,c-=this.L%c,this.pa&&(a=Ca("",c)));!this.L&&c&&(10!=this.qa&&(a="\n"+a),this.la&&(a=String.fromCharCode(this.la)+
|
||||
a));this.C.value+=a;this.C.scrollTop=this.C.scrollHeight;this.L+=c}this.qa=b}else if(null!=this.K){if(10==b||1024<=this.K.length)this.O(this.K),this.K="";10!=b&&(this.K+=String.fromCharCode(b))}this.G&&Pd(this.G,this.wa,1E3/(1843200/((this.I||1)<<7))|0);Vu(this)}};l.fo=function(a,b,c){t(this,a,b,c,this.D&Xu?"DLM":"IER");this.D&Xu?this.I=this.I&255|b<<8:this.M=b};l.ho=function(a,b,c){t(this,a,b,c,"LCR");this.D=b};
|
||||
l.io=function(a,b,c){var d=b^this.Z;t(this,a,b,c,"MCR");this.Z=b;d&(Yu|Zu)&&this.U&&(a=0,this.P?(a|=b&Zu?32:0,a|=b&Yu?320:0):(a|=b&Zu?16:0,a|=b&Yu?1048576:0),this.U.call(this.H,a))};function Vu(a){var b=-1;a.A&Wu&&a.M&$u?b=av:a.A&Lu&&a.M&bv?b=cv:a.B&(Tu|Uu)&&a.M&dv&&(b=ev);0<=b?(a.F&=~(Ru|fv),a.F|=b,a.V&&a.N&&mh(a.V,a.N,100)):(a.F|=Ru,a.V&&a.N&&Zg(a.V,a.N))}
|
||||
var Ku="buffer",Qu=384,$u=1,bv=2,dv=8,Ru=1,av=4,cv=2,ev=0,fv=6,Xu=128,Yu=1,Zu=2,Wu=1,Lu=32,Mu=64,Tu=1,Uu=2,Iu=16,Ju=32,Nu={0:Hu.prototype.Em,1:Hu.prototype.qm,2:Hu.prototype.rm,3:Hu.prototype.sm,4:Hu.prototype.um,5:Hu.prototype.tm,6:Hu.prototype.zm},Ou={0:Hu.prototype.to,1:Hu.prototype.fo,3:Hu.prototype.ho,4:Hu.prototype.io};cb(function(){for(var a=zb(document,"pcx86","serial"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new Hu(d);yb(d,c)}});
|
||||
function gv(a){pb.call(this,"Mouse",a,16777216);this.V=a.serial||a.binding;this.Z=a.type||(this.V?hv:iv);this.U=this.Z==hv?"SerialPort":null;this.F=null;this.K=a.scaleMouse;this.rc=this.P=this.N=!1;this.H=[];this.D=[]}ia(gv,pb);l=gv.prototype;l.tc=function(a,b,c,d){this.na=a;this.oa=b;this.G=c;this.ca=d;this.K=Bd(a,"scaleMouse")||this.K;for(c=null;c=ac(a,"Video",c);)this.H.push(c);this.Z==iv&&(Pc(b,this,jv,kv),Uc(b,this,lv,kv));Pb(this)};
|
||||
l.$b=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(this.U&&!this.F){for(a=null;(a=ac(this.na,this.U,a))&&(!a.Ti||!(this.F=a.Ti(this.V,this,this.il))););if(this.F)for(this.D=[],a=0;a<this.H.length;a++)b=this.H[a],b.H=this,(b=b.F)&&this.D.push(b);else kb(this.id+": "+this.U+" "+this.V+" unavailable")}this.rc?mv(this):nv(this)}return!0};l.Zb=function(a){return a?this.save():!0};l.reset=function(){ov(this)};
|
||||
l.save=function(){var a=new ag(this),b=0,c=[];c[b++]=this.rc;c[b++]=this.A;c[b++]=this.B;c[b++]=this.I;c[b++]=this.J;c[b++]=this.L;c[b++]=this.M;c[b]=this.C;a.set(0,c);return a.data()};l.restore=function(a){return ov(this,a[0])};function ov(a,b){var c=0;void 0===b&&(b=[!1,-1,-1,0,0,!1,!1,0]);var d=b[c++];a.rc=d;a.A=b[c++];a.B=b[c++];a.I=b[c++];a.J=b[c++];a.L=b[c++];a.M=b[c++];a.C=b[c];a.C&(Yu|Zu)&&(a.C=(a.C&Yu?1048576:0)|(a.C&Zu?16:0));return!0}l.Gf=function(a){this.N=a};
|
||||
function mv(a){if(!a.P)for(var b=0;b<a.D.length;b++)pv(a,a.D[b])&&(a.P=!0)}function nv(a){if(a.P)for(var b=0;b<a.D.length;b++){var c=a.D[b];c&&(c.style.cursor="auto")}}function pv(a,b){return b?(b.addEventListener("mousemove",function(b){qv(a,b)},!1),b.addEventListener("mousedown",function(b){qv(a,b,!0)},!1),b.addEventListener("mouseup",function(b){qv(a,b,!1)},!1),b.style.cursor="none",!0):!1}
|
||||
function qv(a,b,c){if(void 0!==c){var d;!(d=!1!==a.N)&&(d=a.H.length)&&(d=a.H[0],d=d.Pd?d.ne(!0):!1);d||(a.N=null);a.Xd(b.button,c)}else{if(0>a.A||0>a.B)a.A=b.screenX,a.B=b.screenY;a.N?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.A,d=b.screenY-a.B);a.A=b.screenX;a.B=b.screenY;a.sf(c,d,a.A,a.B)}}
|
||||
l.Xd=function(a,b){if(this.rc&&this.G&&this.G.aa.Xa){var c="mouse button"+a+" "+(b?"dn":"up");switch(a){case Ss:if(this.L!=b){this.L=b;rv(this,c);return}break;case sv:if(this.M!=b){this.M=b;rv(this,c);return}}Tb(this,c+": ignored")}};
|
||||
l.sf=function(a,b,c,d){this.rc&&this.G&&this.G.aa.Xa&&(a=Math.round(Math.abs(a)*this.K)*Math.sign(a)||Math.sign(a),b=Math.round(Math.abs(b)*this.K)*Math.sign(b)||Math.sign(b),a||b)&&(r(this,16777216)&&Tb(this,"moveMouse("+a+","+b+")"),this.I=a,this.J=b,rv(this,null,c,d))};
|
||||
function rv(a,b,c,d){var e=64|(a.L?32:0)|(a.M?16:0)|(a.J&192)>>4|(a.I&192)>>6,f=a.I&63,g=a.J&63;r(a,8388608)&&Tb(a,(b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+va(e)+","+va(f)+","+va(g)+"]",0,!0);a.F.Xe([e,f,g]);a.I=a.J=0}
|
||||
l.il=function(a){var b=1048592==(a&1048592);if(b){if(!this.rc){var c=!1;this.C&16||(this.reset(),Tb(this,"serial mouse reset"),c=!0);this.C&1048576||(Tb(this,"serial mouse ID requested"),c=!0);c&&(this.F.Xe([tv,tv]),Tb(this,"serial mouse ID sent"));mv(this);this.rc=b}}else this.rc&&(Tb(this,"serial mouse inactive"),nv(this),this.rc=b);this.C=a};l.Xl=function(a,b){t(this,a,null,b,"DATA",0);return 0};l.Yl=function(a,b){t(this,a,null,b,"TPPI",0);return 0};
|
||||
l.Wl=function(a,b){t(this,a,null,b,"CTRL",0);return 0};l.Vl=function(a,b){t(this,a,null,b,"CPPI",0);return 0};l.In=function(a,b,c){t(this,a,b,c,"DATA")};l.Jn=function(a,b,c){t(this,a,b,c,"TPPI")};l.Hn=function(a,b,c){t(this,a,b,c,"CTRL")};l.Gn=function(a,b,c){t(this,a,b,c,"CPPI")};var iv="bus",hv="serial",Ss=0,sv=2,kv=572,jv={0:gv.prototype.Xl,1:gv.prototype.Yl,2:gv.prototype.Wl,3:gv.prototype.Vl},lv={0:gv.prototype.In,1:gv.prototype.Jn,2:gv.prototype.Hn,3:gv.prototype.Gn},tv=77;
|
||||
cb(function(){for(var a=zb(document,"pcx86","mouse"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new gv(d);yb(d,c)}});function uv(a,b,c){pb.call(this,"Disk",{id:a.de+".disk"+q(++vv,4)},2097152);this.controller=a;this.Da=a.Da;this.O=a.O;this.na=a.na;this.ca=a.ca;this.B=b;this.jd=b.name;this.Me=b.Me;this.kg=this.D=!1;this.create(c,b.sb,b.gb,b.Wa,b.Na);this.I=[];this.L=[];this.F=null;this.N=0;this.M=!1;Pb(this)}ia(uv,pb);l=uv.prototype;l.tc=function(a,b,c,d){this.ca=d};
|
||||
l.$b=function(a,b){b||!this.kg||this.D||(Pb(this,!1),this.load(this.jd,this.H,null,this.yl,this));return!0};l.yl=function(){Pb(this,!0)};
|
||||
l.Zb=function(a,b){if(this.D){var c,d=0;if(this.M&&!tb("Disk writes are still in progress, shut down anyway?"))return!1;for(;c=wv(this,!1);)if(d=c[0]){this.Da('Unable to save "'+this.jd+'" (error '+d+")");break}b&&this.D&&(b="action=close&volume="+this.H,b+="&machine="+xv(this.controller),b+="&user="+yv(this.controller),Ma(Na()+"/api/v1/disk?"+b,null,!0),this.D=!1);!d&&a&&this.Da(this.jd+" saved")}return!0};
|
||||
l.create=function(a,b,c,d,e){this.mode=a;this.sb=b;this.gb=c;this.Wa=d;this.Na=e;this.A=[];if("preload"!=this.mode){a=Array(this.sb);for(b=0;b<a.length;b++){c=Array(this.gb);for(d=0;d<c.length;d++){e=Array(this.Wa);for(var f=1;f<=e.length;f++)e[f-1]=zv(null,b,d,f,this.Na,"local"==this.mode?0:null);c[d]=e}a[b]=c}this.A=a}this.K=null};
|
||||
l.load=function(a,b,c,d,e){var f=b;if(this.J)return!0;this.jd=a;this.H=b;this.Gg=xa(b);var g=this;this.J=d;this.P=e||this.controller;if(c){var h=new FileReader;h.onload=function(){var a=h.result,b=a?a.byteLength:0,c=ma[b];if(c){g.sb=c[0];g.gb=c[1];g.Wa=c[2];g.Na=c[3]||512;var d=g.Na>>2;var e=c=0;a=new DataView(a,0,b);g.A=Array(g.sb);for(b=0;b<g.A.length;b++)for(var f=g.A[b]=Array(g.gb),k=0;k<f.length;k++)for(var G=f[k]=Array(g.Wa),P=0;P<G.length;P++){for(var I=zv(null,b,k,P+1,g.Na,0),oa=I.data,Z=
|
||||
0;Z<d;Z++,e+=4){var hb=oa[Z]=a.getInt32(e,!0);c=c+hb&-1}I.Nc=d;G[P]=I}g.K=c;d=g}else g.Da("Unrecognized disk format ("+b+" bytes)");g.J&&(g.J.call(g.controller,g.B,d,g.jd,g.H),g.J=null)};h.readAsArrayBuffer(c);return!0}0>b.indexOf("/api/v1/dump")&&(a=ya(b),"json"==a||"gz"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Av(this,b),this.kg=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):
|
||||
za(b,"/")&&(c="dir"),f=Na()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.Me?"":d)+"&format=json"));var k="Loading "+f+"...";return!!Ma(f,null,!0,function(a,b,c){Bv(g,a,b,c)},function(){g.O(k,Kb)})};
|
||||
function Bv(a,b,c,d){var e=null;a.Pe=!1;var f=!(!(0>d&&a.na)||a.na.aa.ac);if(a.kg)d?a.Da('Unable to connect to disk "'+a.H+'" (error '+d+": "+c+")",f):(a.D=!0,Cv(a),e=a);else if(d)a.Da('Unable to load disk "'+a.jd+'" (error '+d+": "+b+")",f);else{rb(a.controller.de,b,c);try{if(0<xa(a.Gg,!0).toLowerCase().indexOf("-readonly"))a.Pe=!0;else{var g=c.indexOf("\n");0<g&&1024>g&&0<c.substring(0,g).indexOf("write-protected")&&(a.Pe=!0)}var h;"<"==c.charAt(0)?h=["Missing disk image: "+a.jd]:h=0>c.indexOf("0x")&&
|
||||
'["'!=c.substr(0,2)?JSON.parse(c.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+c+")");if(h.length)if(1==h.length)kb(h[0]);else{a.sb=h.length;a.gb=h[0].length;a.Wa=h[0][0].length;var k=h[0][0][0];a.Na=k&&k.length||512;for(d=c=0;d<a.sb;d++)for(f=0;f<a.gb;f++)for(g=0;g<a.Wa;g++)if(k=h[d][f][g]){var m=k.length;void 0===m&&(m=k.length=512);m>>=2;var p=k.pattern;void 0===p&&(p=k.pattern=0);var v=k.data;if(void 0===v){var u=k.bytes;if(void 0!==u&&u.length){for(var A=m<<2,J=u.length;J<
|
||||
A;J++)u[J]=p;Dv(k,u,0)}else k.data=v=[],u&&(k.pattern=p|p<<8|p<<16|p<<24);delete k.bytes}zv(k,d,f);for(A=0;A<v.length;A++)c=c+v[A]&-1}a.A=h;a.K=c;Cv(a);e=a}else kb("Empty disk image: "+a.jd)}catch(H){kb("Disk image error ("+b+"): "+H.message)}}a.J&&(a.J.call(a.P,a.B,e,a.jd,a.H),a.J=null)}
|
||||
function Cv(a){var b,c={},d;if(a.C&&a.C.length){var e=a.A;for(b=0;b<e.length;b++)for(var f=0;f<e[b].length;f++)for(d=0;d<e[b][f].length;d++){var g=e[b][f][d];g&&(delete g.file,delete g.qn)}}a.C=[];c.If=c.rf=0;e=a.sb*a.gb*a.Wa*a.Na;a.D&&a.log("ignore any synchronous XMLHttpRequest warnings here (for now)");if(d=Ev(a,0)){c.Na=Fv(a,d,11,2);if(c.Na!=a.Na){f=!1;c.qf=1;c.sg=12;c.jh=c.qf+2;c.vf=1;c.Na=a.Na;if(163840==e&&254==Gv(a,c,0,0))c.rf=320,c.sh=64,f=!0;else if(327680==e&&255==Gv(a,c,0,0))c.rf=640,
|
||||
c.sh=112,c.vf++,f=!0;else for(b=446,e=0;4>e;e++){if(128==Fv(a,d,b+0,1)){c.If=Fv(a,d,b+8,4);(d=Ev(a,c.If))&&(f=!0);break}b+=16}if(!f)return}c.rf||(c.rf=Fv(a,d,19,2)||Fv(a,d,32,4),c.qf=Fv(a,d,14,2),c.jh=c.qf+Fv(a,d,22,2)*Fv(a,d,16,1),c.sh=Fv(a,d,17,2),c.vf=Fv(a,d,13,1));c.hh=c.jh+((32*c.sh+(c.Na-1))/c.Na|0);c.gn=(c.rf-c.hh)/c.vf|0;c.sg=4084>=c.gn?12:16;c.El=12==c.sg?4086:65526;e=[];for(d=c.jh;d<c.hh;d++)e.push(c.If+d);Hv(a,c,a.Gg,"",e);for(e=0;e<a.C.length;e++){c=a.C[e];for(d=b=0;d<c.ge.length;d++){var h=
|
||||
g=f=void 0,k=c.ge[d],m=b,p=a.gb*a.Wa,v=k%p,u=v/a.Wa|0;v%=a.Wa;(h=a.A[k/p|0])&&(g=h[u])&&(f=g[v])&&!f.file&&(f.file=c,f.qn=m);b+=a.Na}d=c;if((za(d.hc,".EXE")||za(d.hc,".DLL")||za(d.hc,".DRV"))&&Iv(d,Jv)==Kv&&Iv(d,Lv)==Mv&&(b=Iv(d,Nv),Iv(d,Ov,b)==Pv)){k=Iv(d,Qv,b);g=Iv(d,Rv,b);h=Iv(d,Sv,b);if(g&&k){c=d;f=g+b;g=k;h=h||0;k=1;c.fe=[];for(c.A=[];g--;){if(m=Tv(c,f)<<h)p=Tv(c,f+2)||65536,c.fe[k++]={rn:m,pn:m+p-1,jf:[]};f+=8}c.fe[254]={rn:0,pn:0,jf:[]}}g=Iv(d,Uv,b);h=Iv(d,Vv,b);if(g&&h)for(c=d,f=g+=b,g+=h,
|
||||
h=1;f<g;){m=Tv(c,f);k=m&255;if(!k)break;m>>=8;f+=2;if(m)for(;k--;)Tv(c,f,1),254>=m?(p=m,u=Tv(c,f+1),f+=3):(p=Tv(c,f+3,1),u=Tv(c,f+4),f+=6),c.fe[p]&&(c.fe[p].jf[h]=[u]),c.A[h]=[p,u],h++;else h+=k}(g=Iv(d,Wv,b))&&Xv(d,g+b);g=Iv(d,Yv,b);h=Iv(d,Zv,b);g&&h&&Xv(d,g,g+h)}}}}
|
||||
function Hv(a,b,c,d,e){var f=a.C.length,g=b.Na/32|0;b.qq=d+"\\";for(var h=0;h<e.length;h++)for(var k=e[h],m=0;m<g;m++){var p=a,v=b;var u=m;v.ce&&v.ei&&v.ei==k||(v.ei=k,v.ce=Ev(p,v.ei));if(v.ce){u*=32;var A=Fv(p,v.ce,u,1);if(0==A)u=!1;else{if(229==A)v.hc=null;else{v.hc=Da($v(p,v.ce,u+0,8));A=Da($v(p,v.ce,u+8,3));A.length&&(v.hc+="."+A);v.Tg=Fv(p,v.ce,u+11,1);v.Yi=Fv(p,v.ce,u+28,2);v.Dl=Fv(p,v.ce,u+26,2);u=v;A=[];var J=v.Dl;if(J){do{if(2>J)break;for(var H=v.hh+(J-2)*v.vf,G=0;G<v.vf;G++)A.push(v.If+
|
||||
H++);J=Gv(p,v,J,0)|Gv(p,v,J,1)}while(J<=v.El)}u.ge=A}u=!0}}else u=!1;if(!u){h=e.length;break}null!=b.hc&&"."!=b.hc&&".."!=b.hc&&(u=new aw(a,b.hc,b.Tg,b.Yi,b.ge),a.C.push(u))}for(e=a.C.length;f<e;f++)u=a.C[f],u.Tg&16&&u.ge.length&&Hv(a,b,c,d+"\\"+u.hc,u.ge)}function Gv(a,b,c,d){var e=0,f=8*b.Na;c=b.sg*c+(d?8:0);var g=c/f|0;b.ii&&b.ih&&b.ih==b.qf+g||(b.ih=b.qf+g,b.ii=Ev(a,b.If+b.ih));b.ii&&(c=c%f|0,e=Fv(a,b.ii,c>>3,1),d?e=16==b.sg?e<<8:c&7?e<<4:(e&15)<<8:c&7&&(e>>=4));return e}
|
||||
function Ev(a,b){var c=a.gb*a.Wa,d=b/c|0;return d<a.sb?(b%=c,a.seek(d,b/a.Wa|0,b%a.Wa+1)):null}function Fv(a,b,c,d){for(var e=0,f=0;d--;){var g=a.read(b,c++);if(0>g)break;e|=g<<f;f+=8}return e}function $v(a,b,c,d){for(var e="";d--;){var f=a.read(b,c++);if(0>=f)break;e+=String.fromCharCode(f)}return e}function zv(a,b,c,d,e,f){a||(a={sector:d,length:e,data:[],pattern:f});a.Fl=b;a.Gl=c;a.gd=a.Nc=0;a.Oa=!1;return a}
|
||||
function Av(a,b){b="action=open&volume="+b+("&mode="+a.mode);b+="&chs="+a.sb+":"+a.gb+":"+a.Wa+":"+a.Na;b+="&machine="+xv(a.controller);b+="&user="+yv(a.controller);return Na()+"/api/v1/disk?"+b}
|
||||
function bw(a,b,c,d,e,f,g){if(a.D){var h="action=read&volume="+a.H;h+="&chs="+a.sb+":"+a.gb+":"+a.Wa+":"+a.Na;h=h+("&addr="+b+":"+c+":"+d+":"+e)+("&machine="+xv(a.controller));h+="&user="+yv(a.controller);Ma(Na()+"/api/v1/disk?"+h,null,f,function(h,m,p){h=[b,c,d,e,f,g];var k=!1,u=h[0],A=h[1],J=h[2],H=h[3];if(!p){m=JSON.parse(m);for(k=0;H--;){var G=a.seek(u,A,J,!0);if(!G)break;Dv(G,m,k);k+=G.length;J++}k=h[4]}(h=h[5])&&h(p,k)})}else g&&g(-1,!1)}
|
||||
function cw(a,b,c,d,e,f,g){if(a.D){var h={};a.M=!0;h.action="write";h.volume=a.H;h.chs=a.sb+":"+a.gb+":"+a.Wa+":"+a.Na;h.addr=b+":"+c+":"+d+":"+e;h.machine=xv(a.controller);h.user=yv(a.controller);h.data=JSON.stringify(f);Ma(Na()+"/api/v1/disk",h,g,function(f,h,p){var k=[b,c,d,e,g];f=k[0];h=k[1];var m=k[2],A=k[3];k=k[4];a.M=!1;if(0<=f&&f<a.A.length&&0<=h&&h<a.A[f].length)for(--m;0<A--&&0<=m&&m<a.A[f][h].length;m++){var J=a.A[f][h][m];p?dw(a,J,!1):J.Oa||(J.gd=J.Nc=0)}k&&ew(a)})}return!1}
|
||||
function dw(a,b,c){b.Oa=!0;var d=a.I.indexOf(b);0<=d&&(a.I.splice(d,1),a.L.splice(d,1));a.I.push(b);a.L.push(La());c&&ew(a)}function ew(a){if(a.I.length){var b=a.L[0]+2E3;a.F&&a.N<b&&(clearTimeout(a.F),a.F=null);if(!a.F){var c=La();b-=c;0>b&&(b=0);2E3<b&&(b=2E3);a.F=setTimeout(function(){wv(a,!0)},b);a.N=c+b}}else a.F&&(clearTimeout(a.F),a.F=null)}
|
||||
function wv(a,b){b&&(a.F=null);var c=a.I[0];if(c){var d=c.Fl,e=c.Gl;c=c.sector;for(var f=0,g=[],h=c-1;h<a.A[d][e].length;h++){var k=a.A[d][e][h];if(!k.Oa)break;var m=a.I.indexOf(k);a.I.splice(m,1);a.L.splice(m,1);g=g.concat(fw(k));k.Oa=!1;f++}a=cw(a,d,e,c,f,g,b);return b||a}return!1}l.info=function(){return this.A.length?[this.A.length,this.A[0].length,this.A[0][0].length,this.A[0][0][0].length]:[0,0,0,0]};
|
||||
l.seek=function(a,b,c,d,e){var f=null,g=this.B,h=this.A[a];if(h){var k=h[b];if(!k&&g.Vg&&b<g.gb){k=h[b]=Array(g.Vd);for(h=0;h<k.length;h++)k[h]=zv(null,a,b,h+1,g.yb,0);this.gb<=b&&(this.gb=b+1)}if(k){for(h=0;h<k.length;h++)if(k[h]&&k[h].sector==c){f=k[h];if(null===f.pattern)if(d)f.pattern=0;else{for(d=1;++h<k.length;)null===k[h].pattern&&d++;bw(this,a,b,c,d,!!e,function(a,b){a&&(f=null);e&&e(f,b)});return e?null:f}break}!f&&g.Vg&&9==g.jb&&(f=k[h]=zv(null,a,b,g.jb,g.yb,0),this.Wa<g.jb&&(this.Wa=g.jb))}}e&&
|
||||
e(f,!1);return f};function Dv(a,b,c){for(var d=a.length>>2,e=Array(d),f=0;f<d;f++)e[f]=b[c]|b[c+1]<<8|b[c+2]<<16|b[c+3]<<24,c+=4;a.data=e}function fw(a){var b=a.length,c=Array(b),d=0;b>>=2;var e=a.data;a=a.pattern;for(var f=0;f<b;f++){var g=f<e.length?e[f]:a;c[d++]=g&255;c[d++]=g>>8&255;c[d++]=g>>16&255;c[d++]=g>>24&255}return c}l.read=function(a,b){var c=-1;if(a&&b<a.length){c=a.data;var d=b>>2;c=(d<c.length?c[d]:a.pattern)>>((b&3)<<3)&255}return c};
|
||||
l.write=function(a,b,c){if(this.Pe)return!1;if(b<a.length){if(c!=this.read(a,b,!0)){var d=a.data,e=a.pattern,f=b>>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Nc?f<a.gd?(a.Nc+=a.gd-f,a.gd=f):f>=a.gd+a.Nc&&(a.Nc+=f-(a.gd+a.Nc)+1):(a.gd=f,a.Nc=1);d[f]=d[f]&~(255<<b)|c<<b;this.D&&dw(this,a,!0)}return!0}return null};function gw(a){for(var b="",c=0,d;d=Ev(a,c++);)for(var e=0,f=d.length;e<f;e++)b+=String.fromCharCode(Fv(a,d,e,1));return btoa(b)}
|
||||
l.save=function(){var a=0,b=[];b[a++]=[this.H,this.K,this.sb,this.gb,this.Wa,this.Na];if(!this.D&&!this.Pe)for(var c=this.A,d=0;d<c.length;d++)for(var e=0;e<c[d].length;e++)for(var f=0;f<c[d][e].length;f++){var g=c[d][e][f];if(g&&g.Nc){for(var h=[],k=0,m=g.gd,p=g.gd+g.Nc;m<p;)h[k++]=g.data[m++];b[a++]=[d,e,f,g.gd,h]}}return b};
|
||||
l.restore=function(a){var b=0,c="unsupported restore format";if(a&&0<a.length){var d=0,e=a[d++];e&&2<=e.length&&(!this.A.length&&6<=e.length?this.create("local",e[2],e[3],e[4],e[5]):null!=e[0]&&null!=e[1]&&null!=this.K&&e[1]!=this.K&&(c="original checksum ("+e[1]+") differs from current checksum ("+this.K+")",b=-2));for(this.A.length||(b=-1);d<a.length&&0<=b;){var f=0,g=a[d++],h=g[f++],k=g[f++],m=g[f++];if(h>=this.A.length||k>=this.A[h].length||m>=this.A[h][k].length){c="sector (CHS="+h+":"+k+":"+
|
||||
m+") out of range ("+b+" changes applied)";b=-1;break}if(this.Pe){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.A[h][k][m]){for(k=h.data.length;k<e;)h.data[k++]=h.pattern;k=0;h.gd=e;for(h.Nc=f.length;e<g;)h.data[e++]=f[k++];b++}}}0>b?-2!=b&&this.Da("Unable to restore disk '"+this.jd+": "+c):Cv(this);return b};
|
||||
function hw(a){for(var b=0,c;c=Ev(a,b++);)iw(c);a=JSON.stringify(a.A,function(a,b){if("file"!=a)return b});a=a.replace(/,"length":512/g,"").replace(/,"pattern":0/g,"").replace(/,"data":\[]/g,"");a=a.replace(/"(sector|length|data|pattern)":/g,"$1:");a=a.replace(/,"[^"]*":([0-9]+|true|false)/g,"");return a=a.replace(/(sector|length|data|pattern):/g,'"$1":')}function iw(a){var b=a.data,c=b.length;if(c<<2==a.length){for(var d=c-1,e=b[d],f=0;d--&&b[d]===e;)f++;f++&&(b.length=c-f,a.pattern=e)}}var vv=0;
|
||||
function aw(a,b,c,d,e){this.va=a;this.hc=b;this.Tg=c;this.Yi=d;this.ge=e}function Tv(a,b,c){var d;c=c||2;var e=b&511,f=Ev(a.va,a.ge[b>>9]);if(f){if(e+c<=f.length)return Fv(a.va,f,e,c);for(e=d=0;c--;)d|=Tv(a,b++,1)<<e,e+=8}return d}function Iv(a,b,c){return Tv(a,b[0]+(c||0),b[1])}
|
||||
function Xv(a,b,c){for(var d=0;!c||b<c;){var e=Tv(a,b,1);if(!e)break;var f=a;var g=b+1,h=e,k="";for(h||(h=-1);h--;){var m=Tv(f,g++,1);if(!m)break;k+=String.fromCharCode(m)}f=k;if(!f)break;b+=1+e;if(d){if(e=Tv(a,b),g=a.A[e])g=g[0],a.fe[g]&&a.fe[g].jf[e].push(f)}else c||(a.hi=f);b+=2;d++}}var Kv=23117,Jv=[0,2],Lv=[24,2],Nv=[60,4],Mv=64,Pv=17742,Ov=[0,2],Uv=[4,2],Vv=[6,2],Qv=[28,2],Zv=[32,2],Rv=[34,2],Wv=[38,2],Yv=[44,4],Sv=[50,2];
|
||||
function jw(a){pb.call(this,"FDC",a,524288);this.dmaRead=jw.prototype.cl;this.dmaWrite=jw.prototype.dl;this.dmaFormat=jw.prototype.ul;this.M=kw(a.autoMount);this.J=a.sortBy||"name";"none"==this.J&&(this.J=null);this.B=[];this.L=!Ua("Mobi")&&window&&"FileReader"in window;this.exports={loadDisk:this.Bj,wait:this.Zo}}ia(jw,pb);l=jw.prototype;
|
||||
l.Eb=function(a,b,c){var d=this;switch(b){case "listDisks":this.ma[b]=c;if(this.J){b=[];for(a=0;a<c.options.length;a++)b.push(c.options[a]);b.sort(function(a,b){return"path"!=d.J?a.text.localeCompare(b.text):a.value.localeCompare(b.value)});for(a=0;a<b.length;a++)try{c.options[a]=b[a]}catch(e){break}}c.onchange=function(){lw(d)};return!0;case "descDisk":case "listDrives":return this.ma[b]=c,c.onchange=function(){var a=qa(c.value,10);null!=a&&mw(d,a)},!0;case "loadDisk":return this.ma[b]=c,c.onclick=
|
||||
function(){d.Bj()},!0;case "saveDisk":if(!this.L){c.parentNode.removeChild(c);break}this.ma[b]=c;c.onclick=function(){var a=d.ma.listDrives;a&&a.options&&d.A&&((a=d.A[qa(a.value,10)||0])?(a=a.va)?(a=Za(gw(a),"octet-stream",!0,a.Gg.replace(".json",".img")),kb(a)):d.Da("No diskette loaded in drive."):d.Da("No diskette drive selected."))};return!0;case "mountDisk":if(this.L)return this.ma[b]=c,c.onchange=function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length},c.onsubmit=function(a){if(a=
|
||||
a.currentTarget[1].files[0]){var b=a.name;nw(d,xa(b,!0),b,a)}return!1},!0;c.parentNode.removeChild(c)}return!1};l.tc=function(a,b,c,d){this.oa=b;this.G=c;this.ca=d;this.na=a;this.V=ac(a,"ChipSet");kw(Bd(this.na,"autoMount"),this.M);ow(this);Pc(b,this,pw);Uc(b,this,qw);rw(this,"None","",!0);this.L&&rw(this,"Local Disk","?");rw(this,"Remote Disk","??");sw(this)||Pb(this)};
|
||||
function kw(a,b){if(a){if("string"==typeof a)try{a=eval("("+a+")")}catch(d){kb("FDC auto-mount error: "+d.message+" ("+a+")"),a={}}}else a={};for(var c in a)b&&(b[c]=a[c]);return a}
|
||||
l.$b=function(a,b){if(!b){if(!a){if(this.reset(),this.na.Z){this.B=[];for(a=0;a<this.A.length;a++)tw(this,a,!0);sw(this,!0)}}else if(!this.restore(a))return!1;if(a=this.ma.listDrives){for(;a.firstChild;)a.removeChild(a.firstChild);a.value="";for(b=0;b<this.N;b++){var c=document.createElement("option");c.value=b;c.text=String.fromCharCode(65+b)+":";a.appendChild(c)}0<this.N&&(a.value="0",mw(this,0))}}return!0};l.Zb=function(a){return a?this.save():!0};l.reset=function(){ow(this)};
|
||||
l.save=function(){var a=new ag(this);a.set(0,uw(this));return a.data()};l.restore=function(a){return ow(this,a[0])};
|
||||
function ow(a,b){var c=0,d=!0;b||(b=[0,0,vw,Array(9),0,0,0,[]]);a.Ya=b[c++];c++;a.ga=b[c++];a.F=b[c++];a.D=b[c++];a.C=b[c++];a.I=b[c++];var e=b[c++];var f=b[c++];null!=f&&(a.B=f);void 0===a.A&&(a.N=4,a.V&&(a.N=+Yl(a.V,ll,void 0)),a.A=Array(4));for(f=0;f<a.A.length;f++){var g=a.A[f];if(void 0===g){g=a.A[f]={};if(a.V)a:{var h=a.V;if(f<+Yl(h,ll,void 0)){if(!h.L){h=360;break a}if(f<h.L.length){h=h.L[f];break a}}h=0}else h=0;switch(h){case 160:case 180:g.gb=1;default:g.sb=40;g.Wa=9;break;case 720:g.sb=
|
||||
80;g.Wa=9;break;case 1200:g.sb=80;g.Wa=15;break;case 1440:g.sb=80,g.Wa=18}}var k=a,m=f,p=e[f],v=0;h=!0;g.Ya=m;g.le=g.Le=!1;g.Qe=null;void 0===p&&(p=[ww,!0,0,2,0]);"boolean"==typeof p[1]&&(p[1]=[xw,g.sb||40,g.gb||p[3],g.Wa||9,g.Na||512,p[1],g.rg,g.xf,g.yf]);g.tb=p[v++];var u=p[v++];g.name=u[0];g.sb=u[1];g.gb=u[2];g.Wa=u[3];g.Na=u[4];g.Me=u[5];(g.rg=u[6])?(g.xf=u[7],g.yf=u[8]):(g.rg=g.sb,g.xf=g.gb,g.yf=g.Wa);g.bb=p[v++];g.Ud=p[v++];g.Ib=p[v++];g.Ud=100<=g.Ud?g.Ud-100:g.Ud-g.Ib;g.jb=p[v++];g.Vd=p[v++];
|
||||
g.yb=p[v++];g.Va=p[v++];g.hb=null;g.va||(g.ue="");var A=p[v++];102==A&&(A=!1);"boolean"==typeof A?(u=p[v++],p=p[v],A?(v=k.A[m],tw(k,m,!0,!0),v.Le=!0,m=new uv(k,v,"preload"),k.ij(v,m,u,p,!0)):yw(k,m,u,p,!0)?g.va&&p&&zw(k,u,p,g.va):Pb(k,!1)):void 0!==A&&g.va&&0>g.va.restore(A)&&(h=!1);h&&g.va&&void 0!==g.Va&&(g.hb=g.va.seek(g.Ib,g.bb,g.jb));h||(d=!1)}a.H=b[c++]||0;a.bc=b[c]||Aw;return d}
|
||||
function uw(a){var b=0,c=[];c[b++]=a.Ya;c[b++]=0;c[b++]=a.ga;c[b++]=a.F;c[b++]=a.D;c[b++]=a.C;c[b++]=a.I;for(var d=b++,e=0,f=[],g=0;g<a.A.length;g++){var h=e++,k=a.A[g],m=0,p=[];p[m++]=k.tb;p[m++]=[k.name,k.sb,k.gb,k.Wa,k.Na,k.Me,k.rg,k.xf,k.yf];p[m++]=k.bb;p[m++]=k.Ud+100;p[m++]=k.Ib;p[m++]=k.jb;p[m++]=k.Vd;p[m++]=k.yb;p[m++]=k.Va;p[m++]=k.Le;p[m++]=k.Uk;p[m]=k.ue;f[h]=p}c[d]=f;d=b++;for(e=0;e<a.A.length;e++)f=a.A[e],f.va&&Bw(a,f.ue,f.va);c[d]=a.B;c[b++]=a.H;c[b]=a.bc;return c}
|
||||
l.dj=function(a){a=this.A[a];if(void 0!==a){var b={};for(var c in a)b[c]=a[c]}return b};l.Vk=function(a,b,c){if(a.va){var d=a.va.info(),e=d[2],f=d[1]*e;if(b+c<=d[0]*f)return a.Ib=Math.floor(b/f),b%=f,a.bb=Math.floor(b/e),a.jb=b%e+1,a.yb=c*d[3],a.tb=Cw,!0}return!1};
|
||||
function sw(a,b){b||(a.K=0);for(var c in a.M){var d=a.M[c],e;if(!(e=d.path))a:{if(e=d.name){var f=a.ma.listDisks;if(f&&f.options)for(var g=0;g<f.options.length;g++){var h=f.options[g];if(h.text==e){e=h.value;break a}}}e=""}e&&(f=c.charCodeAt(0)-65,0<=f&&f<a.A.length?!yw(a,f,d.name||Dw(a,e)||xa(e,!0),e,!0)&&b&&Pb(a,!1):a.Da("Incorrect auto-mount settings for drive "+c+" ("+JSON.stringify(d)+")"))}return!!a.K}
|
||||
l.Bj=function(){var a=this.ma.listDisks;return a?nw(this,a.options[a.selectedIndex].text,a.value):!1};
|
||||
function nw(a,b,c,d){var e,f=a.ma.listDrives;if(f&&!isNaN(e=qa(f.value,10))&&0<=e&&e<a.A.length){if(!c)return tw(a,e),!0;if("?"==c)return a.Da('Use "Choose File" and "Mount" to select and load a local disk.'),!1;if("??"==c){c=window.prompt("Enter the URL of a remote disk image.","")||"";if(!c)return!1;b=xa(c)}for(;0>yw(a,e,b,c,!1,d);){if(!window.confirm("Click OK to reload the original disk and discard any changes."))return!1;var g=a,h=c;for(f=0;f<g.B.length;f++)if(g.B[f][1]==h){g.B.splice(f,1);break}tw(a,
|
||||
e,!1,!0)}return!0}a.Da("Unable to load the selected drive");return!1}function yw(a,b,c,d,e,f){var g=a.A[b];if(d&&(d=d.replace("/disks/pc/","/disks/pcx86/"),g.ue.toLowerCase()!=d.toLowerCase())){tw(a,b,e,!0);if(g.le)return a.Da("Drive "+b+" busy"),0;g.le=!0;e&&(g.ke=!0,a.K++,r(a)&&Tb(a,"loading diskette '"+c+"'"));g.Le=!!f;return(new uv(a,g,"preload")).load(c,d,f,a.ij)?1:0}return-1}
|
||||
l.ij=function(a,b,c,d,e){a.le=!1;if(b){var f=b.info();if(b&&f[0]>a.sb||f[1]>a.gb)this.Da('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.Ya)),b=null}b?(a.va=b,a.Uk=c,a.ue=d,Dw(this,d)||rw(this,c,d),zw(this,c,d,b),f=b.info(),this.H|=Ew,a.Qe||this.Da('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.Ya),a.ke||e),a.rg=f[0],a.xf=f[1],a.yf=f[2],this.na&&this.na.cd()):a.Le=!1;a.ke&&(a.ke=!1,--this.K||Pb(this));mw(this,a.Ya);a.Qe&&(a.Qe(),a.Qe=null)};
|
||||
function rw(a,b,c,d){if((a=a.ma.listDisks)&&a.options){for(var e=0;e<a.options.length;e++)if(a.options[e].value==c)return;e=document.createElement("option");e.text=b;e.value=c;d&&a.childNodes[0]?a.insertBefore(e,a.childNodes[0]):a.appendChild(e)}}function Dw(a,b){if((a=a.ma.listDisks)&&a.options)for(var c=0;c<a.options.length;c++){var d=a.options[c];if(d.value==b)return d.text}return null}
|
||||
function mw(a,b){if(0<=b&&b<a.A.length){var c=a.A[b],d=a.ma.listDisks;a=a.ma.listDrives;if(d&&a&&d.options&&a.options&&(a=qa(a.value,10),c=c.Le?"?":c.ue,!isNaN(a)&&a==b)){for(b=0;b<d.options.length;b++)if(d.options[b].value==c){d.selectedIndex!=b&&(d.selectedIndex=b);break}b==d.options.length&&(d.selectedIndex=0)}}}
|
||||
function lw(a){var b=a.ma.listDisks,c=a.ma.descDisk,d=b.options[b.selectedIndex];if(c&&d){b={};if(d=d.getAttribute("data-value"))try{b=eval("("+d+")")}catch(e){kb(a.type+" option error: "+e.message)}a=b.desc;void 0===a&&(a="");b=b.href;void 0!==b&&(a='<a href="'+b+'" target="_blank">'+a+"</a>");c.innerHTML=a}}l.Zo=function(a){for(var b=0;b<this.A.length;b++){var c=this.A[b];if(c&&c.le)return c.Qe||(c.Qe=a),!1}return!0};
|
||||
function tw(a,b,c,d){var e=a.A[b];e.va&&(Bw(a,e.ue,e.va),e.Uk="",e.ue="",e.va=null,e.Le=!1,a.H|=Ew,d||a.Da("Drive "+String.fromCharCode(65+b)+" unloaded",c),c||d||mw(a,b))}function zw(a,b,c,d){var e;for(e=0;e<a.B.length;e++)if(a.B[e][1]==c){d.restore(a.B[e][2]);return}a.B[e]=[b,c,[]]}function Bw(a,b,c){var d;for(d=0;d<a.B.length;d++)if(a.B[d][1]==b){a.B[d][2]=c.save();break}}l.Yn=function(a,b,c){t(this,a,b,c,"OUTPUT");b&Fw?this.I&Fw||this.I&Gw&&this.V&&mh(this.V,6):ow(this);this.I=b};
|
||||
l.lm=function(a,b){t(this,a,null,b,"DIAG",80);return 80};l.nm=function(a,b){t(this,a,null,b,"STATUS",this.ga);return this.ga};l.km=function(a,b){var c=0;this.D<this.C&&(c=this.F[this.D]);this.I&Gw&&this.V&&Zg(this.V,6);r(this)&&t(this,a,null,b,"DATA["+this.D+"]",c);++this.D>=this.C&&(this.ga&=~(Hw|Iw),this.D=this.C=0);return c};
|
||||
l.Xn=function(a,b,c){r(this)&&t(this,a,b,c,"DATA["+this.C+"]");this.C<this.F.length&&(this.F[this.C++]=b);a=this.F[0]&Jw;if(void 0!==Kw[a]&&this.C>=Kw[a].Jd){b=!1;this.D=0;a=Lw(this);var d=a&Jw;switch(d){case Mw:Lw(this);Lw(this);Nw(this);break;case Ow:c=Lw(this);this.Ya=c&3;var e=this.A[this.Ya];Nw(this);Pw(this,(e.tb&Qw)>>>24);break;case Rw:case Sw:c=Lw(this);b=c>>2&1;this.Ya=c&3;e=this.A[this.Ya];e.bb=b;c=e.Ib=Lw(this);var f=Lw(this);var g=e.jb=Lw(this);var h=Lw(this);e.yb=128<<h;e.Vd=Lw(this);
|
||||
Lw(this);Lw(this);d==Sw?(d=e,d.tb=Tw|Uw,d.va&&(d.hb=null,d.tb=Cw,this.V&&(Sn(this.V,2,this,"dmaRead",d),Jn(this.V,2)))):(d=e,d.tb=Tw|Uw,d.va&&(d.va.Pe?d.tb=Vw|Uw:(d.hb=null,d.tb=Cw,this.V&&(Sn(this.V,2,this,"dmaWrite",d),Jn(this.V,2)))));Ww(this,e,a,b,c,f,g,h);b=!0;break;case Xw:c=Lw(this);this.Ya=c&3;e=this.A[this.Ya];e.Ib=e.Ud=0;e.tb=Yw|Zw;Nw(this);b=!0;break;case $w:e=this.A[this.Ya];e.bb=0;Nw(this);Pw(this,e.Ya|e.bb<<2|e.tb&ax);Pw(this,e.Ib);this.Ya=this.Ya+1&3;break;case bx:c=Lw(this);b=c>>2&
|
||||
1;this.Ya=c&3;e=this.A[this.Ya];c=e.Ib;f=e.bb=b;g=e.jb=1;h=0;e.tb=Cw;e.va&&(e.hb=e.va.seek(e.Ib,e.bb,e.jb))?h=e.hb.length>>8:e.tb=Tw|Uw;Ww(this,e,a,b,c,f,g,h);b=!0;break;case cx:c=Lw(this);b=c>>2&1;this.Ya=c&3;e=this.A[this.Ya];c=e.Ib;f=e.bb=b;g=1;h=Lw(this);e.yb=128<<h;e.Vd=Lw(this);Lw(this);e.Ui=Lw(this);d=e;d.tb=Tw|Uw;d.va&&(d.hb=null,d.tb=Cw,this.V&&(d.He=0,d.Xc=Array(4),d.Vg=!0,d.eg=0,Sn(this.V,2,this,"dmaFormat",d),Jn(this.V,2),d.Vg=!1));Ww(this,e,a,b,c,f,g,h);b=!0;break;case dx:c=Lw(this),
|
||||
this.Ya=c&3,e=this.A[this.Ya],e.bb=c>>2&1,c=Lw(this),e.Ib+=c-e.Ud,0>e.Ib&&(e.Ib=0),e.Ib>=e.sb&&(e.Ib=e.sb-1),e.Ud=c,e.tb=Yw,e.Ib||(e.tb|=Zw),Nw(this),b=!0}0<this.C&&(this.ga=this.ga|Hw|Iw);this.I&Gw&&(!e||e.tb&Tw||!b||this.V&&mh(this.V,6))}};l.mm=function(a,b){var c=this.H;this.H&=~Ew;t(this,a,null,b,"INPUT",c);return c};l.Wn=function(a,b,c){t(this,a,b,c,"CONTROL");this.bc=b};
|
||||
function Ww(a,b,c,d,e,f,g,h){Nw(a);Pw(a,b.Ya|b.bb<<2|b.tb&ax);Pw(a,(b.tb&ex)>>>8);Pw(a,(b.tb&fx)>>>16);var k=0;if(e!=b.Ib||f!=b.bb)k=g=1;c&gx&&(f^=k,d||(k=0));Pw(a,e+k);Pw(a,f);Pw(a,g);Pw(a,h)}function Lw(a){var b=a.F[a.D];a.D++;return b}function Nw(a){a.D=a.C=0}function Pw(a,b){a.F[a.C++]=b}l.cl=function(a,b,c){void 0===b||0>b?this.te(a,c):c(-1,!1)};l.dl=function(a,b){return void 0!==b&&0<=b?hx(a,b):-1};
|
||||
l.ul=function(a,b){if(void 0!==b&&0<=b)a:if(a.tb)a=-1;else{a.Xc[a.He++]=b;if(a.He==a.Xc.length){a.Ib=a.Xc[0];a.bb=a.Xc[1];a.jb=a.Xc[2];a.yb=128<<a.Xc[3];for(var c=a.He=0;c<a.yb;c++)if(0>hx(a,a.Ui)){a=-1;break a}a.eg++}a.eg>=a.Vd&&(b=-1);a=b}else a=-1;return a};l.te=function(a,b){var c=-1,d=null,e=0;if(!a.tb&&a.va){do{if(a.hb&&(e=a.Va,0<=(c=a.va.read(a.hb,a.Va++)))){d=a.hb;break}a.hb=a.va.seek(a.Ib,a.bb,a.jb);if(!a.hb){a.tb=ix|Uw;break}a.Va=0;jx(a)}while(1)}b(c,!1,d,e)};
|
||||
function hx(a,b){if(a.tb||!a.va)return-1;do{if(a.hb&&a.va.write(a.hb,a.Va++,b))break;a.hb=a.va.seek(a.Ib,a.bb,a.jb);if(!a.hb){a.tb=kx|Uw;b=-1;break}a.Va=0;jx(a)}while(1);return b}function jx(a){a.jb++;a.jb>=a.yf+1&&(a.jb=1,a.bb++,a.bb>=a.xf&&(a.bb=0,a.Ib++))}var xw="Floppy Drive",Fw=4,Gw=8,Iw=16,Hw=64,vw=128,Mw=3,Ow=4,Rw=5,Sw=6,Xw=7,$w=8,bx=10,cx=13,dx=15,Jw=31,gx=128,Cw=0,Tw=8,Yw=32,Uw=64,ww=192,ax=255,Vw=512,ix=1024,kx=8192,ex=65280,fx=16711680,Zw=268435456,Qw=-16777216,Ew=128,Aw=0;aa={};
|
||||
var Kw={3:{Jd:3,Wd:0,name:aa.eq},4:{Jd:2,Wd:1,name:aa.bq},5:{Jd:9,Wd:7,name:aa.iq},6:{Jd:9,Wd:7,name:aa.Yp},7:{Jd:2,Wd:0,name:aa.$p},8:{Jd:1,Wd:2,name:aa.cq},10:{Jd:2,Wd:7,name:aa.Zp},13:{Jd:6,Wd:7,name:aa.Vp},15:{Jd:3,Wd:0,name:aa.aq}},pw={1009:jw.prototype.lm,1012:jw.prototype.nm,1013:jw.prototype.km,1015:jw.prototype.mm},qw={1010:jw.prototype.Yn,1013:jw.prototype.Xn,1015:jw.prototype.Wn};
|
||||
cb(function(){for(var a=zb(document,"pcx86","fdc"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new jw(d);yb(d,c)}});function lx(a){pb.call(this,"HDC",a,1048576);this.dmaRead=lx.prototype.el;this.dmaWrite=lx.prototype.fl;this.dmaWriteBuffer=lx.prototype.vl;this.dmaWriteFormat=lx.prototype.wl;this.Z=[];this.ka=a.drives;this.M=(a=a.type)&&"AT"==a.toUpperCase()||!1;this.wa=!Ua("Mobi")&&window&&"FileReader"in window}ia(lx,pb);l=lx.prototype;
|
||||
l.Eb=function(a,b,c){var d=this;switch(b){case "saveHD0":case "saveHD1":if(this.wa)return this.ma[b]=c,c.onclick=function(a){return function(){var b=d.A&&d.A[a];if(b&&b.va){b=b.va;var c=b.Gg||b.jd,e=c.lastIndexOf(".");0<=e&&(c=c.substr(0,e));c+=".img";b=Za(gw(b),"octet-stream",!0,c);kb(b)}else d.Da("Hard drive "+a+" is not available.")}}(+b.slice(-1)),!0;c.parentNode.removeChild(c)}return!1};
|
||||
l.tc=function(a,b,c,d){this.oa=b;this.G=c;this.ca=d;this.na=a;if(d=Bd(a,"drives"))this.Z=d;else if(this.ka)try{this.Z=eval("("+this.ka+")")}catch(e){kb("HDC drive configuration error: "+e.message+" ("+this.ka+")")}this.V=ac(a,"ChipSet");this.H=0;this.la=3;Pc(b,this,this.M?mx:nx);Uc(b,this,this.M?ox:px);this.M&&(this.H++,this.V&&this.V.da==zl&&this.H++,this.la=2,b.V[qx]=2,b.U[qx]=2);Wf(c,19,this.Pm.bind(this));Wf(c,64,this.Qm.bind(this));this.reset();rx(this)||Pb(this)};
|
||||
l.$b=function(a,b){if(!b)if(!a)sx(this),this.na.Z&&rx(this,!0);else if(!this.restore(a))return!1;return!0};l.Zb=function(a){return a?this.save():!0};function xv(a){return a.na?a.na.ta:""}function yv(a){return a.na?a.na.B||"":""}l.reset=function(){sx(this,null,!0)};l.save=function(){var a=new ag(this);a.set(0,tx(this));return a.data()};l.restore=function(a){return sx(this,a[0])};
|
||||
function sx(a,b,c){var d=0,e=!0;a.Ya=-1;if(a.M){if(b||(b=[0,0,0,0,0,0,0,ux,0,[0,-1]]),a.I=b[d++],a.ta=b[d++],a.J=b[d++],a.fa=b[d++],a.ea=b[d++],a.ba=b[d++],a.U=b[d++],a.ga=b[d++],a.ha=b[d++],a.L=b[d++],"object"==typeof a.L){var f=a.L;a.L=f[0];a.Ya=f[1]}}else b||(b=[0,vx,Array(14),0,0]),a.P=b[d++],a.ga=b[d++],a.F=b[d++],a.D=b[d++],a.C=b[d++],a.ra=b[d++],a.pa=b[d++],a.qa=b[d++],f=b[d++],void 0!==f?a.N=f:void 0===a.N&&(a.N=-1);void 0===a.A&&(a.A=Array(a.Z.length));b=b[d];void 0===b&&(b=[]);for(d=0;d<
|
||||
a.A.length;d++){void 0===a.A[d]&&(a.A[d]={});f=a.A[d];var g=a,h=d,k=f,m=a.Z[d],p=b[d],v=c,u=0,A=!0;void 0===p&&(p=[wx,0,!1,Array(8)]);k.Ya=h;k.errorCode=p[u++];k.Wk=p[u++];k.Me=p[u++];k.Ce=p[u++];k.De=p[u++];k.bb=p[u++];k.gb=p[u++];k.Od=p[u++];k.jb=p[u++];k.Vd=p[u++];k.yb=p[u++];k.dg=g.M?0:1;k.name=m.name;void 0===k.name&&(k.name=xx);k.path=m.path;k.mode=m.mode||(k.path?"preload":"local");"demandro"!=k.mode&&"demandrw"!=k.mode||yv(g)||(k.mode="local");k.type=m.type;if(void 0===k.type||void 0===yx[g.H][k.type])k.type=
|
||||
g.la;m=yx[g.H][k.type];k.Wa=m[2]||17;k.Na=m[3]||512;if(v&&g.V){var J=g.V;m=k.type;if(J.A){v=null;var H=J.A[18];15<m&&(v=m,m=15);h?(H=H&240|m,m=26):(H=H&15|m<<4,m=25);var G=J;G.A&&(G.A[18]=H,pm(G));null!=v&&J.A&&(J.A[m]=v,pm(J))}}void 0===k.va&&(k.va=null,g.Da("Type "+k.type+' "'+k.name+'" is fixed disk '+h,!0));zx(g,k);k.Va=p[u++];k.hb=null;k.va&&(g=p[u],void 0!==g&&0>k.va.restore(g)&&(A=!1),A&&void 0!==k.Va&&(k.hb=k.va.seek(k.Od,k.bb,k.jb+k.dg)));A||(e=!1);null!=a.P&&1>=d&&(a.P|=(f.type&3)<<(1-d<<
|
||||
1))}0<=a.Ya&&(a.B=a.A[a.Ya]);return e}
|
||||
function tx(a){var b=0,c=[];a.M?(c[b++]=a.I,c[b++]=a.ta,c[b++]=a.J,c[b++]=a.fa,c[b++]=a.ea,c[b++]=a.ba,c[b++]=a.U,c[b++]=a.ga,c[b++]=a.ha,c[b++]=[a.L,a.Ya]):(c[b++]=a.P,c[b++]=a.ga,c[b++]=a.F,c[b++]=a.D,c[b++]=a.C,c[b++]=a.ra,c[b++]=a.pa,c[b++]=a.qa,c[b++]=a.N);for(var d=0,e=[],f=0;f<a.A.length;f++){var g=d++,h=a.A[f],k=0,m=[];m[k++]=h.errorCode;m[k++]=h.Wk;m[k++]=h.Me;m[k++]=h.Ce;m[k++]=h.De;m[k++]=h.bb;m[k++]=h.gb;m[k++]=h.Od;m[k++]=h.jb;m[k++]=h.Vd;m[k++]=h.yb;m[k++]=h.Va;m[k]=h.va?h.va.save():
|
||||
null;e[g]=m}c[b]=e;return c}l.dj=function(a){a=this.A[a];if(void 0!==a){var b={};for(var c in a)b[c]=a[c]}return b};function zx(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.Ce[2])?e=b.Ce[0]<<8|b.Ce[1]:c=b.type);null==c||d||(d=yx[a.H][c][1],e=yx[a.H][c][0]);d&&((c=yx[a.H][b.type])&&e!=c[0]&&d!=c[1]&&a.Da("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.sb=e,b.gb=d,null==b.va&&(b.va=new uv(a,b,b.mode)))}}
|
||||
l.Vk=function(a,b,c){if(a.va){var d=a.va.info(),e=d[0];if(e){var f=d[2],g=d[1]*f;if(b+c<=e*g)return a.Od=Math.floor(b/g),b%=g,a.bb=Math.floor(b/f),a.jb=b%f,a.yb=c*d[3],a.errorCode=wx,!0}}return!1};function rx(a,b){b||(a.K=0);for(var c=0;c<a.A.length;c++){var d=a.A[c];d.name&&d.path?b&&d.va&&d.va.kg||!a.$m(c,d.name,d.path,!0)&&b&&Pb(a,!1):b&&void 0!==d.type&&(d.va=null,zx(a,d,d.type))}return!!a.K}
|
||||
l.$m=function(a,b,c,d){var e=this.A[a];if(e.le)return this.Da("Drive "+a+" busy"),!0;e.le=!0;d&&(e.ke=!0,this.K++,r(this)&&Tb(this,"loading "+b));(e.va||new uv(this,e,e.mode)).load(b,c,null,this.xl);return!1};
|
||||
l.xl=function(a,b,c){a.le=!1;if(a.va=b)this.Da('Mounted disk "'+c+'" in drive '+String.fromCharCode(67+a.Ya),a.ke),b=b.info(),b[0]==a.sb&&b[1]==a.gb&&b[2]==a.Wa&&b[3]==a.Na||this.Da("Warning: disk geometry ("+b[0]+":"+b[1]+":"+b[2]+") does not match "+Ax[this.H]+" drive type "+a.type+" ("+a.sb+":"+a.gb+":"+a.Wa+")");a.ke&&(a.ke=!1,--this.K||Pb(this))};
|
||||
l.Nm=function(a,b){var c=0;this.D<this.C&&(c=this.F[this.D]);this.V&&Zg(this.V,5);this.ga&=~Bx;t(this,a,null,b,"DATA["+this.D+"]",c);++this.D>=this.C&&(this.D=this.C=0,this.ga&=~(Cx|Dx|Ex));return c};l.vo=function(a,b,c){t(this,a,b,c,"DATA["+this.C+"]");this.C<this.F.length&&(this.F[this.C++]=b);a=this.F[0]!=Fx?6:this.F.length;6==this.C&&(this.ga&=~Gx);this.C>=a&&(this.ga|=Cx,this.ga&=~Gx,Hx(this))};l.Om=function(a,b){var c=this.ga;t(this,a,null,b,"STATUS",c);this.D<this.C&&(this.ga|=Gx);return c};
|
||||
l.yo=function(a,b,c){t(this,a,b,c,"RESET");this.ra=b;this.V&&Zg(this.V,5);sx(this)};l.Mm=function(a,b){t(this,a,null,b,"CONFIG",this.P);return this.P};l.xo=function(a,b,c){t(this,a,b,c,"PULSE");this.pa=b;this.ga=Gx|Dx|Ex};l.wo=function(a,b,c){t(this,a,b,c,"PATTERN");this.qa=b};l.di=function(a,b,c){t(this,a,b,c,"NOISE")};
|
||||
function Ix(a,b,c){var d=-1;a.B&&(d=a.te(a.B,function(){}),1==a.B.Va||a.B.Va==a.B.Na)&&(r(a,1048832)&&t(a,b,null,c,"DATA["+a.B.Va+"]",d),1<a.B.Va&&(a.B.yb-=a.B.Na,a.J=a.J-1&255,a.B.yb>=a.B.Na?(a.ga=Jx,a.te(a.B,function(b){0<=b?(Kx(a),a.V&&a.V.da==zl&&(a.ga=0),a.ga=a.ga|ux|Lx|Mx):(a.ga=Nx,a.I=Ox)},!1)):a.ga=ux|Lx));return d}l.gl=function(a,b){return Ix(this,a,b)|Ix(this,a,b)<<8};
|
||||
function Px(a,b,c,d){if(a.B&&a.B.yb>=a.B.Na)if(0>Qx(a.B,c))a.ga=Nx,a.I=Ox;else if(1==a.B.Va||a.B.Va==a.B.Na)r(a,1048832)&&t(a,b,c,d,"DATA["+a.B.Va+"]"),1<a.B.Va&&(a.B.yb-=a.B.Na,a.J=a.J-1&255,Kx(a),a.ga=ux|Lx,a.B.yb>=a.B.Na&&(a.ga|=Mx))}l.An=function(a,b,c){Px(this,a,b&255,c);Px(this,a,b>>8&255,c)};l.Ql=function(a,b){var c=this.I;t(this,a,null,b,"ERROR",c);return c};l.Fn=function(a,b,c){t(this,a,b,c,"WPREC");this.ta=b};l.Sl=function(a,b){var c=this.J;t(this,a,null,b,"SECCNT",c);return c};
|
||||
l.Dn=function(a,b,c){t(this,a,b,c,"SECCNT");this.J=b};l.Tl=function(a,b){var c=this.fa;t(this,a,null,b,"SECNUM",c);return c};l.En=function(a,b,c){t(this,a,b,c,"SECNUM");this.fa=b};l.Ol=function(a,b){var c=this.ea;t(this,a,null,b,"CYLLO",c);return c};l.zn=function(a,b,c){t(this,a,b,c,"CYLLO");this.ea=b};l.Nl=function(a,b){var c=this.ba;t(this,a,null,b,"CYLHI",c);return c};l.yn=function(a,b,c){t(this,a,b,c,"CYLHI");this.ba=b};l.Pl=function(a,b){var c=this.U;t(this,a,null,b,"DRVHD",c);return c};
|
||||
l.Bn=function(a,b,c){t(this,a,b,c,"DRVHD");this.U=b;this.ga=this.A[this.U&Rx?1:0]?this.ga|ux|Lx:this.ga&~ux};l.Ul=function(a,b){var c=this.ga;t(this,a,null,b,"STATUS",c);this.ga&ux&&(this.ga&=~Jx);return c};l.xn=function(a,b,c){t(this,a,b,c,"COMMAND");this.ha=b;this.V&&Zg(this.V,14);Sx(this)};l.Cn=function(a,b,c){t(this,a,b,c,"FDR");this.L&Tx&&!(b&Tx)&&(this.I=Ux);this.L=b};
|
||||
function Sx(a){var b=!1,c=a.ha,d=a.U&Rx?1:0,e=a.U&Vx,f=a.ea|(a.ba&Wx)<<8,g=a.fa,h=a.J||256;a.Ya=-1;a.B=null;a.I=Xx;a.ga=ux|Lx;var k=a.A[d];k?(k.Od=f,k.bb=e,k.jb=g,k.yb=h*k.Na,c=c>=Yx?c:c&Zx,k.hb=null,k.Va=0,k.errorCode=0,a.Ya=d,a.B=k):c=-1;switch(c&Zx){case $x:b=!0;break;case ay:a.ga=Jx;a.te(k,function(b){0<=b&&a.V?(Kx(a),a.ga=ux|Lx|Mx):(a.ga=Nx,a.I=Ox)},!1);break;case by:a.ga=Mx;break;case cy:b=!0;break;case dy:b=!0;break;case Yx:a.I=Ux;b=!0;break;case ey:k.gb=e+1,k.Wa=h,b=!0}b&&Kx(a)}
|
||||
function Kx(a){a.V&&(a.L&fy||mh(a.V,14,120))}
|
||||
function Hx(a){a.D=0;var b=gy(a),c=gy(a),d=c&32,e=d>>5,f=c&31,g=gy(a),h=gy(a),k=g<<2&768|h,m=g&63,p=gy(a),v=gy(a),u=a.A[e];u&&(u.Od=k,u.bb=f,u.jb=m,u.yb=p*u.Na);switch(b){case hy:iy(a,u?u.errorCode:jy);ky(a,c);ky(a,g);ky(a,h);ky(a,ly|d);b=-1;break;case Fx:for(c=0;0<=(b=gy(a));)u&&c<u.Ce.length&&(u.Ce[c++]=b);u&&zx(a,u);b=ly;u||a.N!=e||(a.N=-1,b=my);iy(a,b|d);b=-1;break;case ny:case oy:iy(a,ly|d),b=-1}if(0<=b)switch(void 0===u?b=-1:(u.errorCode=wx,u.Wk=0),b){case py:iy(a,ly|d);break;case qy:u.kf=v;
|
||||
iy(a,ly|d);break;case ry:iy(a,ly|d);break;case sy:ty(a,u,function(b){iy(a,b|d)});break;case uy:vy(a,u,function(b){iy(a,b|d)});break;case wy:xy(a,u,function(b){iy(a,b|d)});break;default:iy(a,my|d)}}function gy(a){var b=-1;a.D<a.C&&(b=a.F[a.D++]);return b}function iy(a,b){a.D=a.C=0;void 0!==b&&ky(a,b);a.V&&mh(a.V,5);a.ga|=Bx}function ky(a,b){a.F[a.C++]=b}l.el=function(a,b,c){void 0===b||0>b?this.te(a,c):c(-1,!1)};l.fl=function(a,b){return void 0!==b&&0<=b?Qx(a,b):-1};
|
||||
l.vl=function(a,b){void 0!==b&&0<=b?(a.Va<a.De.length?a.De[a.Va++]=b:(a.errorCode=yy,b=-1),a=b):a=-1;return a};l.wl=function(a,b){if(void 0!==b&&0<=b)a:if(a.errorCode)a=-1;else{a.Xc[a.He++]=b;if(a.He==a.Xc.length){a.Od=a.Xc[0];a.bb=a.Xc[1];a.jb=a.Xc[2];a.yb=128<<a.Xc[3];for(var c=a.He=0;c<a.yb;c++)if(0>Qx(a,a.Ui)){a=-1;break a}a.eg++}a.eg>=a.Vd&&(b=-1);a=b}else a=-1;return a};
|
||||
function ty(a,b,c){b.errorCode=jy;if(b.va&&(b.hb=null,a.V)){b.errorCode=wx;Sn(a.V,3,a,"dmaRead",b);Jn(a.V,3,function(a){a||b.errorCode!=wx||(b.errorCode=jy);c(b.errorCode?my:ly)});return}c(b.errorCode?my:ly)}function vy(a,b,c){b.errorCode=jy;if(b.va&&(b.hb=null,a.V)){b.errorCode=wx;Sn(a.V,3,a,"dmaWrite",b);Jn(a.V,3,function(a){a||(b.errorCode==wx&&(b.errorCode=jy),b.errorCode==yy&&(b.errorCode=wx));c(b.errorCode?my:ly)});return}c(b.errorCode?my:ly)}
|
||||
function xy(a,b,c){b.errorCode=jy;b.De&&b.De.length==b.yb||(b.De=Array(b.yb));b.Va=0;a.V?(b.errorCode=wx,Sn(a.V,3,a,"dmaWriteBuffer",b),Jn(a.V,3,function(a){a||b.errorCode!=wx||(b.errorCode=jy);c(b.errorCode?my:ly)})):c(b.errorCode?my:ly)}
|
||||
l.te=function(a,b,c){var d=-1,e=null,f=0;if(a.errorCode)return b&&b(d,!1,e,f),d;var g=!1!==c?1:0;if(a.hb&&(f=a.Va,d=a.va.read(a.hb,a.Va),a.Va+=g,0<=d))return e=a.hb,b&&b(d,!1,e,f),d;if(b){if(a.va)return a.va.seek(a.Od,a.bb,a.jb+a.dg,!1,function(c,k){(a.hb=c)?(e=c,f=a.Va=0,zy(a),d=a.va.read(a.hb,a.Va),a.Va+=g):a.errorCode=yy;b(d,k,e,f)}),d;a.errorCode=yy;b(d,!1,e,f)}return d};
|
||||
function Qx(a,b){if(a.errorCode)return-1;do{if(a.hb&&a.va.write(a.hb,a.Va++,b))break;a.va&&a.va.seek(a.Od,a.bb,a.jb+a.dg,!0,function(b){a.hb=b});if(!a.hb){a.errorCode=yy;b=-1;break}a.Va=0;zy(a)}while(1);return b}function zy(a){a.jb++;var b=1-a.dg;a.jb>=a.Wa+b&&(a.jb=b,a.bb++,a.bb>=a.gb&&(a.bb=0,a.Od++))}l.Pm=function(){var a=this.G.L&255;!(this.G.D>>8)&&128<a&&(this.N=a-128);return!0};l.Qm=function(){var a;(a=this.G.D>>8||!this.V)||(a=!(this.V.ic[0].sd&64));return a?!0:!1};
|
||||
var xx="Hard Drive",Ax=["XTC","ATC","COMPAQ"],yx=[{0:[306,2],1:[375,8],2:[306,6],3:[306,4]},{1:[306,4],2:[615,4],3:[615,6],4:[940,8],5:[940,6],6:[615,4],7:[462,8],8:[733,5],9:[900,15],10:[820,3],11:[855,5],12:[855,7],13:[306,8],14:[733,7],16:[612,4],17:[977,5],18:[977,7],19:[1024,7],20:[733,5],21:[733,7],22:[733,5],23:[306,4]},{1:[306,4],2:[615,4],3:[615,6],4:[1023,8],5:[940,6],6:[697,5],7:[462,8],8:[925,5],9:[900,15],10:[980,5],11:[925,7],12:[925,9],13:[612,8],14:[980,4],16:[612,4],17:[980,5],18:[966,
|
||||
6],19:[1023,8],20:[733,5],21:[733,7],22:[524,4,40],23:[924,8],24:[966,14],25:[966,16],26:[1023,14],27:[832,6,33],28:[1222,15,34],29:[1240,7,34],30:[615,4,25],31:[615,8,25],32:[905,9,25],33:[832,8,33],34:[966,7,34],35:[966,8,34],36:[966,9,34],37:[966,5,34],38:[612,16,63],39:[1023,11,33],40:[1023,15,34],41:[1630,15,52],42:[1023,16,63],43:[805,4,26],44:[805,2,26],45:[748,8,33],46:[748,6,33],47:[966,5,25]}],qx=496,Ux=1,Xx=0,Ox=16,Wx=3,Vx=15,Rx=16,Nx=1,Mx=8,Lx=16,ux=64,Jx=128,$x=16,ay=32,by=48,cy=64,dy=
|
||||
112,Yx=144,ey=145,Zx=240,fy=2,Tx=4,ly=0,my=2,py=0,qy=1,hy=3,ry=5,sy=8,uy=10,Fx=12,wy=15,ny=224,oy=228,wx=0,jy=4,yy=20,vx=0,Gx=1,Cx=2,Dx=4,Ex=8,Bx=32,nx={800:lx.prototype.Nm,801:lx.prototype.Om,802:lx.prototype.Mm},mx={496:lx.prototype.gl,497:lx.prototype.Ql,498:lx.prototype.Sl,499:lx.prototype.Tl,500:lx.prototype.Ol,501:lx.prototype.Nl,502:lx.prototype.Pl,503:lx.prototype.Ul},px={800:lx.prototype.vo,801:lx.prototype.yo,802:lx.prototype.xo,803:lx.prototype.wo,807:lx.prototype.di,811:lx.prototype.di,
|
||||
815:lx.prototype.di},ox={496:lx.prototype.An,497:lx.prototype.Fn,498:lx.prototype.Dn,499:lx.prototype.En,500:lx.prototype.zn,501:lx.prototype.yn,502:lx.prototype.Bn,503:lx.prototype.xn,1014:lx.prototype.Cn};cb(function(){for(var a=zb(document,"pcx86","hdc"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new lx(d);yb(d,c)}});function Ay(a){pb.call(this,"Debugger",a);this.D=+a.base||16;this.ha=["{","}"];this.Ea=["[","]"];this.ba=this.ka=this.P=0;this.fa=!1;this.A=-1;this.C=[];this.I={}}ia(Ay,pb);
|
||||
Ay.prototype.dh=function(){return-1};Ay.prototype.eh=function(){};Ay.prototype.Kk=function(a,b){return a.replace("["+b+"]","unimplemented")};
|
||||
Ay.prototype.zg=function(a,b,c){if(b)if(a){0>this.A&&this.C.length&&(this.A=0);if(0>this.A||a!=this.C[this.A])this.C.splice(0,0,a),this.A=0;this.A--}else this.fa?a="end":a=this.C[this.A+1];b=[];if(a){a=a.replace(/""/g,"'");var d=0,e=null;c=c||";";for(var f=0;f<=a.length;f++){var g=a.charAt(f);if('"'==g||"'"==g)e?g==e&&(e=null):e=g;else if(g==c&&!e||!g)b.push(Da(a.substring(d,f))),d=f+1}}return b};
|
||||
function By(a,b,c){var d=a;b=b||32;if(c)if(32==b)d=a>>>0;else if(32>b)d=a&(1<<b)-1;else{if(b=Math.pow(2,b),0>a||a>=b)d=a%b,0>d&&(d+=b)}else 32>=b?d=a<<32-b>>32-b:(b=Math.pow(2,b-1),a>=b?(d=a%b,(a/b|0)&1&&(d-=b)):a<-b&&(d=a%b,((-a-1)/b|0)&1?d&&(d+=b):d||(d-=b)));a!=d&&(a=d);return a}
|
||||
function Cy(a,b,c){for(c=void 0===c?-1:c;c--&&b.length;){var d=b.pop();if(2>a.length)return!1;var e=a.pop();var f=a.pop();switch(d){case "*":f*=e;break;case "/":if(!e)return!1;f=Math.trunc(f/e);break;case "^/":if(!e)return!1;f%=e;break;case "+":f+=e;break;case "-":f-=e;break;case "<<":f<<=e;break;case ">>":f>>=e;break;case ">>>":f>>>=e;break;case "<":f=f<e?1:0;break;case "<=":f=f<=e?1:0;break;case ">":f=f>e?1:0;break;case ">=":f=f>=e?1:0;break;case "==":f=f==e?1:0;break;case "!=":f=f!=e?1:0;break;
|
||||
case "&":f&=e;break;case "!":case "|":f|=e;break;case "^!":f|=e;break;case "&&":f=f&&e?1:0;break;case "||":f=f||e?1:0;break;case ",,":f=By(f,18,!0)*Math.pow(2,18)+By(e,18,!0);break;case "_":case "^_":"^_"==d&&(e=35-(e&255));e&&(f=By(f,0,!0),f=0<e?f*Math.pow(2,e):Math.trunc(f/Math.pow(2,-e)));break;default:return!1}a.push(By(f))}return!0}
|
||||
function Dy(a,b,c,d,e,f){var g,h=!1,k=0,m=[],p=[],v=a.D;for(a.D=e;c<d;){var u=b[c++].trim();var A=c<d?b[c++]:"";if(u)var J=Ey(a,u,null,f,k);else if("{"==A){u=1;for(J=c;c<d;)if(c++,A=c<b.length?b[c++]:"","{"==A)u++;else if("}"==A&&!--u)break;J=Dy(a,b,J,c-1,a.D,f);null!=J&&k&&(J=Fy(J,k));u=c<d?b[c++].trim():"";A=c<d?b[c++]:""}else{if(" "==A)continue;if("^B"==A){a.D=2;continue}if("^O"==A){a.D=8;continue}if("^D"==A){a.D=10;continue}if(!(k&-1073741824)){if("+"==A)continue;if("-"==A){k=k<<2|1;continue}if("~"==
|
||||
A||"^-"==A){k=k<<2|2;continue}if("^L"==A){k=k<<2|3;continue}}h=!0;break}if(void 0===J)if(f)f.push(u),J=0;else{h=!0;f=[];break}m.push(By(J));if(" "==A)if(c<b.length-1&&!b[c])c++,A=b[c++];else{h=!0;break}if(!A)break;k="<"==a.ha[0]?Gy:Hy;if(!k[A]){h=!0;break}p.length&&k[A]<=k[p[p.length-1]]&&Cy(m,p,1);p.push(A);a.D="^_"==A?10:e;k=0}if(h||!Cy(m,p)||1!=m.length)h=!0;h?f||a.O("parse error ("+(u||A)+")"):g=m.pop();a.D=v;return g}
|
||||
function Iy(a,b,c,d,e){for(var f;0<=(f=b.indexOf(c));){for(var g=0,h=f+1,k=e;h<b.length;){var m=b[h++];if(m==c){k=-1;break}if(!k)break;k--;m=m.charCodeAt(0);7==d?m&=127:m=m-32&63;g=By(g*Math.pow(2,d)+m,d*e,!0)}if(0<=k){a.O("parse error ("+c+b+c+")");return}b=b.substr(0,f)+Jy(a,g,-1)+b.substr(h)}return b}
|
||||
function Ky(a,b,c){var d=void 0,e=!1===c;c=Array.isArray(c)?c:void 0;if(b){"{"!=a.ha[0]&&(b=b.split(a.ha[0]).join("{").split(a.ha[1]).join("}"));b=Iy(a,b,'"',7,5);if(!b)return d;b=Iy(a,b,"'",6,6);if(!b)return d;16!=a.D&&(b=b.replace(/(^|[^A-Z0-9$%.])([0-9]+)B/,"$1$2^_").replace(/\s+/g," "));b=b.split(/({|}|\|\||&&|\||\^!|\^B|\^O|\^D|\^L|\^-|~|\^_|_|&|!=|!|==|>=|>>>|>>|>|<=|<<|<|-|\+|\^\/|\/|\*|,,| )/);d=Dy(a,b,0,b.length,a.D,c);void 0!==d&&e&&Ly(a,null,d)}return d}
|
||||
function My(a,b){var c=a.ha[0],d=a.ha[1];var e="("==c||"{"==c||"["==c?"\\":"";var f="["==c?"\\":"";for(f=new RegExp(e+c+"([^"+f+c+f+d+"]+)"+e+d);e=b.match(f);){var g=Ky(a,e[1]);if(void 0===g)return;b=b.replace(c+e[1]+d,null!=g?Jy(a,g):"undefined")}if(a.Ea.length)for(c=a.Ea[0],d=a.Ea[1],e="("==c||"{"==c||"["==c?"\\":"",f="["==c?"\\":"",f=new RegExp(e+c+"([^"+f+c+f+d+"]+)"+e+d);e=b.match(f);)b=a.Kk(b,e[1]);for(;c=b.match(/\$([a-z]+)/i);){d=null;switch(c[1].toLowerCase()){case "ops":d=a.ba-a.ka}if(null==
|
||||
d)break;b=b.replace(c[0],d.toString())}return b}function Fy(a,b){for(;b;){switch(b&3){case 1:a=-By(a);break;case 2:a|=-1;break;case 3:for(var c=35;0<=c&&!(a&Math.pow(2,c));)c--;a=35-c}b>>>=2}return a}
|
||||
function Ey(a,b,c,d,e){e=void 0===e?0:e;var f=Array.isArray(d)?d:void 0;if(null!=b){var g=a.dh(b);if(0<=g)g=a.eh(g);else if(g=b,a.I[g]?g=a.I[g].value:(g=g.substr(0,6),g=a.I[g]&&a.I[g].value),null!=g){var h=a.I[b]&&a.I[b].Vo;h&&(f?f.push(h):(f=Ky(a,h,d),void 0!==f?g+=f:(d||a.O("undefined "+(c||"value")+": "+b+" ("+h+")"),g=void 0)))}else g=qa(b,1<b.length||10<a.D?a.D:10);null!=g?g=By(Fy(g,e)):d||a.O("invalid "+(c||"value")+": "+b)}else d||a.O("missing "+(c||"value"));return g}
|
||||
function Ly(a,b,c){var d=!1;if(void 0!==c){d=!0;var e=8==a.D?Jy(a,c,32,8,1)+" "+c+".":Jy(a,c,32,16,1)+" "+Jy(a,c,32,8,1)+" "+Jy(a,c,32,2,8)+" "+c+".";32<=c&&127>c&&(e+=" '"+String.fromCharCode(c)+"'")}a.O((null!=b?b+": ":"")+e);return d}function Ny(a,b){var c=0;if(a.I){if(b)return Ly(a,b,a.I[b]&&a.I[b].value);b=Object.keys(a.I);b.sort();for(var d=0;d<b.length;d++)Ly(a,b[d],a.I[b[d]].value),c++}return 0<c}
|
||||
function Jy(a,b,c,d,e){c=void 0===c?0:c;e=void 0===e?0:e;switch((void 0===d?0:d)||a.D){case 2:b=ta(b,0<c?c:0,e);break;case 8:b=ua(b,0<c?(c+2)/3|0:0,!!e);break;case 10:(a=0<c?Math.ceil(.3*c):0)?11<a&&(a=11):a=99999>=Math.abs(b)?5:11;b=sa(b,10,a);break;default:b=q(b,0<c?c+3>>2:0,!!e)}0>c?c=b.replace(/^0+([0-9A-F]+)$/i,"$1"):c=b;return c}
|
||||
var Hy={"||":5,"&&":6,"!":7,"|":7,"^!":8,"&":9,"!=":10,"==":10,">=":11,">":11,"<=":11,"<":11,">>>":12,">>":12,"<<":12,"-":13,"+":13,"^/":14,"/":14,"*":14,_:19,"^_":19,"{":20,"}":20},Gy={",,":1,"||":5,"&&":6,"!=":10,"==":10,">=":11,">":11,"<=":11,"<":11,">>>":12,">>":12,"<<":12,"-":13,"+":13,"^/":14,"/":14,"*":14,"!":15,"|":15,"^!":15,"&":15,_:19,"^_":19,"{":20,"}":20};
|
||||
function Oy(a){Ay.call(this,a);this.ra=4;this.la=5;this.xa=1048575;this.N=Py(this,0,0);this.Ca=Py(this,0,0);this.ea=Py(this,0,0);this.F=[];this.B=this.V=this.L=[];Qy(this);this.wa=0;Ry(this);this.Fa={};Sy(this,a.messages);this.Ka=a.commands;var b=this;window?void 0===window.pcx86&&(window.pcx86=function(a){return Ty(b,a)}):void 0===global.pcx86&&(global.pcx86=function(a){return Ty(b,a)})}ia(Oy,Ay);l=Oy.prototype;
|
||||
l.tc=function(a,b,c,d){this.oa=b;this.G=c;this.na=a;this.cb=ac(a,"FDC");this.Pa=ac(a,"HDC");this.Kc=ac(a,"FPU");this.H=ac(a,"Mouse");(a=Bd(a,"messages"))&&Sy(this,a);this.la=b.I>>2;this.xa=b.N;this.ab=new Zd(this.G,7,"DBG");this.pa=Uy;80186<=this.G.da&&(this.pa=Uy.slice(),this.pa[15]=Vy,80286<=this.G.da&&(this.pa[15]=Wy,80386<=this.G.da&&(this.ra=8)));Cl(this,64,function(a){Xy(d,d.G.sc,a[0])});Cl(this,4,function(a){if(a=a[0]){var b=Ey(d,a);if(void 0===b)d.O("invalid selector: "+a);else if(a=Yy(d,
|
||||
b,Zy),d.O("dumpSel("+wa(a?a.T:b)+"): %"+q(a?a.Ob:null,d.la)),a){b=!1;if(a.type&4096){if(a.type&2048){var c="code"+(a.type&512?",readable":",execonly");a.type&1024&&(c+=",conforming")}else c="data"+(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown");a.type&256&&(c+=",accessed")}else{var e=$y[a.type];e&&(c=e[0],b=e[1])}!c||a.ob&32768||(c+=",not present");d.O((b?"seg="+wa(a.ua&65535)+" off="+wa(a.Sa):"base="+q(a.ua,d.la)+" limit="+az(a.Sa))+" type="+va(a.type>>8)+" ("+c+") ext="+wa(a.ext&
|
||||
-65296)+" dpl="+va(a.qc))}}else d.O("no selector")});Cl(this,134217728,function(a){var b;(a=a[0])&&(b=Ey(d,a));if(void 0===b)d.O("invalid MCB");else for(d.O("dumpMCB("+wa(b)+")");b;){a=Py(d,0,b);var c=d.ya(a,1),e=d.Vc(a,2),k=d.Vc(a,5);if(77!=c&&90!=c)break;d.O(bz(0,b)+": '"+String.fromCharCode(c)+"' PID="+wa(e)+" LEN="+wa(k)+' "'+cz(d,a,8)+'"');b+=1+k}});Cl(this,128,function(a){Xy(d,d.G.Z,a[0],d.G.Z!==d.G.sc)});Cl(this,8,function(a){a:{if(a=a[0]){var b=Ey(d,a);if(void 0===b){d.O("invalid task selector: "+
|
||||
a);break a}a=Yy(d,b,Zy)}else a=d.G.ka;d.O("dumpTSS("+wa(a?a.T:b)+"): %"+q(a?a.ua:null,d.la));if(a){b="";var c=a.type&-513,e=256==c?4:8,k=256==c?dz:ez;for(u in k){var m=k[u];var p=a.ua+m;var v=Ag(d.G,p,2);2304==c&&(v|=Ag(d.G,p+2,2)<<16);b&&(b+="\n");b+=wa(m)+" "+Ca(u+":",11)+q(v,e)}if(2304==c){var u=0;for(m=v>>>16;m<a.Nb&&1023>u;){p=a.ua+m;v=Ag(d.G,p,2);p=2;c="";if(!p||4<p)p=4;for(e=0;e<p;e++)c&&(c=","+c),c=ta(v&255,8)+c,v>>=8;b+="\n"+wa(m)+" ports "+wa(u)+"-"+wa(u+15)+": "+(""+c);u+=16;m+=2}}d.O(b)}}});
|
||||
this.J=null;this.La=0;this.Ga=!1;Wf(this.G,48,this.Tm.bind(this));Wf(this.G,65,this.Um.bind(this));this.Z=null;Wf(this.G,104,this.Vm.bind(this));Pb(this)};function fz(a,b,c,d,e,f){b=cz(a,b);var g=Yy(a,d);g=g?g.Sa+1:0;var h=(e?"_CODE":"_DATA")+q(c,2);f&&r(a,128)&&a.message(b+" "+(e?"code":"data")+"("+q(c,4)+")=#"+q(d,4)+" len "+q(g));e=gz(a,b,c);e[b+h]=0;jq(a,b,c,d,0,null,g,e)}
|
||||
function hz(a,b,c,d){var e=a.Vc(b,2),f=a.Vc(b,2),g=iz(a,b,4),h=iz(a,b,4),k=Py(a,iz(a,b,4),a.Vc(b,2));b=Py(a,iz(a,b,4),a.Vc(b,2));b=cz(a,b).toUpperCase();k=cz(a,k).toUpperCase();var m=(c?"_CODE":"_DATA")+q(e,2);d&&r(a,128)&&a.message((b==k?"":b+"!")+k+" "+(c?"code":"data")+"("+q(e,4)+")="+q(f,4)+":"+q(g)+" len "+q(h));c=gz(a,k,e);c[k+m]=g;jq(a,k,e,f,g,null,h,c)}function jz(a,b,c){c=cz(a,c).toUpperCase();kz(a,c,b)}
|
||||
l.Tm=function(){var a=this.G;if(null!=this.J&&2752554==a.D){var b=a.L&65535,c=a.K&65535,d=Py(this,y(a)+12,a.U.T);switch(iz(this,d)){case 336:hz(this,Py(this,a.H,b),!c,!!this.J)}}return!0};
|
||||
l.Um=function(a){var b=this.G,c=b.D&65535,d=b.H&65535,e=b.I&65535,f=b.L&65535,g=b.K&65535,h=b.J&65535,k=b.pa.T;if(null==this.J)return 79==c&&Xf(b,a,function(a){return function(){62342!=(b.D&65535)?(b.D=b.D&-65536|62342,Tb(a,"INT 0x41 handling enabled",128),a.J=!0):(Tb(a,"INT 0x41 monitoring enabled",128),a.J=!1)}}(this)),!0;switch(c){case 79:this.J&&(b.D=b.D&-65536|62342,Tb(this,"INT 0x41 handling enabled",128));break;case 80:fz(this,Py(this,h,k),d+1,e,!(g&1),!!this.J);break;case 82:kz(this,null,
|
||||
d);break;case 127:this.J&&(b.D=b.D&-65536|(this.Ga?0:1));break;case 131:this.J&&(a=Py(this,b.L,e),this.La++?(this.O("TRAPFAULT failed"),lz(this,this.B,a,!0,!0),this.La=0,rk(this)):(this.O("INT 0x41 TRAPFAULT: fault="+wa(d)+" error="+q(b.K,8,!0)+" addr="+mz(a)),this.rd(this.B,a,!0),Ry(this,!0)));break;case 141:this.J&&(b.D=b.D&-65536|1);break;case 336:hz(this,Py(this,b.H,f),!g,!!this.J);break;case 338:jz(this,d,Py(this,b.J,f))}this.Ga=!1;return!this.J};
|
||||
l.Vm=function(a){var b=this.G,c=b.D&255,d=b.D>>8&255,e=b.H&65535,f=b.I&65535,g=b.L&65535,h=b.J&65535,k=b.pa.T;if(null==this.Z){if(67==d){if(609437257==b.ia((b.ba.T<<4)+10)||1111835735==b.ia((b.ba.T<<4)+95))return!0;Xf(b,a,function(a){return function(){62342!=(b.D&65535)?(b.D=b.D&-65536|62342,Tb(a,"INT 0x68 handling enabled",128),a.J=a.Z=!0):(Tb(a,"INT 0x68 monitoring enabled",128),a.Z=!1)}}(this))}return!0}switch(d){case 67:this.Z&&(b.D=b.D&-65536|62342);break;case 68:this.Z&&(a=ce(b.ba,this.rl.bind(this)))&&
|
||||
(b.J=a[0],ue(b,a[1]));break;case 72:kz(this,null,e);break;case 80:32==c?fz(this,Py(this,h,k),0,f,!0,!!this.Z):128>c?fz(this,Py(this,h,k),e+1,c&64?g:f,!(c&1),!!this.Z):hz(this,Py(this,h,k),!(c&1),!!this.Z),this.Z&&(b.D=b.D&-256|1)}return!this.Z};l.rl=function(){var a=this.G;5==(a.D&255)&&(a.I=a.K=0,a.D=a.D&-256|1);return!1};
|
||||
l.Eb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.ta=this.ma[b]=c,c.onkeydown=function(a){if(13==a.keyCode){var b=c.value;c.value="";Ty(d,b,!0)}else if(27==a.keyCode)c.value=b="";else if(38==a.keyCode?(b=null,d.A<d.C.length-1&&(b=d.C[++d.A])):40==a.keyCode&&(0<d.A?b=d.C[--d.A]:(b="",d.A=-1)),null!=b){var e=b.length;c.value=b;c.setSelectionRange(e,e)}null!=b&&a.preventDefault&&a.preventDefault()},!0;case "debugEnter":return this.ma[b]=c,ab(c,function(){if(d.ta){var a=d.ta.value;
|
||||
d.ta.value="";Ty(d,a,!0);return!0}return!1}),!0;case "step":return this.ma[b]=c,ab(c,function(a){var b=!1;Qb(d,!0)||(Rb(d,!0),b=nz(d,a?1:0),Rb(d,!1));return b}),!0}return!1};l.cd=function(){this.ta&&this.ta.focus()};function oz(a){return!(!(a.G&&a.G.ra&1)||a.G.P&131072)}
|
||||
function Yy(a,b,c){var d=oz(a)?Zy:pz;c||(c=d);if(c==d){if(b===a.G.ba.T)return a.G.ba;if(b===a.G.Fa.T)return a.G.Fa;if(b===a.G.pa.T)return a.G.pa;if(b===a.G.U.T)return a.G.U;if(80386<=a.G.da){if(b===a.G.Ka.T)return a.G.Ka;if(b===a.G.La.T)return a.G.La}if(a.Ia&&c==Zy||!a.ab)return null}a=a.ab;if(c!=Zy)a.kh(b),a.Sa=65535,a.Nb=65536;else{c=a.Lb;b&=65535;if(b&4){d=c.Gb.ua;var e=d+c.Gb.Sa|0}else d=c.Kb,e=c.Jc;d=d+(b&65528)|0;if(e-d|0){e=Ag(c,d+0,2);var f=Ag(c,d+4,2),g=f&7936,h=Ag(c,d+2,2)|(f&255)<<16,k=
|
||||
Ag(c,d+6,2);80386<=c.da&&(h|=(k&65280)<<16,e|=(k&15)<<16,k&128&&(e=e<<12|4095));a.T=b;a.ua=h;a.Sa=e;a.Nb=(e>>>0)+1;a.ob=f;a.type=g;a.ext=k;a.Ob=d;be(a,!0,!0,!1)}}return a}l.Vb=function(a,b,c){var d=a&&a.za;if(null==d&&(d=-1,a)){var e=Yy(this,a.T,a.type);e&&(b=a.Ja||0,c=c||1,d=e=-1===e.Ob||e.ed&&(b>>>0)+c>e.Nb||!e.ed&&(b>>>0)+c<=e.Nb?e.ua+b|0:-1,a.za=d)}return d};l.ya=function(a,b){var c=255,d=this.Vb(a,!1,1);-1!==d&&(c=Ag(this.G,d,1,a.type==qz)|0,b&&rz(this,a,b));return c};
|
||||
l.nb=function(a,b){return a.Jb?iz(this,a,b?4:0):this.Vc(a,b?2:0)};l.Vc=function(a,b){var c=65535,d=this.Vb(a,!1,2);-1!==d&&(c=Ag(this.G,d,2,a.type==qz)|0,b&&rz(this,a,b));return c};function iz(a,b,c){var d=-1,e=a.Vb(b,!1,4);-1!==e&&(d=Ag(a.G,e,4,b.type==qz)|0,c&&rz(a,b,c));return d}l.ub=function(a,b,c,d){var e=this.Vb(a,!0,1);if(-1!==e){if(a.type!=qz)this.G.ub(e,b);else{var f=this.oa;f.Z[(e&f.C)>>>f.A].bf(e&f.D,b&255,e)}c&&rz(this,a,c);d||Fd(this.G,!0)}};
|
||||
l.bl=function(a,b,c){var d=this.Vb(a,!0,2);-1!==d&&(a.type!=qz?this.G.ib(d,b):Mc(this.oa,d,b),c&&rz(this,a,c),Fd(this.G,!0))};function Py(a,b,c,d,e,f,g){return sz(a,{},b,c,d,e,f,g)}function sz(a,b,c,d,e,f,g,h){b.Ja=c||0;b.T=d;b.za=e;b.type=f||(oz(a)?Zy:pz);b.Jb=null!=g?g:!(!a.G||4!=a.G.ba.X);b.ec=null!=h?h:!(!a.G||4!=a.G.ba.Lc);b.wd=!1;return b}function tz(a){return[a.Ja,a.T,a.za,a.wd,a.Jb,a.ec,a.Ee,a.Zg]}function uz(a){return{Ja:a[0],T:a[1],za:a[2],wd:a[3],Jb:a[4],ec:a[5],Ee:a[6],Zg:a[7]}}
|
||||
function vz(a,b,c){if(null!=b.T&&(a=Yy(a,b.T,b.type))){var d=b.Ja&a.xa;if(!a.ed){if(d>>>0>=a.Nb)return!1}else if(d>>>0<a.Nb)return!1;c&&(b.Ja=d,b.Jb=4==a.X,b.ec=4==a.Lc)}return!0}
|
||||
function wz(a,b,c,d){var e=c?a.N:a.Ca;c=d?xz:e.type;var f=e.Ja,g=e.T;e=e.za;if(void 0!==b){b=My(a,b);var h=b.charAt(0);e=b.indexOf(":");switch(h){case "&":c=pz;break;case "#":c=Zy;break;case "%":c=yz;h=b.charAt(1);"%"==h&&(c=qz,h+=h);f=0;g=null;break;default:0<=e&&(c=xz),h=""}h&&(b=b.substr(h.length),e-=h.length);h=b;if(h.match(/^[a-z_][a-z0-9_]*$/i))for(var k=h.toUpperCase(),m=0;m<a.F.length;m++){h=a.F[m];var p=h.Id[k];if(void 0!==p){k=p.o;if(void 0!==k){var v=p.s;void 0===v&&(v=h.T);v=Py(a,k,v,
|
||||
p.p)}break}}if(h=v)return h;0>e?null!=g?(f=Ky(a,b,void 0),e=null):(e=Ky(a,b,void 0),null==e&&(f=null)):(g=Ky(a,b.substring(0,e),void 0),f=Ky(a,b.substring(e+1),void 0),e=null)}null!=f&&(h=Py(a,f,g,e,c),d||vz(a,h,!0)||(a.O("invalid offset: "+mz(h)),h=null));return h}function zz(a,b,c){c&&(c=c.match(/(['"])(.*?)\1/))&&(b.ll=a.zg(b.Tk=c[2]))}l.Kk=function(a,b){var c=wz(this,b);return a.replace("["+b+"]",c?q(this.nb(c),c.Jb?8:4):"undefined")};
|
||||
function rz(a,b,c){c=c||1;null!=b.za&&(b.za+=c);null!=b.T&&(b.Ja+=c,vz(a,b)||(b.Ja=0,b.za=null))}function bz(a,b,c){return null!=b?q(b,4)+":"+q(a,a&-65536||c?8:4):q(a)}function mz(a){switch(a.type){case pz:case Az:var b="&";break;case Zy:b="#";break;case yz:b="%";break;case qz:b="%%";break;default:b=a.T?"":"%"}return a.type>=yz||null==a.T?b+q(a.za):b+bz(a.Ja,a.T,a.ec)}
|
||||
function cz(a,b,c){var d="";for(c=c||256;d.length<c;){var e=a.ya(b,1);if(!e||36==e||127<=e)break;d+=32<=e?String.fromCharCode(e):"."}return d}
|
||||
function Xy(a,b,c,d){var e=0,f=0,g=b.length;if(c){e=a.Vb(wz(a,c));if(-1===e){a.O("invalid address: "+c);return}f=e>>>a.G.lb;g=1}a.O("blockid "+(d?"linear ":"physical")+" blockaddr used size type");a.O("-------- --------- ---------- ------ ------ ----");c=-1;for(var h=0;g--;)(d=b[f])&&d.type==ed&&(d=qd(a.G,e,!1,!0)),d.type==c?h++||a.O("..."):(c=d.type,h=wc[c],c==gd&&(d=d.td,h+=" -> "+wc[d.type]),d&&a.O(q(d.id,8)+" %"+q(f<<a.G.lb,8)+" %%"+q(d.za,8)+" "+wa(d.xe)+" "+wa(d.size)+
|
||||
" "+h),c!=dd&&c!=ed&&(c=-1),h=0),e+=a.G.Lg,f++}function Bz(a,b,c){a=q(a)+" "+q(b)+" ";a=a+(c&&b&64?"D":"-")+(b&32?"A":"-")+(b&4?"U":"S");a+=b&2?"W":"R";return a+=b&1?"P":"N"}function gz(a,b,c){var d=[],e;for(e=null;e=ac(a.na,"Disk",e);){var f=e,g=b,h=c;d={};if(f.C)for(var k=0;k<f.C.length;k++){var m=f.C[k];if(m.hi==g&&(m=m.fe[h])){for(var p in m.jf)f=m.jf[p],d[f[1]]=f[0];break}}if(d.length)break}return d}
|
||||
function Sy(a,b){a.ca=a;a.dc=a.pl=1073741824;a.Aa=null;a.Ba=[];b=a.zg(b.replace("keys","key").replace("kbd","keyboard"),!1,"|");if(b.length)for(var c in Zb)0<=Ja(b,c)&&(a.dc|=Zb[c],a.O(c+" messages enabled"));Ry(a)}function Cl(a,b,c){for(var d in Zb)if(b==Zb[d]){a.Fa[d]=c;break}}l.dh=function(a,b){a=a.toUpperCase();if(null==b)var c=Ja(Cz,a);else c=Ja(Cz,a.substr(b,3)),0>c&&(c=Ja(Cz,a.substr(b,2)));return c};
|
||||
function Dz(a,b){var c=0,d=a.eh(b);if(null!=d)switch(b){case Ez:case Fz:case Gz:case Hz:case Iz:case Jz:case Kz:case Lz:c=2;break;case Mz:case Nz:case Oz:case Pz:case Qz:case Rz:case Sz:case Tz:case Uz:case Vz+Wz:case Vz+Xz:case Vz+Yz:case Vz+Zz:case Vz+$z:case Vz+aA:c=4;break;case bA:case cA:case dA:case eA:case fA:case gA:case hA:case iA:case jA:case kA:case lA:case mA:case nA:c=8;break;case oA:c=a.ra}return c?q(d,c):"??"}
|
||||
l.eh=function(a){if(0<=a){var b=this.G;switch(a){case Ez:var c=b.D&255;break;case Fz:c=b.I&255;break;case Gz:c=b.L&255;break;case Hz:c=b.H&255;break;case Iz:c=b.D>>8&255;break;case Jz:c=b.I>>8&255;break;case Kz:c=b.L>>8&255;break;case Lz:c=b.H>>8&255;break;case Mz:c=b.D&65535;break;case Nz:c=b.I&65535;break;case Oz:c=b.L&65535;break;case Pz:c=b.H&65535;break;case Qz:c=y(b)&65535;break;case Rz:c=b.N&65535;break;case Sz:c=b.K&65535;break;case Tz:c=b.J&65535;break;case Uz:c=z(b)&65535;break;case oA:c=
|
||||
xe(b);break;case Vz+Wz:c=b.pa.T;break;case Vz+Xz:c=b.ba.T;break;case Vz+Yz:c=b.U.T;break;case Vz+Zz:c=b.Fa.T;break;default:if(80286==this.G.da)a==jA&&(c=b.ra);else if(80386<=this.G.da)switch(a){case bA:c=b.D;break;case cA:c=b.I;break;case dA:c=b.L;break;case eA:c=b.H;break;case fA:c=y(b);break;case gA:c=b.N;break;case hA:c=b.K;break;case iA:c=b.J;break;case jA:c=b.ra;break;case kA:c=b.Mg;break;case lA:c=b.pd;break;case mA:c=b.wc;break;case Vz+$z:c=b.Ka.T;break;case Vz+aA:c=b.La.T;break;case nA:c=
|
||||
z(b)}}}return c};
|
||||
function pA(a,b){b=My(a,b)||b;for(var c=0,d,e;0<=(c=b.indexOf("@",c));)e=a.dh(b,c+1),0<=e&&(b=b.substr(0,c)+Dz(a,e)+b.substr(c+1+Cz[e].length)),c++;for(c=0;0<=(c=b.indexOf("#",c));)e=b.substr(c+1,2),d=qa(e,16),null!=d&&32<=d&&128>d?(d=e+" '"+String.fromCharCode(d)+"'",b=b.replace("#"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("$",c));)e=b.substr(c+1,9),(d=wz(a,e))?(d=e+' "'+cz(a,d)+'"',b=b.replace("$"+e,d),c+=d.length):c++;for(c=0;0<=(c=b.indexOf("^",c));)e=b.substr(c+1,9),(d=wz(a,e))?(rz(a,d),
|
||||
d=e+' "'+cz(a,d,11)+'"',b=b.replace("^"+e,d),c+=d.length):c++;return b}l.message=function(a,b){b&&(a+=" at "+mz(Py(this,z(this.G),this.G.ba.T))+" (%"+q(this.G.ea)+")");this.dc&536870912?this.Ba.push(a):this.Aa&&a==this.Aa||(this.Aa=a,this.dc&-2147483648&&(rk(this),a+=" (cpu halted)"),this.O(a),this.G&&(a=this.G,a.aa.Pf=!0,Fd(a)))};
|
||||
function al(a,b,c,d){var e;d||(d=r(a,1)&&0>qA.indexOf(b),d||(e=rA[b])&&(d=r(a,e)?!0:524288==e&&r(a,e=1048576)));if(d){var f=a.G.D>>8&255;var g=a.G.L&255;if(33==b&&11==f||524288==e&&128<=g||1048576==e&&128>g)d=!1}d&&((e=(e=Yb[b])&&e[f]||"")&&(e=" "+pA(a,e)),a.message("INT "+va(b)+": AH="+va(f)+" at "+bz(c-2-a.G.ba.ua,a.G.ba.T)+e));return d}
|
||||
function Ub(a,b,c,d,e,f,g,h){h|=256;if(null==e||(a.dc&h)==h)h=null,null!=e&&(h=a.G.ba.T,e-=a.G.ba.ua),a.message(b.ye+"."+(null!=d?"outPort":"inPort")+"("+wa(c)+","+(f?f:"unknown")+(null!=d?","+va(d):"")+")"+(null!=g?": "+va(g):"")+(null!=e?" at "+bz(e,h):""))}l.fh=function(){this.O("Type ? for help with PCx86 Debugger commands");sA(this);if(this.Ka){var a=this.Ka;this.Ka=null;Ty(this,a)}};
|
||||
function Ry(a,b){var c;if(Og(a)){if(!a.U||!a.U.length){a.U=Array(tA);for(c=0;c<a.U.length;c++)a.U[c]=Py(a);a.qa=0;b||a.O("instruction history buffer allocated")}if(!a.M||!a.M.length)for(a.M=Array(256),c=0;c<a.M.length;c++)a.M[c]=[c,0]}else a.U&&a.U.length&&!b&&a.O("instruction history buffer freed"),a.qa=0,a.U=[],a.M=[]}
|
||||
function nz(a,b,c,d){if(!uA(a))return!1;a.P=0;do{b||Og(a)&&Rg(a,a.G.ea,0);try{var e=a.G.Jg(b);0<e&&(a.P+=e,Nd(a.G,e,!0),Id(a.G,e),a.ba++)}catch(g){if("number"!=typeof g){var f=g;a.P=0;Mb(a.G,f.stack||f.message)}}}while(a.G.M&3312);!1!==d&&Fd(a.G);sA(a,c||!1);return 0<a.P}function rk(a,b){return a.G&&Gd(a.G,b)||!1}function sA(a,b){void 0===b&&(b=!0);a.N=Py(a,z(a.G),a.G.ba.T);b&&1!=a.K?vA(a):wA(a)}
|
||||
function uA(a,b){var c;(c=!a.G||!Ob(a.G))||(c=a.G,c.aa.ac?c=!0:(c.O(c.toString()+" not powered"),c=!1),c=!c);return c||a.G.aa.Xa?(b||a.O("cpu busy or unavailable, command ignored"),!1):!Nb(a.G)}l.$b=function(a,b){return!b&&(this.reset(!0),a&&this.restore&&!this.restore(a))?!1:!0};l.Zb=function(a,b){b&&this.O(a?"suspending":"shutting down");return a?this.save():!0};l.reset=function(a){Ry(this);this.ba=this.ka=0;this.Aa=null;this.P=0;this.N=Py(this,z(this.G),this.G.ba.T);xA(this);a||this.aa.Xa||sA(this)};
|
||||
l.save=function(){var a=new ag(this);a.set(0,tz(this.N));a.set(1,tz(this.Ca));a.set(2,tz(this.ea));a.set(3,[this.C,this.fa,this.dc]);a.set(4,this.F);a.set(5,[this.B,this.V,this.L]);return a.data()};
|
||||
l.restore=function(a){var b=0;a[b]&&(this.N=uz(a[b++]));a[5]&&(this.Ca=uz(a[b++]));a[b]&&(this.ea=uz(a[b++]));a[b]&&(this.C=a[b][0],"string"==typeof this.C&&(this.C=[this.C]),this.fa=a[b][1],this.dc|=a[b][2],b++);a[b]&&(this.F=a[b++]);a[b]&&(yA(this,this.B,a[b][0]),yA(this,this.V,a[b][1]),yA(this,this.L,a[b][2]));return!0};l.start=function(a,b){this.K||this.O("running");this.aa.Xa=!0;this.lb=a;this.hd=b};
|
||||
l.stop=function(a,b){if(this.aa.Xa){this.aa.Xa=!1;this.P=b-this.hd;if(!this.K){b="stopped";if(this.P){a-=this.lb;var c=0<a?Math.round(1E3*this.P/a):0;b+=" (";Og(this)&&(b+=this.ba+" opcodes, ",this.ka-=this.ba,this.ba=0);b+=this.P+" cycles, "+a+" ms, "+c+" hz)"}else r(this,-2147483648)&&(b+=" (use the 't' command to execute blocked faults)");this.O(b)}sA(this,!0);this.cd();xA(this,this.G.ea)}};function Og(a){return 1<a.B.length||!!a.wa||r(a,16)}
|
||||
function Rg(a,b,c){var d=a.G;if(0<c&&(a.wa&&!--a.wa||zA(a,b,1,a.B)))return!0;0<=c&&a.M.length&&(a.ba++,b=Ag(d,b),null!=b&&(a.M[b][1]++,b=a.U[a.qa],sz(a,b,z(d),d.ba.T),b.ej=Jd(d),++a.qa==a.U.length&&(a.qa=0)));return!1}function nd(a,b,c){return zA(a,b,c||1,a.V)?(rk(a,!0),!0):!1}function pd(a,b,c){return zA(a,b,c||1,a.L)?(rk(a,!0),!0):!1}function Sc(a,b,c){a.O("break on input from port "+wa(b)+": "+q(c));rk(a,!0)}function Wc(a,b,c){a.O("break on output to port "+wa(b)+": "+q(c));rk(a,!0)}
|
||||
function Qy(a){var b;a.B=["bp"];if(a.V)for(b=1;b<a.V.length;b++){var c=a.V[b];pf(a.G,a.Vb(c),!1,c.type==qz)}a.V=["br"];if(a.L)for(b=1;b<a.L.length;b++)c=a.L[b],pf(a.G,a.Vb(c),!0,c.type==qz);a.L=["bw"];a.Ia=0}
|
||||
l.rd=function(a,b,c,d){var e=!0;c||lz(this,a,b,!1,!0);if(a!=this.B){var f=this.Vb(b);if(-1===f)this.O("invalid address: "+mz(b)),e=!1;else{var g=this.G,h=b.type==qz;(h?g.sc:g.Z)[f>>>g.lb].rd(f&g.Fb,a==this.L);h&&uc(g)}}e&&(a.push(b),c?(null!=b.za&&(b.T=null),b.wd=!0):(d||AA(this,a,a.length-1,"set"),Ry(this)));return e};
|
||||
function lz(a,b,c,d,e){for(var f=!1,g=BA(a,a.Vb(c)),h=1;h<b.length;h++){var k=b[h];if(-1!==g&&g==BA(a,a.Vb(k))||-1===g&&c.T==k.T&&c.Ja==k.Ja)if(!d||k.wd){f=!0;k.wd||e||AA(a,b,h,"cleared");b.splice(h,1);b!=a.B&&pf(a.G,g,b==a.L,k.type==qz);k.wd||Ry(a);break}}return f}function CA(a,b){for(var c=1;c<b.length;c++)AA(a,b,c);return b.length-1}function AA(a,b,c,d){c=b[c];a.O(b[0]+" "+mz(c)+(d?" "+d:c.Tk?' "'+c.Tk+'"':""))}
|
||||
function yA(a,b,c){if(c[0]==b[0])for(var d=1;d<c.length;d++){var e=c[d];a.rd(b,e,e.wd,!0)}}function xA(a,b){if(void 0!==b)zA(a,b,1,a.B,!0),a.K=0;else for(b=1;b<a.B.length;b++){var c=a.B[b];if(c.wd){if(!lz(a,a.B,c,!0))break;b=0}}}function BA(a,b){-1!==b&&(a=a.xa&-65536,(b&a)==a&&(b&=1048575));return b}
|
||||
function zA(a,b,c,d,e){var f=!1;if(!a.Ia++){b=BA(a,b);r(a,-2147483632)&&204==Ag(a.G,b)&&(f=!0);for(var g=1;!f&&g<d.length;g++){var h=d[g];if(!e||h.wd){null!=h.T&&(h.za=null);for(var k=BA(a,a.Vb(h)),m=0;m<c;m++)if(b+m==k){var p;f=!0;h.wd&&(lz(a,d,h,!0),e=!0);if(p=h.ll){f=!1;for(var v=0;v<p.length;v++)if(!DA(a,p[v],!0)){if(p[v].indexOf("if")){f=!0;break}for(var u=v+1;u<p.length&&p[u].indexOf("else");u++)v++;if(u==p.length){f=!0;break}}a.G.aa.Xa||(f=!0)}if(f){e||AA(a,d,g,"hit");break}}}}}a.Ia--;return f}
|
||||
function EA(a,b,c,d){for(var e=Py(a,b.Ja,b.T,b.za,b.type),f=a.ya(b,1),g=4,h=0,k=!1,m=!1;(102==f||103==f)&&g--;)102==f?k||(b.Jb=!b.Jb,k=!0):m||(b.ec=!b.ec,m=!0),h++,f=a.ya(b,1);g=-1;var p=FA;k=a.pa[f];m=k[0];m==GA&&(m=a.ya(b,1),k=HA[m]||Vy,f|=m<<8,m=k[0]);if(m==IA){g=a.ya(b,1);var v=null;var u=g>>3&7,A=(3>(g>>6&3)?0:48)+u;(217==f||219==f)&&52<=A&&(A=u<<4|g&7);(u=JA[f])&&(v=u[A]);v&&(p=KA,k=v,m=k[0])}m>=p.length&&(g=a.ya(b,1),k=LA[m-p.length][g>>3&7],m=k[0]);p=p[m];u=k.length-1;v="";b.Jb&&(m==MA?p=
|
||||
"CWDE":m==NA?p="CDQ":m>=OA&&m<=PA&&(p+="D"));if(164<=f&&167>=f||170<=f&&175>=f)u=0,b.Jb&&"W"==p.slice(-1)&&(p=p.slice(0,-1)+"D");f=-1;A=!0;for(var J=1;J<=u;J++){var H="";var G=k[J];if(void 0!==G){0>f&&(f=G>>QA);m==RA&&(f==SA?v="[%800]":f==TA&&(v="ES:["+(b.ec?"E":"")+"DI]"));var P=G&UA;if(P!=VA)if(P==WA)A=!1;else{var I=G&XA;if(I>=R)if(0>g&&(g=a.ya(b,1)),I<YA){I=a;H=G;var oa=u;G=b;var Z="",hb=g>>6,ra=g&7;if(3>hb){P=0==p.indexOf("FI");if(!hb&&(!G.ec&&6==ra||G.ec&&5==ra))hb=2;else{if(G.ec)if(4!=ra)ra+=
|
||||
8;else{Z=I;var ib=hb,Sb=G,Jb=Z.ya(Sb,1),cc=Jb>>6,vc=Jb>>3&7;Jb&=7;var jb="";if(ib||5!=Jb)jb=ZA[Jb+8];4!=vc&&(jb&&(jb+="+"),jb+=ZA[vc+8],cc&&(jb+="*"+(1<<cc)));ib||5!=Jb||(jb&&(jb+="+"),jb+=q(iz(Z,Sb,4)));Z=jb}Z||(Z=ZA[ra])}1==hb?(I=I.ya(G,1),Z=I&128?Z+("-"+q(-(I<<24>>24),2)):Z+("+"+q(I,2))):2==hb&&(Z&&(Z+="+"),G.ec?(I=iz(I,G,4),Z+=q(I)):(I=I.Vc(G,2),Z+=q(I,4)));Z="["+Z+"]";if(1==oa){I="";H&=UA;H==S&&(H=G.Jb?$A:T);switch(H){case aB:I="FAR";break;case U:I="BYTE";break;case T:if(P){I="INT16";break}I=
|
||||
"WORD";break;case $A:I="DWORD";break;case bB:if(P){I="INT32";break}case cB:I="REAL32";break;case dB:if(P){I="INT64";break}case eB:I="REAL64";break;case fB:I="REAL80";break;case gB:I="BCD80"}I&&(Z=I+" "+Z)}}else Z=hB(I,ra,H,G);H=Z}else H=I==YA?hB(a,g&7,G,b):hB(a,g>>3&7,G,b);else if(I==iB)H="1";else if(I==V){H=a;P=G;I=b;G=" ";switch(P&UA){case U:P&W&&(G=q(H.ya(I,1),2));break;case jB:G=q(H.ya(I,1)<<24>>24,I.Jb?8:4);break;case S:if(I.Jb){G=q(iz(H,I,4));break}case T:G=q(H.Vc(I,2),4);break;case aB:I=Py(H,
|
||||
H.nb(I,!0),H.Vc(I,2),null,I.type,I.Jb,I.ec);G=mz(I);H=kB(H,I);H[0]&&(G+=" ("+H[0]+")");break;default:G="imm("+wa(P)+")"}H=G}else I==lB?(b.ec?(H=8,G=iz(a,b,4)):(H=4,G=a.Vc(b,2)),H="["+q(G,H)+"]"):I==mB?(H=P==U?a.ya(b,1)<<24>>24:a.nb(b,!0),G=b.Ja+H&(b.Jb?-1:65535),H=q(G,b.Jb?8:4),G=kB(a,Py(a,G,b.T)),G[0]&&(H+=" ("+G[0]+")")):I==X?H=P==nB?"ST":P==oB?"ST("+(g&7)+")":hB(a,(G&pB)>>8,G,b):I==qB?H=hB(a,(G&pB)>>8,rB,b):I==sB?H="DS:[SI]":I==tB&&(H="ES:[DI]");if(!H||!H.length){v="INVALID";break}0<v.length&&
|
||||
(v+=",");v+=H||"???"}}}g="";k=mz(e)+" ";if(-1!==e.za&&-1!==b.za){do if(g+=q(a.ya(e,1),2),null==e.za)break;while(e.za!=b.za)}k+=Ca(g,e.ec?25:17);k+=Ca(p,8);v&&(k+=" "+v);a.G.da<uB[f]&&(c=uB[f]+" CPU only");c&&A&&(k=Ca(k,e.ec?74:62)+";"+c,k=a.G.aa.Ie?k+("cycles="+Jd(a.G).toString()+" cs="+q(a.G.Y.uf)):k+(null!=d?"="+d.toString():""));vB(b,A,h);return k}
|
||||
function hB(a,b,c,d){var e=c&XA;if(e==rB){if(b>aA||b>=$z&&80386>a.G.da)return"??";b+=Vz}else if(e==wB)b+=jA;else if(e==xB)b+=yB;else if(e==zB)b+=AB;else if(a=c&UA,a>=T&&(b<Mz&&(b+=Mz-Ez),a==$A||a==S&&d.Jb))b+=bA-Mz;return Cz[b]}
|
||||
function BB(a,b){switch(b){case "V":a=mg(a.G);break;case "D":a=a.G.P&1024;break;case "I":a=a.G.P&512;break;case "T":a=a.G.P&256;break;case "S":a=lg(a.G);break;case "Z":a=kg(a.G);break;case "A":a=jg(a.G);break;case "P":a=ig(a.G);break;case "C":a=hg(a.G);break;default:a=0}return b+(a?"1":"0")+" "}function az(a){return q(a,a&-65536?8:4)}function CB(a,b){b>=Mz&&b<=Tz&&4<a.ra&&(b+=bA-Mz);var c=Cz[b];b==jA&&80286==a.G.da&&(c="MS");return c+"="+Dz(a,b)+" "}
|
||||
function DB(a,b,c){return b.hc+"="+q(b.T,4)+(c?"["+q(b.ua,a.la)+","+az(b.Sa)+"]":"")}function EB(a,b,c,d,e){return b+"="+(null!=c?q(c,4):"")+"["+q(d,a.la)+","+q(e-d,4)+"]"}
|
||||
function FB(a,b){void 0===b&&(b=oz(a));var c=CB(a,Mz)+CB(a,Pz)+CB(a,Nz)+CB(a,Oz)+(4<a.ra?"\n":"")+CB(a,Qz)+CB(a,Rz)+CB(a,Sz)+CB(a,Tz)+"\n"+DB(a,a.G.U,b)+" "+DB(a,a.G.Fa,b)+" "+DB(a,a.G.pa,b)+" ";if(b){var d="TR="+q(a.G.ka.T,4),e=a.oa;e="A20="+(e.J||e.N!=e.C?"OFF ":"ON ");80386>a.G.da&&(d="\n"+d,c+=e,e="");c+="\n"+DB(a,a.G.ba,b)+" ";80386<=a.G.da&&(e+="\n",c+=DB(a,a.G.Ka,b)+" "+DB(a,a.G.La,b)+"\n");c+=EB(a,"LD",a.G.Gb.T,a.G.Gb.ua,a.G.Gb.ua+a.G.Gb.Sa)+" "+EB(a,"GD",null,a.G.Kb,a.G.Jc)+" "+EB(a,"ID",
|
||||
null,a.G.Qb,a.G.$c)+" ";c=c+(d+" "+e)+CB(a,jA);80386<=a.G.da&&(c+=CB(a,lA)+CB(a,mA))}else 80386<=a.G.da&&(c+=DB(a,a.G.Ka,b)+" "+DB(a,a.G.La,b)+" ");return c+=CB(a,oA)+BB(a,"V")+BB(a,"D")+BB(a,"I")+BB(a,"T")+BB(a,"S")+BB(a,"Z")+BB(a,"A")+BB(a,"P")+BB(a,"C")}l.cj=function(a,b){return a[0]>b[0]?1:a[0]<b[0]?-1:0};
|
||||
function jq(a,b,c,d,e,f,g,h){var k={},m=[],p;for(p in h){var v=h[p];"number"==typeof v&&(h[p]=v={o:v});var u=v.o,A=v.s,J=v.a;if(void 0!==u){void 0!==A&&(k.Ja=u,k.T=A,k.za=null,a.Vb(k),(k.za&-65536)==(a.oa.N&-65536)&&(k.za&=1048575),v.p=k.za);A=m;u=[u>>>0,p];var H=Fa(A,u,a.cj);0>H&&A.splice(-(H+1),0,u)}J&&(v.a=J.replace(/''/g,'"'))}a.F.push({hi:b,mn:c,T:d,Ja:e,za:f,Zm:g,Id:h,Mi:m})}
|
||||
function kz(a,b,c){for(var d=0;d<a.F.length;d++){var e=a.F[d];if(!b||e.hi==b)if(b&&c==e.mn||!b&&c==e.T){a.F.splice(d,1);break}}}function kB(a,b,c){for(var d=[],e=b.Ja>>>0,f=a.Vb(b)>>>0,g=0;g<a.F.length;g++){var h=a.F[g],k=h.T,m=h.Ja>>>0,p=h.za;null!=p&&(p>>>=0);var v=h.Zm;48==k&&(k=40);if(k==b.T&&e>=m&&e<m+v||null!=p&&f>=p&&f<p+v){b=Fa(h.Mi,[e],a.cj);0<=b?GB(a,g,b,d):c&&(b=~b,GB(a,g,b-1,d),GB(a,g,b,d));break}}return d}
|
||||
function GB(a,b,c,d){var e={},f=a.F[b].Mi,g=0,h=null;0<=c&&c<f.length&&(g=f[c][0],h=f[c][1]);h&&(e=a.F[b].Id[h],h="."==h.charAt(0)?null:e.l||h);d.push(h);d.push(g);d.push(e.a);d.push(e.c)}
|
||||
function HB(a,b){if("?"==b)a.O("frequency commands:"),a.O("\tclear\tclear all frequency counts");else{var c=0;if(a.M)if("clear"==b){for(b=0;b<a.M.length;b++)a.M[b]=[b,0];a.O("frequency data cleared");c++}else if(void 0!==b)a.O("unknown frequency command: "+b),c++;else{var d=a.M.slice();d.sort(function(a,b){return b[1]-a[1]});for(b=0;b<d.length;b++){var e=d[b][0],f=d[b][1];f&&(a.O((FA[a.pa[e][0]]+" ").substr(0,5)+" ("+va(e)+"): "+f+" times"),c++)}}c||a.O("no frequency data available")}}
|
||||
function IB(a,b){var c=b.match(/^\s*([A-Z_]?[A-Z0-9_]*)\s*(=?)\s*(.*)$/i);if(c){if(!c[1])return Ny(a)||a.O("no variables"),!0;if(!c[2])return Ny(a,c[1]);if(!c[3])return delete a.I[c[1]],!0;b=Ky(a,c[3]);return void 0!==b?(a.I[c[1]]={value:b,Vo:void 0},!0):!1}a.O("invalid assignment:"+b);return!1}
|
||||
function JB(a,b,c){var d=null;if(b=wz(a,b,!0)){a.Vb(b);var e=kB(a,b,!0);if(e.length){var f;if(e[0]){var g="";(f=b.Ja-e[1])&&(g=" + "+wa(f));f=e[0]+" ("+bz(e[1],b.T)+")"+g;c&&a.O(f);d=f}4<e.length&&e[4]&&(g="",(f=e[5]-b.Ja)&&(g=" - "+wa(f)),f=e[4]+" ("+bz(e[5],b.T)+")"+g,c&&a.O(f),d||(d=f))}else c&&a.O("no symbols")}return d}
|
||||
function KB(a,b){if(b[1]&&"?"!=b[1]){var c="json"==b[1],d=0,e=0,f=c?{}:wz(a,b[1]);if(f){var g=Ey(a,b[2],"drive #");if(void 0!==g){if(!c){d=Ey(a,b[3],"sector #");if(void 0===d)return;e=Ey(a,b[4],"# of sectors");void 0===e&&(e=1)}var h=a.cb;2<=g&&a.Pa&&(g-=2,h=a.Pa);if(h){var k=h.dj(g);if(k)if(k.va)if(c)LB(a.na),a.O(hw(k.va));else if(h.Vk(k,d,e)){var m=0,p=!1;for(b=mz(f);!p&&0<k.yb--;)(function(a,b){h.te(k,function(c){0>c?(a.O("out of data at address "+mz(b)),p=!0):(a.ub(b,c,1,!0),m++)})})(a,f);Fd(a.G,
|
||||
!0);a.O(m+" bytes read at "+b)}else a.O("sector "+d+" request out of range");else a.O("drive "+g+" not loaded");else a.O("invalid drive: "+g)}else a.O("disk controller not present")}}}else a.O("load commands:"),a.O("\tl [address] [drive #] [sector #] [# sectors]")}
|
||||
function vA(a,b){var c;if(b&&"?"==b[1])a.O("register commands:"),a.O("\tr\tdump registers"),a.Kc&&a.O("\trfp\tdump floating-point registers"),a.O("\trp\tdump all registers"),a.O("\trx [#]\tset flag or register x to [#]");else{null==c&&(c=!0);if(b&&1<b.length){var d=b[1];if(a.Kc&&"fp"==d){c=a.Kc;var e=Ug(c);b=c.bc;for(var f=0;8>f;f++){var g=c;d=null;if(f<g.F.length){d=[];var h=g.B+f&7;d[0]=h;d[1]=wh(g,h);d[2]=g.F[h];h<<=1;d[3]=g.L[h];d[4]=g.L[h+1];g=Ah(g,d[3],d[4]);d[5]=g[0];d[6]=g[1];d[7]=g[2]}if(!d)break;
|
||||
a.O("ST"+f+": "+Ca(d[2].toFixed(15),24,!0)+" "+q(d[4])+","+q(d[3])+" ["+d[0]+":"+MB[d[1]]+"]")}a.O(" B3SSS210ESPUOZDI xxxIRRPPIxPUOZDI");a.O("SW: "+ta(e,16)+" ("+wa(e)+") CW: "+ta(b,16)+" ("+wa(b)+")");return}if("p"==d)e=80286<=a.G.da;else{f=d.indexOf("=");if(0<f)b=d.substr(f+1),d=d.substr(0,f);else if(2<b.length)b=b[2];else{a.O("missing value for "+b[1]);return}g=Ky(a,b);if(void 0===g)return;f=!0;h=d.toUpperCase();"E"==h.charAt(0)&&4>=a.ra&&(h=null);switch(h){case "AL":a.G.D=
|
||||
a.G.D&-256|g&255;break;case "AH":a.G.D=a.G.D&-65281|g<<8&255;break;case "AX":a.G.D=a.G.D&-65536|g&65535;break;case "BL":a.G.H=a.G.H&-256|g&255;break;case "BH":a.G.H=a.G.H&-65281|g<<8&255;break;case "BX":a.G.H=a.G.H&-65536|g&65535;break;case "CL":a.G.I=a.G.I&-256|g&255;break;case "CH":a.G.I=a.G.I&-65281|g<<8&255;break;case "CX":a.G.I=a.G.I&-65536|g&65535;break;case "DL":a.G.L=a.G.L&-256|g&255;break;case "DH":a.G.L=a.G.L&-65281|g<<8&255;break;case "DX":a.G.L=a.G.L&-65536|g&65535;break;case "SP":ne(a.G,
|
||||
y(a.G)&-65536|g&65535);break;case "BP":a.G.N=a.G.N&-65536|g&65535;break;case "SI":a.G.K=a.G.K&-65536|g&65535;break;case "DI":a.G.J=a.G.J&-65536|g&65535;break;case "DS":te(a.G,g);break;case "ES":ue(a.G,g);break;case "SS":me(a.G,g);break;case "CS":cg(a.G,g);a.N=Py(a,z(a.G),a.G.ba.T);break;case "IP":case "EIP":C(a.G,g);a.N=Py(a,z(a.G),a.G.ba.T);break;case "PC":case "PS":ye(a.G,g);break;case "C":g?og(a.G):pg(a.G);break;case "P":g?(d=a.G,d.resultType&=-3,d.P|=4):(d=a.G,d.resultType&=-3,d.P&=-5);break;
|
||||
case "A":g?wg(a.G):ug(a.G);break;case "Z":g?xg(a.G):vg(a.G);break;case "S":g?(d=a.G,d.resultType&=-17,d.P|=128):(d=a.G,d.resultType&=-17,d.P&=-129);break;case "I":g?(d=a.G,d.P|=512):(d=a.G,d.P&=-513);break;case "D":g?(d=a.G,d.P|=1024):(d=a.G,d.P&=-1025);break;case "V":g?qg(a.G):rg(a.G);break;default:var k=!0;if(80286<=a.G.da)switch(k=!1,h){case "MS":yg(a.G,g);break;case "TR":-1===a.G.ka.load(g)&&(f=!1);break;default:if(k=!0,80386<=a.G.da)switch(k=!1,h){case "EAX":a.G.D=g;break;case "EBX":a.G.H=g;
|
||||
break;case "ECX":a.G.I=g;break;case "EDX":a.G.L=g;break;case "ESP":ne(a.G,g);break;case "EBP":a.G.N=g;break;case "ESI":a.G.K=g;break;case "EDI":a.G.J=g;break;case "FS":a.G.Ka.load(g);break;case "GS":a.G.La.load(g);break;case "CR0":a.G.ra=g;fk.call(a.G,g);break;case "CR2":a.G.pd=g;break;case "CR3":a.G.wc=g;a.G.wc=g;uc(a.G);break;default:k=!0}}if(k){a.O("unknown register: "+d);return}}if(!f){a.O("invalid value: "+b);return}Fd(a.G);a.O("updated registers:")}}a.O(FB(a,e));c&&(a.N=Py(a,z(a.G),a.G.ba.T),
|
||||
wA(a,mz(a.N)))}}function NB(a,b){b=Da(b);var c=b.match(/^(['"])(.*?)\1$/);c?a.O(pA(a,c[2])):Ky(a,b,!1)}function OB(a,b,c){for(var d=null,e=b.Ja,f=e,g=1;6>=g&&e;g++){if(2<g){b.Ja=e;b.za=null;var h=EA(a,b);if(0<=h.indexOf("CALL")||c&&0<=h.indexOf("INT")){var k=h.indexOf(" ");if(e+(h.indexOf(" ",k+1)-k-1)/2==f){d=h;break}}}e--}b.Ja=f;return d}
|
||||
function PB(a,b,c){var d="t"!=b;c=Ey(a,c,null,!0)||1;var e=1==c?0:1;"tc"==b&&(e=c,c=1);$a(c,function(){return Rb(a,!0)&&nz(a,e,d,!1)},function(){Fd(a.G);Rb(a,!1)})}function vB(a,b,c){if(a.Zg=b)null!=a.lj&&(a.Jb=a.lj),null!=a.kj&&(a.ec=a.kj),a.lj=a.Jb,a.kj=a.ec;a.Ee=c||0}
|
||||
function wA(a,b,c,d){if(b=wz(a,b,!0)){void 0===d&&(d=1);var e=256;if(void 0!==c){d=wz(a,c,!0);if(!d||d.Ja<b.Ja)return;e=d.Ja-b.Ja+1;0>e&&(e=1);4096<e&&(e=4096);d=-1}c=0;for(vB(b,!0);0<e&&d--;){var f=Qb(a,!1)||a.K?a.P:null;var g=null!=f?"cycles":null,h=kB(a,b),k=b.za;if(h[0]&&d&&(!c&&d||0>h[0].indexOf("+"))){var m=h[0]+":";h[2]&&(m+=" "+h[2]);a.O(m)}h[3]&&(g=h[3],f=null);f=EA(a,b,g,f);b.Zg||d||d++;a.O(f);a.N=b;e-=b.za-k;c++}}}
|
||||
l.zg=function(a,b,c){if(b)if(a){0>this.A&&this.C.length&&(this.A=0);if(0>this.A||a!=this.C[this.A])this.C.splice(0,0,a),this.A=0;this.A--}else a=this.C[this.A+1];b=[];if(a){a=a.toLowerCase().replace(/""/g,"'");var d=0,e=null;c=c||";";for(var f=0;f<=a.length;f++){var g=a.charAt(f);if('"'==g||"'"==g)e?g==e&&(e=null):e=g;else if(g==c&&!e||!g)b.push(Da(a.substring(d,f))),d=f+1}}return b};
|
||||
function DA(a,b,c){var d=!0;try{if(!b.length||"end"==b)a.fa&&(a.O("ended assemble at "+mz(a.ea)),a.N=a.ea,a.fa=!1),b="";else if(!c){var e=">> ";a.G.ra&1&&(e=a.G.P&131072?"-- ":"## ");a.O(e+b)}var f=b.charAt(0);if('"'==f||"'"==f)return!0;a.Aa=null;if(Ob(a)&&0<b.length){a.fa&&(b="a "+mz(a.ea)+" "+b);var g=b.replace(/ +/g," ").split(" ");if(g&&g.length)for(var h=g[0],k=h.charAt(0),m=1;m<h.length;m++){var p=h.charAt(m);if("?"==k||"r"==k||"a">p||"z"<p){g[0]=h.substr(m);g.unshift(h.substr(0,m));break}}switch(g[0].charAt(0)){case "a":var v=
|
||||
wz(a,g[1],!0);if(v)if(a.ea=v,void 0===g[2])a.O("begin assemble at "+mz(v)),a.fa=!0,Fd(a.G);else{a.O("not supported yet");var u=[];if(u.length){for(var A=0;A<u.length;A++)a.ub(v,u[A],1);a.O(EA(a,a.ea))}}break;case "b":a:{var J=g[0],H=g[1],G=b;if("?"==H)a.O("breakpoint commands:"),a.O("\tbi [p]\ttoggle break on input port [p]"),a.O("\tbo [p]\ttoggle break on output port [p]"),a.O("\tbp [a]\tset exec breakpoint at addr [a]"),a.O("\tbr [a]\tset read breakpoint at addr [a]"),a.O("\tbw [a]\tset write breakpoint at addr [a]"),
|
||||
a.O("\tbc [a]\tclear breakpoint at addr [a]"),a.O("\tbl\tlist all breakpoints"),a.O("\tbn [n]\tbreak after [n] instruction(s)");else{var P=J.charAt(1);if("l"==P){var I=0+CA(a,a.B);I+=CA(a,a.V);(I+=CA(a,a.L))||a.O("no breakpoints")}else if("n"==P)a.wa=Ey(a,H),a.O("break after "+a.wa+" instruction(s)");else if(void 0===H)a.O("missing breakpoint address");else{var oa={};if("*"!=H&&(oa=wz(a,H,!0,!0),!oa))break a;H=null==oa.Ja?H:wa(oa.Ja);"c"==P?null==oa.Ja?(Qy(a),a.O("all breakpoints cleared")):lz(a,
|
||||
a.B,oa)||lz(a,a.V,oa)||lz(a,a.L,oa)||a.O("breakpoint missing: "+mz(oa)):"i"==P?a.O("breakpoint "+(Oc(a.oa,oa.Ja)?"enabled":"cleared")+": port "+H+" (input)"):"o"==P?a.O("breakpoint "+(Tc(a.oa,oa.Ja)?"enabled":"cleared")+": port "+H+" (output)"):null!=oa.Ja&&(zz(a,oa,G),"p"==P?a.rd(a.B,oa):"r"==P?a.rd(a.V,oa):"w"==P?a.rd(a.L,oa):a.O("unknown breakpoint command: "+P))}}}break;case "c":LB(a.na);break;case "d":a:{var Z=g,hb,ra=Z[0],ib=Z[1],Sb=Z[2],Jb=Z[3];if("?"==ib){var cc="";for(hb in Zb)a.Fa[hb]&&
|
||||
(cc&&(cc+=","),cc+=hb);cc+=",state,symbols";a.O("dump memory commands:");a.O("\tdb [a] [#] dump # bytes at address a");a.O("\tdw [a] [#] dump # words at address a");a.O("\tdd [a] [#] dump # dwords at address a");a.O("\tdh [#] [#] dump # instructions from history");a.O("\tdi [#] dump descriptor info for IDT #");a.O("\tds [#] dump descriptor info for selector #");cc.length&&a.O("dump extension commands:\n\t"+cc)}else if("state"==ib){var vc=QB(a.na,!0);vc?"console"==Sb?console.log(vc):
|
||||
(LB(a.na),a.O(vc)):a.O("powerOff() error")}else if("symbols"==ib)for(var jb=0;jb<a.F.length;jb++){var kf=a.F[jb],Sd;for(Sd in kf.Id)if("."!=Sd.charAt(0)){var lf=kf.Id[Sd],Fg=lf.o;if(void 0!==Fg){var mf=lf.s;void 0===mf&&(mf=kf.T);var Gg=kf.Id[Sd].l;Gg&&(Sd=Gg);a.O(bz(Fg,mf)+" "+Sd)}}}else{if("ds"==ra||"dg"==ra||"dl"==ra)ra="d",Z=[ra,"desc",ib];"d"==ra&&"page"==ib&&(ra="dp",Z.shift());if("dp"==ra){Z.shift();var Bm=Z[0];if(Bm){var $g=a.Vb(wz(a,Bm));if(-1===$g)a.O("invalid address: "+Bm);else{var wf,
|
||||
Ra=null;if(80386<=a.G.da){var xf=a.oa;Ra={};Ra.Ek=($g&-4194304)>>>20;Ra.Ri=a.G.wc+Ra.Ek;Ra.pb=xf.Z[(Ra.Ri&xf.C)>>>xf.A];Ra.yj=Ra.pb.Nd(Ra.Ek);Ra.Fk=($g&4190208)>>>10;Ra.Si=(Ra.yj&-4096)+Ra.Fk;Ra.qb=xf.Z[(Ra.Si&xf.C)>>>xf.A];Ra.zj=Ra.qb.Nd(Ra.Fk);Ra.nl=(Ra.zj&-4096)+($g&4095)}if(wf=Ra){a.O("linear PDE addr PDE PTE addr PTE physical");a.O("--------- ---------- -------- ---------- -------- ----------");var ij="%"+q($g);ij+=" %%"+Bz(wf.Ri,wf.yj);ij+=" %%"+
|
||||
Bz(wf.Si,wf.zj,!0);ij+=" %%"+q(wf.nl);a.O(ij)}else a.O("unsupported operation")}}else a.O("missing address")}else{if("d"==ra){if("disk"==ib){Z[0]="l";Z[1]="json";KB(a,Z);break a}for(hb in Zb)if(Z[1]==hb){var Nt=a.Fa[hb];Nt?(Z.shift(),Z.shift(),Nt(Z)):a.O("no dump registered for "+ib);break a}ib||(ra=a.mb||"db")}if("dh"==ra){var Ot=ib,Pt=Sb,ah=Jb;ah=void 0===ah?"history":ah;var Qt="",Rt=0,Rc=a.qa,rd=a.U;if(rd.length){var Ac=+Ot||a.Ra,bh=+Pt||10;isNaN(Ac)?Ac=bh:Qt="more ";Ac>rd.length&&(a.O("note: only "+
|
||||
rd.length+" available"),Ac=rd.length);Rc-=Ac;0>Rc&&(null==rd[rd.length-1].T?(Ac=Rc+Ac,Rc=0):Rc+=rd.length);var Cm=[];"call"==Pt&&(bh=1E5,Cm=["CALL"]);for(void 0!==Ot&&a.O(Ac+" instructions earlier:");0<bh&&Rc!=a.qa;){var sd=rd[Rc++];if(null==sd.T)break;var ch=Py(a,sd.Ja,sd.T,sd.za,sd.type,sd.Jb,sd.ec),St=Ac--;null!=sd.ej&&"cycles"==ah&&(St=sd.ej);var Tt=EA(a,ch,ah,St);(!Cm.length||0<=Tt.indexOf(Cm[0]))&&a.O(Tt);ch.Ee&&(Rc+=ch.Ee,bh-=ch.Ee,Ac-=ch.Ee);Rc>=rd.length&&(Rc=0);a.Ra=Ac;Rt++;bh--}}Rt||(a.O("no "+
|
||||
Qt+"history available"),a.Ra=void 0)}else if("di"==ra){Z.shift();var Dm=Z[0];if(Dm){var dh=Ey(a,Dm);if(void 0===dh||0>dh||255<dh)a.O("invalid vector: "+Dm);else{var Ut="&",Vt=!!(a.G.ra&1),Wt=!1,jj=a.G.Qb+(dh<<(Vt?3:2)),Xt=a.G.ja(jj+0),FC=a.G.ja(jj+2);Vt&&(Ut="#",a.G.ja(jj+4)&2048&&(Wt=!0,Xt|=a.G.ja(jj+6)<<16));a.O("dumpIDT("+wa(dh)+"): "+Ut+q(FC,4)+":"+q(Xt,Wt?8:4))}}else a.O("no IDT vector")}else if("dt"==ra)Z.shift(),a.O("no information");else if(ra[1]&&0>"abwd".indexOf(ra[1]))a.O("unrecognized dump command");
|
||||
else{a.mb=ra;var Fe=wz(a,ib);if(Fe&&(null!=Fe.T||null!=Fe.za)){var yf=0;if(Sb){if("l"==Sb.charAt(0))Sb=Sb.substr(1)||Jb,yf=Ey(a,Sb);else{var Yt=wz(a,Sb);if(!Yt)break a;yf=Yt.Ja-Fe.Ja+1}if(0>yf||65536<yf)yf=0}var Ge="",Em=!1,zf="dd"==ra?4:"dw"==ra?2:1,eh=zf*yf||128,Fm=eh+15>>4||1,Gm=4==zf?16:a.D;"a"==ra[1]&&(Em=!0,Fm=25,Gm=160,eh=Fm*Gm);for(;Fm--&&0<eh;){var kj=0,Hm=0,fh,Im="",lj="";ib=mz(Fe);for(fh=Gm;0<fh&&0<eh;fh--){var mj=a.ya(Fe,1);kj|=mj<<(Hm++<<3);Hm==zf&&(Im+=8==a.D?ua(kj,3*zf):q(kj,2*zf),
|
||||
Im+=1==zf?9==fh?"-":" ":" ",kj=Hm=0);lj+=32<=mj&&128>mj?String.fromCharCode(mj):Em?"":".";eh--}Ge&&(Ge+="\n");Ge=Em?Ge+lj:Ge+(ib+" "+Im+Ca(lj,lj.length+3*fh+1,!0))}Ge&&a.O(Ge.replace(/\s*$/,""));a.Ca=Fe}}}}}break;case "e":if("else"==g[0])break;var nj=1,Zt=255,$t=a.ya,au=a.ub;"ew"==g[0]&&(nj=2,Zt=65535,$t=a.Vc,au=a.bl);var bu=nj<<1,cu=g[1];if(null==cu)a.O("edit memory commands:"),a.O("\teb [a] [...] edit bytes at address a"),a.O("\tew [a] [...] edit words at address a");else{var oj=wz(a,cu);if(oj)for(var pj=
|
||||
2;pj<g.length;pj++){var gh=Ky(a,g[pj]);if(void 0===gh){a.O("unrecognized value: "+g[pj]);break}gh&~Zt&&a.O("warning: "+q(gh)+" exceeds "+nj+"-byte value");var GC=$t.call(a,oj);a.O("changing "+mz(oj)+" from "+q(GC,bu,!0)+" to "+q(gh,bu,!0));au.call(a,oj,gh,nj)}}break;case "f":HB(a,g[1]);break;case "g":a:{var du=g[1],HC=b;"gt"==g[0]&&(a.Ga=!0);if(void 0!==du){var Jm=wz(a,du,!0);if(!Jm)break a;zz(a,Jm,HC);a.rd(a.B,Jm,!0)}uA(a,c)&&Hd(a.G,!0,c)}break;case "h":rk(a)||Qb(a,!0)||c||a.O("already halted");
|
||||
break;case "i":if("if"==g[0]){var hh=b.substr(2);hh=Da(hh);if(Ky(a,hh)){c||a.O("true: "+hh);var eu=!0}else c||a.O("false: "+hh),eu=!1;eu||(d=!1);break}if("int"==g[0]){a:switch(Ey(a,g[1])){case 19:al(a,19,a.G.ea,!0);a.ka=a.ba;var Km=!0;break a;case 33:al(a,33,a.G.ea,!0);a.ka=a.ba;Km=!0;break a;default:Km=!1}Km||(d=!1);break}var Lm=g[1];if(Lm&&"?"!=Lm){var Mm=Ey(a,Lm);if(void 0!==Mm){var IC=Qc(a.oa,Mm,1);a.O(wa(Mm)+": "+va(IC))}}else a.O("input commands:"),a.O("\ti [p]\tread port [p]"),a.O("warning: port accesses can affect hardware state");
|
||||
break;case "k":var JC=g[0];if("?"==g[1])a.O("stack trace commands:"),a.O("\tk\tshow frame addresses"),a.O("\tks\tshow symbol information");else{var Nm=0,fu=a.G.ba.T,ih=Py(a),$d=Py(a,y(a.G),a.G.U.T);for(a.O("stack trace for "+mz($d));10>Nm;){for(var td=null,KC=256;$d.Ja>>>0<a.G.Og>>>0;){ih.Ja=a.nb($d,!0);if(null==$d.za||!KC--)break;ih.T=fu;if(td=OB(a,ih))break;ih.T=a.nb($d);if(td=OB(a,ih,!0)){fu=a.nb($d,!0);0<td.indexOf("INT")&&a.nb($d,!0);break}}if(!td||null==td)break;var gu=null;if("ks"==JC){var hu=
|
||||
td.match(/[0-9A-F]+$/);hu&&(gu=JB(a,hu[0]))}td=Ca(td,50)+" ;"+(gu||"stack="+mz($d));a.O(td);Nm++}Nm||a.O("no return addresses found")}break;case "l":if("ln"==g[0]){JB(a,g[1],!0);break}KB(a,g);break;case "m":if("mouse"==g[0]){var Om=g[1],qj=g[2];if(a.H){var iu=1;"-"==qj.charAt(0)&&(iu=-1,qj=qj.substr(1));var He=Ey(a,qj,Om);if(void 0!==He)switch(He=He*iu|0,Om){case "x":a.H.sf(He,0);break;case "y":a.H.sf(0,He);break;case "click":a.H.Xd(He,!0);a.H.Xd(He,!1);break;default:a.O("unknown action: "+Om)}}else a.O("no mouse");
|
||||
break}a:{var ud,vd=null,eb=g[1];"?"==eb&&(eb=void 0);if(void 0!==eb){var ae=0;if("all"==eb)ae=1610481663,eb=null;else if("on"==eb)vd=!0,eb=null;else if("off"==eb)vd=!1,eb=null;else{"keys"==eb&&(eb="key");"kbd"==eb&&(eb="keyboard");for(ud in Zb)if(eb==ud){ae=Zb[ud];vd=!!(a.dc&ae);break}if(!ae){a.O("unknown message category: "+eb);break a}}if(ae)if("on"==g[2])a.dc|=ae,vd=!0;else if("off"==g[2]&&(a.dc&=~ae,vd=!1,536870912==ae)){for(var Pm=0;Pm<a.Ba.length;Pm++)a.O(a.Ba[Pm]);a.Ba=[]}}var LC=0,jh="";for(ud in Zb)if(!eb||
|
||||
eb==ud){var MC=!!(a.dc&Zb[ud]);if(null===vd||vd==MC)jh&&(jh+=","),++LC%10||(jh+="\n\t"),"key"==ud&&(ud="keys"),jh+=ud}void 0===eb&&a.O("message commands:\n\tm [category] [on|off]\tturn categories on/off");a.O((null!==vd?vd?"messages on: ":"messages off: ":"message categories:\n\t")+(jh||"none"));Ry(a)}break;case "o":var Qm=g[1],NC=g[2];if(Qm&&"?"!=Qm){var Rm=Ey(a,Qm,"port #"),Sm=Ey(a,NC);void 0!==Rm&&void 0!==Sm&&(Vc(a.oa,Rm,1,Sm),a.O(wa(Rm)+": "+va(Sm)))}else a.O("output commands:"),a.O("\to [p] [b]\twrite byte [b] to port [p]"),
|
||||
a.O("warning: port accesses can affect hardware state");break;case "p":if("print"==g[0]){NB(a,b.substr(5));break}var ju="pr"==g[0]?1:0,Af=1+ju;if(a.K)a.O("step in progress");else{var ku=!1,Lb=Py(a,z(a.G),a.G.ba.T);do{var Tm=!1;switch(a.ya(Lb)){case 38:case 46:case 54:case 62:case 100:case 101:case 102:case 103:case 240:rz(a,Lb,1);Tm=!0;break;case 204:case 206:a.K=Af;rz(a,Lb,1);break;case 205:case 224:case 225:case 226:a.K=Af;rz(a,Lb,Lb.Jb?4:2);break;case 232:a.K=Af;rz(a,Lb,Lb.Jb?5:3);break;case 154:a.K=
|
||||
Af;rz(a,Lb,Lb.Jb?7:5);break;case 255:var lu=a.nb(Lb)&14591;if(4351==lu||6399==lu)a.K=Af,EA(a,Lb);break;case 243:case 242:rz(a,Lb,1);ku=Tm=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:ku&&(a.K=Af,rz(a,Lb,1))}}while(Tm);a.K?(a.rd(a.B,Lb,!0),uA(a,void 0)&&Hd(a.G,void 0,void 0)||(a.na&&a.na.cd(),a.K=0)):PB(a,ju?"tr":"t")}break;case "r":if("reset"==b){a.na&&a.na.reset();break}vA(a,g);break;case "t":PB(a,g[0],g[1]);
|
||||
break;case "u":wA(a,g[1],g[2],8);break;case "v":if("var"==g[0]){IB(a,b.substr(3))||(d=!1);break}a.O("PCx86 version 1.37.1 ("+a.G.da+",RELEASE,NOPREFETCH"+(Vb?",TYPEDARRAYS":",LONGARRAYS")+",NOBACKTRACK)");a.O(Oa());break;case "x":a:if(g[1]&&"?"!=g[1])switch(g[1]){case "cs":var kh;void 0!==g[3]&&(kh=+g[3]);switch(g[2]){case "int":a.G.Y.Re=kh;break;case "start":a.G.Y.wf=kh;break;case "stop":a.G.Y.Te=kh;break;default:a.O("unknown cs option");break a}void 0!==kh&&Ed(a.G);a.O("checksums "+(a.G.aa.Ie?"enabled":
|
||||
"disabled"));break;case "sp":void 0!==g[2]&&(Ld(a.G,+g[2])||a.O("warning: using 1x multiplier, previous target not reached"));a.O("target speed: "+(a.G.Y.pe.toFixed(2)+"Mhz")+" ("+a.G.Y.Ad+"x)");break;default:a.O("unknown option: "+g[1])}else a.O("execution options:"),a.O("\tcs int #\tset checksum cycle interval to #"),a.O("\tcs start #\tset checksum cycle start count to #"),a.O("\tcs stop #\tset checksum cycle stop count to #"),a.O("\tsp #\t\tset speed multiplier to #");break;case "?":if(g[1]){NB(a,
|
||||
b.substr(1));break}var Um="commands:",Vm;for(Vm in RB)Um+="\n"+Ca(Vm,7)+RB[Vm];Og(a)||(Um+="\nnote: frequency/history disabled if no exec breakpoints");a.O(Um);break;default:a.O("unknown command: "+b),d=!1}}}catch(nu){a.O("debugger error: "+(nu.stack||nu.message)),d=!1}return d}function Ty(a,b,c){b=a.zg(b,c);for(var d in b)if(!DA(a,b[+d]))return!1;return!0}
|
||||
var rA={16:262144,19:524288,21:32768,22:65536,28:2048,33:134217728,51:16777216},qA=[26,28,40,42,109],RB={"?":"help/print","a [#]":"assemble","b [#]":"breakpoint",c:"clear output","d [#]":"dump memory","e [#]":"edit memory",f:"frequencies","g [#]":"go [to #]",h:"halt","i [#]":"input port #","if":"eval expression",k:"stack trace",l:"load sector(s)",ln:"list nearest symbol(s)",m:"messages",mouse:"mouse action","o [#]":"output port #",p:"step over",print:"print expression",r:"dump/set registers",reset:"reset machine",
|
||||
"t [#]":"trace","u [#]":"unassemble",x:"execution options",v:"print version","var":"assign variable"},xz=0,pz=1,Zy=2,Az=3,yz=4,qz=5,MA=18,NA=28,IA=36,RA=80,OA=104,PA=107,GA=176,FA="INVALID AAA AAD AAM AAS ADC ADD AND ARPL AS: BOUND BSF BSR BT BTC BTR BTS CALL CBW CLC CLD CLI CLTS CMC CMP CMPSB CMPSW CS: CWD DAA DAS DEC DIV DS: ENTER ES: ESC FS: GS: HLT IBTS IDIV IMUL IN INC INS INT INT3 INTO IRET JBE JC JCXZ JG JGE JL JLE JMP JA JNC JNO JNP JNS JNZ JO JP JS JZ LAHF LAR LDS LEA LEAVE LES LFS LGDT LGS LIDT LLDT LMSW LOADALL LOCK LODSB LODSW LOOP LOOPNZ LOOPZ LSL LSS LTR MOV MOVSB MOVSW MOVSX MOVZX MUL NEG NOP NOT OR OS: OUT OUTS POP POPA POPF PUSHF PUSHA PUSH RCL RCR REPNZ REPZ RET RETF ROL ROR SAHF SALC SAR SBB SCASB SCASW SETBE SETC SETG SETGE SETL SETLE SETNBE SETNC SETNO SETNP SETNS SETNZ SETO SETP SETS SETZ SGDT SHL SHLD SHR SHRD SIDT SLDT SMSW SS: STC STD STI STOSB STOSW STR SUB TEST VERR VERW WAIT XBTS XCHG XLAT XOR".split(" "),
|
||||
KA="FLD FST FSTP FXCH FILD FIST FISTP FBLD FBSTP FADD FADDP FIADD FSUB FSUBP FISUB FSUBR FSUBRP FISUBR FMUL FMULP FIMUL FDIV FDIVP FIDIV FDIVR FDIVRP FIDIVR FSQRT FSCALE FPREM FRNDINT FXTRACT FABS FCHS FCOM FCOMP FCOMPP FICOM FICOMP FTST FXAM FPTAN FPATAN F2XM1 FYL2X FYL2XP1 FLDZ FLD1 FLDPI FLDL2T FLDL2E FLDLG2 FLDLN2 FINIT FNINIT FDISI FNDISI FENI FNENI FLDCW FSTCW FNSTCW FSTSW FNSTSW FCLEX FNCLEX FSTENV FNSTENV FLDENV FSAVE FNSAVE FRSTOR FINCSTP FDECSTP FFREE FFREEP FNOP FWAIT FSETPM FSINCOS FSTSWAX".split(" "),
|
||||
MB=["VALID","ZERO ","SPEC ","EMPTY"],SA=2,TA=3,uB=[8086,80186,80286,80386],Ez=0,Fz=1,Gz=2,Hz=3,Iz=4,Jz=5,Kz=6,Lz=7,Mz=8,Nz=9,Oz=10,Pz=11,Qz=12,Rz=13,Sz=14,Tz=15,Vz=16,Uz=22,oA=23,bA=24,cA=25,dA=26,eA=27,fA=28,gA=29,hA=30,iA=31,jA=32,kA=33,lA=34,mA=35,yB=40,AB=48,nA=56,Cz=["AL","CL","DL","BL","AH","CH","DH","BH","AX","CX","DX","BX","SP","BP","SI","DI","ES","CS","SS","DS","FS","GS","IP","PS","EAX","ECX","EDX","EBX","ESP","EBP","ESI","EDI","CR0","CR1","CR2","CR3",null,null,null,null,"DR0","DR1","DR2",
|
||||
"DR3",null,null,"DR6","DR7",null,null,null,null,null,null,"TR6","TR7","EIP"],Wz=0,Xz=1,Yz=2,Zz=3,$z=4,aA=5,ZA="BX+SI BX+DI BP+SI BP+DI SI DI BP BX EAX ECX EDX EBX ESP EBP ESI EDI".split(" "),UA=15,XA=240,pB=3840,VA=0,U=1,jB=2,T=3,S=4,$A=5,aB=7,WA=8,nB=9,oB=10,bB=11,cB=11,dB=12,eB=12,fB=13,gB=14,V=0,iB=16,lB=32,mB=48,sB=64,tB=80,X=96,qB=112,R=128,YA=160,rB=192,wB=208,xB=224,zB=240,SB=Ez<<8|X|U,TB=Fz<<8|X|U,UB=Mz<<8|X|S,VB=Nz<<8|X|S,WB=Oz<<8|X|S,XB=Pz<<8|X|S,YB=Qz<<8|X|S,ZB=Rz<<8|X|S,$B=Sz<<8|X|S,aC=
|
||||
Tz<<8|X|S,bC=Wz<<8|qB|T,cC=Xz<<8|qB|T,dC=Yz<<8|qB|T,eC=Zz<<8|qB|T,fC=$z<<8|qB|T,gC=aA<<8|qB|T,W=12288,hC=SA<<14,Y=TA<<14,QA=14,tA=1E3,Vy=[0,VA],Wy=[GA,T|W],Uy=[[6,R|U|W,U|4272],[6,R|S|W,S|4272],[6,176|U|W,R|U|4096],[6,176|S|W,R|S|4096],[6,SB|W,V|U|4096],[6,UB|W,V|S|4096],[108,bC|4096],[103,bC|8192],[99,R|U|W,U|4272],[99,R|S|W,S|4272],[99,176|U|W,R|U|4096],[99,176|S|W,R|S|4096],[99,SB|W,V|U|4096],[99,UB|W,V|S|4096],[108,cC|4096],[103,cC|8192],[5,R|U|W,U|4272],[5,R|S|W,S|4272],[5,176|U|W,R|U|4096],
|
||||
[5,176|S|W,R|S|4096],[5,SB|W,V|U|4096],[5,UB|W,V|S|4096],[108,dC|4096],[103,dC|8192],[120,R|U|W,U|4272],[120,R|S|W,S|4272],[120,176|U|W,R|U|4096],[120,176|S|W,R|S|4096],[120,SB|W,V|U|4096],[120,UB|W,V|S|4096],[108,eC|4096],[103,eC|8192],[7,R|U|W,U|4272],[7,R|S|W,S|4272],[7,176|U|W,R|U|4096],[7,176|S|W,R|S|4096],[7,SB|W,V|U|4096],[7,UB|W,V|S|4096],[35,WA],[29],[154,R|U|W,U|4272],[154,R|S|W,S|4272],[154,176|U|W,R|U|4096],[154,176|S|W,R|S|4096],[154,SB|W,V|U|4096],[154,UB|W,V|S|4096],[27,WA],[30],[162,
|
||||
R|U|W,U|4272],[162,R|S|W,S|4272],[162,176|U|W,R|U|4096],[162,176|S|W,R|S|4096],[162,SB|W,V|U|4096],[162,UB|W,V|S|4096],[147,WA],[1],[24,R|U|4096,U|4272],[24,R|S|4096,S|4272],[24,U|4272,R|U|4096],[24,S|4272,R|S|4096],[24,SB|4096,V|U|4096],[24,UB|4096,V|S|4096],[33,WA],[4],[44,UB|W],[44,VB|W],[44,WB|W],[44,XB|W],[44,YB|W],[44,ZB|W],[44,$B|W],[44,aC|W],[31,UB|W],[31,VB|W],[31,WB|W],[31,XB|W],[31,YB|W],[31,ZB|W],[31,$B|W],[31,aC|W],[108,UB|4096],[108,VB|4096],[108,WB|4096],[108,XB|4096],[108,YB|4096],
|
||||
[108,ZB|4096],[108,$B|4096],[108,aC|4096],[103,UB|8192],[103,VB|8192],[103,WB|8192],[103,XB|8192],[103,YB|8192],[103,ZB|8192],[103,$B|8192],[103,aC|8192],[PA,VA|hC],[OA,VA|hC],[10,S|4272|hC,R|S|4096],[8,R|T|8192,T|4272],[37,WA|Y],[38,WA|Y],[100,WA|Y],[9,WA|Y],[108,V|S|4096|hC],[42,176|T|W|hC,R|S|4096,V|S|4096],[108,V|jB|4096|hC],[42,T|8368|hC,R|S|4096,V|U|4096],[45,tB|U|8192|hC,WB|4096],[45,tB|S|8192|hC,WB|4096],[102,WB|4096|hC,sB|U|4096],[102,WB|4096|hC,sB|S|4096],[64,mB|U|4096],[60,mB|U|4096],[51,
|
||||
mB|U|4096],[59,mB|U|4096],[67,mB|U|4096],[63,mB|U|4096],[50,mB|U|4096],[58,mB|U|4096],[66,mB|U|4096],[62,mB|U|4096],[65,mB|U|4096],[61,mB|U|4096],[55,mB|U|4096],[54,mB|U|4096],[56,mB|U|4096],[53,mB|U|4096],[163,R|U|W,V|U|4096],[164,R|S|W,V|S|4096],[163,R|U|W,V|U|4096],[165,R|S|W,V|U|4096],[155,R|U|4096,U|4272],[155,R|S|4096,S|4272],[160,176|U|W,R|U|W],[160,176|S|W,R|S|W],[90,R|U|8192,U|4272],[90,R|S|8192,S|4272],[90,U|8368,R|U|4096],[90,S|8368,R|S|4096],[90,R|S|8192,rB|T|4096],[71,S|8368,144|S],[90,
|
||||
rB|T|8192,R|S|4096],[103,R|S|8192],[97],[160,UB|W,VB|W],[160,UB|W,WB|W],[160,UB|W,XB|W],[160,UB|W,YB|W],[160,UB|W,ZB|W],[160,UB|W,$B|W],[160,UB|W,aC|W],[MA],[NA],[17,V|aB|4096],[158],[106],[105],[117],[68],[90,SB|8192,lB|U|4096],[90,UB|8192,lB|S|4096],[90,lB|U|8192,SB|4096],[90,lB|S|8192,UB|4096],[91,tB|U|8192,sB|U|4096],[92,tB|S|8192,sB|S|4096],[25,tB|U|4096,sB|U|4096],[26,tB|S|4096,sB|S|4096],[155,SB|4096,V|U|4096],[155,UB|4096,V|S|4096],[151,tB|U|8192,SB|4096],[152,tB|S|8192,UB|4096],[82,SB|8192,
|
||||
sB|U|4096],[83,UB|8192,sB|S|4096],[121,SB|4096,tB|U|4096],[122,UB|4096,tB|S|4096],[90,SB|8192,V|U|4096],[90,TB|8192,V|U|4096],[90,Gz<<8|X|U|8192,V|U|4096],[90,Hz<<8|X|U|8192,V|U|4096],[90,Iz<<8|X|U|8192,V|U|4096],[90,Jz<<8|X|U|8192,V|U|4096],[90,Kz<<8|X|U|8192,V|U|4096],[90,Lz<<8|X|U|8192,V|U|4096],[90,UB|8192,V|S|4096],[90,VB|8192,V|S|4096],[90,WB|8192,V|S|4096],[90,XB|8192,V|S|4096],[90,YB|8192,V|S|4096],[90,ZB|8192,V|S|4096],[90,$B|8192,V|S|4096],[90,aC|8192,V|S|4096],[166,R|U|W|16384,V|U|4096],
|
||||
[167,R|S|W|16384,V|U|4096],[113,V|T|4096],[113],[73,S|8368,4246],[70,S|8368,4246],[90,R|U|8192,V|U|4096],[90,R|S|8192,V|S|4096],[34,V|T|4096|hC,V|U|4096],[72,VA|hC],[114,V|T|4096],[114],[47],[46,V|U|4096],[48],[49],[168,R|U|W,iB|U|4096],[169,R|S|W,iB|U|4096],[170,R|U|W,TB|4096],[171,R|S|W,TB|4096],[3,V|U],[2,V|U],[118],[161],[IA,R|S|4096],[IA,R|S|4096],[IA,R|S|4096],[IA,R|S|4096],[IA,R|S|4096],[IA,R|S|4096],[IA,R|S|4096],[IA,R|S|4096],[85,mB|U|4096],[86,mB|U|4096],[84,mB|U|4096],[52,mB|U|4096],[43,
|
||||
SB|8192,V|U|4096],[43,UB|8192,V|U|4096],[101,V|U|4096,SB|4096],[101,V|U|4096,UB|4096],[17,mB|S|4096],[57,mB|S|4096],[57,V|aB|4096],[57,mB|U|4096],[43,SB|8192,WB|T|4096],[43,UB|8192,WB|T|4096],[101,WB|T|4096,SB|4096],[101,WB|T|4096,UB|4096],[81,WA],[0],[111,WA],[112,WA],[39],[23],[172,R|U|W],[173,R|S|W],[19],[148],[21],[150],[20],[149],[174,R|U|W],[175,R|S|W]],HA={0:[177,R|T|W],1:[178,R|T|W],2:[69,T|8368|hC,T|4240],3:[87,T|8368|hC,T|4240],5:[RA,hC],6:[22,hC],7:[RA,Y],32:[90,YA|$A|8192|Y,wB|$A|4096],
|
||||
33:[90,YA|$A|8192|Y,xB|$A|4096],34:[90,wB|$A|8192|Y,YA|$A|4096],35:[90,xB|$A|8192|Y,YA|$A|4096],36:[90,YA|$A|8192|Y,zB|$A|4096],38:[90,zB|$A|8192|Y,YA|$A|4096],128:[64,mB|S|4096|Y],129:[60,mB|S|4096|Y],130:[51,mB|S|4096|Y],131:[59,mB|S|4096|Y],132:[67,mB|S|4096|Y],133:[63,mB|S|4096|Y],134:[50,mB|S|4096|Y],135:[58,mB|S|4096|Y],136:[66,mB|S|4096|Y],137:[62,mB|S|4096|Y],138:[65,mB|S|4096|Y],139:[61,mB|S|4096|Y],140:[55,mB|S|4096|Y],141:[54,mB|S|4096|Y],142:[56,mB|S|4096|Y],143:[53,mB|S|4096|Y],144:[135,
|
||||
R|U|8192|Y],145:[131,R|U|8192|Y],146:[124,R|U|8192|Y],147:[130,R|U|8192|Y],148:[138,R|U|8192|Y],149:[134,R|U|8192|Y],150:[123,R|U|8192|Y],151:[129,R|U|8192|Y],152:[137,R|U|8192|Y],153:[133,R|U|8192|Y],154:[136,R|U|8192|Y],155:[132,R|U|8192|Y],156:[127,R|U|8192|Y],157:[126,R|U|8192|Y],158:[128,R|U|8192|Y],159:[125,R|U|8192|Y],160:[108,fC|4096|Y],161:[103,fC|8192|Y],163:[13,R|S|4096|Y,S|4272],164:[141,R|S|8192|Y,S|4272,V|U|4096],165:[141,R|S|8192|Y,S|4272,TB|4096],166:[159,S|8368|Y,R|S|4096,UB|4096,
|
||||
TB|4096],167:[40,R|S|8192|Y,UB|4096,TB|4096,S|4272],168:[108,gC|4096|Y],169:[103,gC|8192|Y],171:[16,R|S|8192|Y,S|4272],172:[143,R|S|8192|Y,S|4272,V|U|4096],173:[143,R|S|8192|Y,S|4272,TB|4096],175:[42,R|S|W|Y,S|4272],178:[88,S|8368,4246],179:[15,R|S|8192|Y,S|4272],180:[74,S|8368,4246],181:[76,S|8368,4246],182:[94,S|8368|Y,R|U|4096],183:[94,$A|8368|Y,R|T|4096],186:[179,R|S|W|Y,V|U|4096],187:[14,R|S|8192|Y,S|4272],188:[11,S|8368|Y,R|S|4096],189:[12,S|8368|Y,R|S|4096],190:[93,S|8368|Y,R|U|4096],191:[93,
|
||||
$A|8368|Y,R|T|4096]},JA={216:{0:[9,R|cB|4096],1:[18,R|cB|4096],2:[34,R|cB|4096],3:[35,R|cB|4096],4:[12,R|cB|4096],5:[15,R|cB|4096],6:[21,R|cB|4096],7:[24,R|cB|4096],48:[9,X|nB|8192,X|oB|4096],49:[18,X|nB|8192,X|oB|4096],50:[34,X|nB|8192,X|oB|4096],51:[35,X|nB|8192,X|oB|4096],52:[12,X|nB|8192,X|oB|4096],53:[15,X|nB|8192,X|oB|4096],54:[21,X|nB|8192,X|oB|4096],55:[24,X|nB|8192,X|oB|4096]},217:{0:[0,R|cB|4096],2:[1,R|cB|8192],3:[2,R|cB|8192],4:[68,R|4111],5:[59,R|T|4096],6:[66,R|8207],7:[60,R|T|8192],
|
||||
48:[0,X|oB|8192],49:[3,X|oB|8192],50:[76],51:[2,X|oB|8192],64:[33],65:[32],68:[39],69:[40],80:[47],81:[49],82:[50],83:[48],84:[51],85:[52],86:[46],96:[43],97:[44],98:[41],99:[42],100:[31],102:[73],103:[72],112:[29],113:[45],114:[27],116:[30],117:[28]},218:{0:[11,R|bB|4096],1:[20,R|bB|4096],2:[37,R|bB|4096],3:[38,R|bB|4096],4:[14,R|bB|4096],5:[17,R|bB|4096],6:[23,R|bB|4096],7:[26,R|bB|4096]},219:{0:[4,R|bB|4096],2:[5,R|bB|8192],3:[6,R|bB|8192],5:[0,R|fB|4096],7:[2,R|fB|8192],64:[57],65:[55],66:[64],
|
||||
67:[53],68:[78,hC],115:[79,Y]},220:{0:[9,R|eB|4096],1:[18,R|eB|4096],2:[34,R|eB|4096],3:[35,R|eB|4096],4:[12,R|eB|4096],5:[15,R|eB|4096],6:[21,R|eB|4096],7:[24,R|eB|4096],48:[9,X|oB|8192,X|nB|4096],49:[18,X|oB|8192,X|nB|4096],50:[34,X|oB|4096],51:[35,X|oB|4096],52:[15,X|oB|8192,X|nB|4096],53:[12,X|oB|8192,X|nB|4096],54:[24,X|oB|8192,X|nB|4096],55:[21,X|oB|8192,X|nB|4096]},221:{0:[0,R|eB|4096],2:[1,R|eB|8192],3:[2,R|eB|8192],4:[71,R|4111],6:[69,R|8207],7:[62,R|T|8192],48:[74,X|oB|4096],49:[3,X|oB|
|
||||
8192],50:[1,X|oB|4096],51:[2,X|oB|4096]},222:{0:[11,R|T|4096],1:[20,R|T|4096],2:[37,R|T|4096],3:[38,R|T|4096],4:[14,R|T|4096],5:[17,R|T|4096],6:[23,R|T|4096],7:[26,R|T|4096],48:[10,X|oB|8192,X|nB|4096],49:[19,X|oB|8192,X|nB|4096],50:[35,X|oB|4096],51:[36,X|oB|4096],52:[16,X|oB|8192,X|nB|4096],53:[13,X|oB|8192,X|nB|4096],54:[25,X|oB|8192,X|nB|4096],55:[22,X|oB|8192,X|nB|4096]},223:{0:[4,R|T|4096],2:[5,R|T|8192],3:[6,R|T|8192],4:[7,R|gB|4096],5:[4,R|dB|4096],6:[8,R|gB|8192],7:[6,R|dB|8192],48:[75,X|
|
||||
oB|4096],49:[3,X|oB|8192],50:[2,X|oB|4096],51:[2,X|oB|4096],52:[80,hC]}},LA=[[[6,R|U|W,V|U|4096],[99,R|U|W,V|U|4096],[5,R|U|W,V|U|4096],[120,R|U|W,V|U|4096],[7,R|U|W,V|U|4096],[154,R|U|W,V|U|4096],[162,R|U|W,V|U|4096],[24,R|U|4096,V|U|4096]],[[6,R|S|W,V|S|4096],[99,R|S|W,V|S|4096],[5,R|S|W,V|S|4096],[120,R|S|W,V|S|4096],[7,R|S|W,V|S|4096],[154,R|S|W,V|S|4096],[162,R|S|W,V|S|4096],[24,R|S|4096,V|S|4096]],[[6,R|S|W,V|jB|4096],[99,R|S|W,V|jB|4096],[5,R|S|W,V|jB|4096],[120,R|S|W,V|jB|4096],[7,R|S|W,V|
|
||||
jB|4096],[154,R|S|W,V|jB|4096],[162,R|S|W,V|jB|4096],[24,R|S|4096,V|jB|4096]],[[115,R|U|W|hC,V|U|4096],[116,R|U|W|hC,V|U|4096],[109,R|U|W|hC,V|U|4096],[110,R|U|W|hC,V|U|4096],[140,R|U|W|hC,V|U|4096],[142,R|U|W|hC,V|U|4096],Vy,[119,R|U|W|hC,V|U|4096]],[[115,R|S|W|hC,V|U|4096],[116,R|S|W|hC,V|U|4096],[109,R|S|W|hC,V|U|4096],[110,R|S|W|hC,V|U|4096],[140,R|S|W|hC,V|U|4096],[142,R|S|W|hC,V|U|4096],Vy,[119,R|S|W|hC,V|U|4096]],[[115,R|U|W,iB|U|4096],[116,R|U|W,iB|U|4096],[109,R|U|W,iB|U|4096],[110,R|U|W,
|
||||
iB|U|4096],[140,R|U|W,iB|U|4096],[142,R|U|W,iB|U|4096],Vy,[119,R|U|W,iB|U|4096]],[[115,R|S|W,iB|U|4096],[116,R|S|W,iB|U|4096],[109,R|S|W,iB|U|4096],[110,R|S|W,iB|U|4096],[140,R|S|W,iB|U|4096],[142,R|S|W,iB|U|4096],Vy,[119,R|S|W,iB|U|4096]],[[115,R|U|W,TB|4096],[116,R|U|W,TB|4096],[109,R|U|W,TB|4096],[110,R|U|W,TB|4096],[140,R|U|W,TB|4096],[142,R|U|W,TB|4096],Vy,[119,R|U|W,TB|4096]],[[115,R|S|W,TB|4096],[116,R|S|W,TB|4096],[109,R|S|W,TB|4096],[110,R|S|W,TB|4096],[140,R|S|W,TB|4096],[142,R|S|W,TB|4096],
|
||||
Vy,[119,R|S|W,TB|4096]],[[155,R|U|4096,V|U|4096],Vy,[98,R|U|W],[96,R|U|W],[95,R|U|4096],[42,R|U|W],[32,R|U|4096],[41,R|U|W]],[[155,R|S|4096,V|S|4096],Vy,[98,R|S|W],[96,R|S|W],[95,R|S|4096],[42,R|S|W],[32,R|S|4096],[41,R|S|W]],[[44,R|U|W],[31,R|U|W],Vy,Vy,Vy,Vy,Vy,Vy],[[44,R|S|W],[31,R|S|W],[17,R|S|4096],[17,R|aB|4096],[57,R|S|4096],[57,R|aB|4096],[108,R|S|4096],Vy],[],[[145,R|T|8192|hC],[153,R|T|8192|hC],[78,R|T|4096|hC],[89,R|T|4096|hC],[156,R|T|4096|hC],[157,R|T|4096|hC],Vy,Vy],[[139,R|T|8192|hC],
|
||||
[144,R|T|8192|hC],[75,R|T|4096|hC],[77,R|T|4096|hC],[146,R|T|8192|hC],Vy,[79,R|T|4096|hC],Vy],[Vy,Vy,Vy,Vy,[13,R|S|4096|Y,V|U|4096],[16,R|S|8192|Y,V|U|4096],[15,R|S|8192|Y,V|U|4096],[14,R|S|8192|Y,V|U|4096]]],$y={256:["tss286",!1],512:["ldt",!1],768:["busy tss286",!1],1024:["call gate",!0],1280:["task gate",!0],1536:["int gate286",!0],1792:["trap gate286",!0],2304:["tss386",!1],2816:["busy tss386",!1],3072:["call gate386",!0],3584:["int gate386",!0],3840:["trap gate386",!0]},dz={PREV_TSS:0,CPL0_SP:2,
|
||||
CPL0_SS:4,CPL1_SP:6,CPL1_SS:8,CPL2_SP:10,CPL2_SS:12,TASK_IP:14,TASK_PS:16,TASK_AX:18,TASK_CX:20,TASK_DX:22,TASK_BX:24,TASK_SP:26,TASK_BP:28,TASK_SI:30,TASK_DI:32,TASK_ES:34,TASK_CS:36,TASK_SS:38,TASK_DS:40,TASK_LDT:42},ez={PREV_TSS:0,CPL0_ESP:4,CPL0_SS:8,CPL1_ESP:12,CPL1_SS:16,CPL2_ESP:20,CPL2_SS:24,TASK_CR3:28,TASK_EIP:32,TASK_PS:36,TASK_EAX:40,TASK_ECX:44,TASK_EDX:48,TASK_EBX:52,TASK_ESP:56,TASK_EBP:60,TASK_ESI:64,TASK_EDI:68,TASK_ES:72,TASK_CS:76,TASK_SS:80,TASK_DS:84,TASK_FS:88,TASK_GS:92,TASK_LDT:96,
|
||||
TASK_IOPM:100};cb(function(){for(var a=zb(document,"pcx86","debugger"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);d=new Oy(d);yb(d,c)}});
|
||||
function iC(a,b,c){pb.call(this,"Computer",a,67108864);var d=this;jC(this,b);this.U=Bd(this,"autoPower",a);this.D=+Bd(this,"diagnostics",a);0<=this.D&&2>=this.D||(this.D=1);this.F=0;this.pa=a.busWidth||a.buswidth;this.A=kC;this.P=null;this.L=this.ha=!1;this.ra=Bd(this,"url")||"";this.ta=(Math.random()+.1).toString(36).substr(2,12);this.B=lC(this);if(this.G=xb("CPU",this.id)){this.ca=xb("Debugger",this.id);this.C=[];for(b=null;b=ac(this,"Video",b);)this.C.push(b);this.oa=new oc({id:this.de+".bus",
|
||||
busWidth:this.pa},this.G,this.ca);var e=Bb(this.id);this.K=(this.J=xb("Panel",this.id))&&this.J.ma.print;this.ka=this.Da;this.la=this.print;this.qa=this.O;this.K&&(this.ka=this.J.Da,this.la=this.J.print,this.qa=this.J.O);for(b=0;b<e.length;b++){var f=e[b];f.Da=function(a,b,c){mC(d,a);return d.ka.call(this,a,b,c)}.bind(f);f.print=function(a){return d.la.call(this,a)}.bind(f);f.O=function(a,b,c){mC(d,a,b);return d.qa.call(this,a,b,c)}.bind(f)}this.I=0;!this.K&&this.D&&nC(this);this.O("PCx86 v1.37.1\nCopyright \u00a9 2012-2017 Jeff Parsons <Jeff@pcjs.org>\nLicense: GPL version 3 or later <http://gnu.org/licenses/gpl.html>");
|
||||
for(b=0;b<e.length;b++)f=e[b],f.tc&&f.tc(this,this.oa,this.G,this.ca);Cd(this.G,this.id,function(){Yd(d,!1)},1E3/oC);b=null;f=Bd(this,"resume");void 0!==f&&(1<f.length?b=this.N=f:this.A=parseInt(f,10));f=!1;e=Xa("state");e||(f=!0,e=Bd(this,"state",a));e&&(b=this.ba=e,f||(this.L=!0,this.A=kC),this.A&&(this.V=new ag(this,"1.37.1"),this.V.load()?b=null:delete this.V));!b&&this.A&&(b=pC(this))&&(this.L=!0);if(this.ea=b){var g="Loading "+this.ea+"...";Ma(this.ea,null,!0,function(a,b,c){c?(d.N=null,d.L=
|
||||
!1,d.Da("Unable to load machine state from server (error "+c+(b?": "+Da(b):"")+")")):(d.P=b,d.ha=!0);Pb(d)},function(){d.O(g,Kb)})}else Pb(this);this.ma.power||(this.U=!0);!c&&this.U&&this.af(this.We)}else kb("Unable to find CPU component")}ia(iC,pb);function LB(a){a.K&&(a.K.value="")}function nC(a){if(!a.I)for(var b=0;b<a.C.length;b++){var c=a.C[b];c&&(c=c.mg)&&(c.style.opacity="1",c.style.lineHeight="1",a.I++)}}
|
||||
function mC(a,b,c){if(a.I)for(var d=0;d<a.C.length;d++){var e=a.C[d];e&&(e=e.mg)&&(c!=Kb||"..."!=b.slice(-3)?ub(e,b+"\n"):vb(e,b,b+"."))}}function Eq(a){var b=a.D;3==a.D&&(a.D++,Pb(a));return!b}function jC(a,b){if(!b){var c;if("object"==typeof resources&&(c=resources.parms))try{b=eval("("+c+")")}catch(d){kb(d.message+" ("+c+")")}}a.M=b}
|
||||
function Bd(a,b,c){var d=Xa(b);if(d)try{var e=0<=d.indexOf("'")?'"':"'";d=eval(e+d+e)}catch(f){kb(f.message+" ("+d+")"),d=void 0}void 0===d&&a.M&&(d=a.M[b]);void 0===d&&c&&(d=c[b]);void 0===d&&"object"==typeof resources&&resources[b]&&(d=b);return d}l=iC.prototype;l.af=function(a,b){for(var c=this,d=Bb(this.id),e=0;e<=d.length;e++){var f=e<d.length?d[e]:this;if(!Ob(f)){Ob(f,function(){c.af(a,b)});return}}a.call(this,b)};
|
||||
function qC(a,b){var c=new ag(a,"1.37.1",rC);if(c.load()&&sC(c)){var d=c.get(tC),e=b?b.get(tC):"unknown";d!=e&&(a.Da("Machine state may be out-of-date\n("+d+" vs. "+e+")\nCheck your browser's local storage limits"),b||c.clear())}}
|
||||
l.We=function(a){void 0===a&&(a=this.A||(this.P?uC:kC));if(!this.F){this.F++;var b=!1,c=!1;this.fa=!1;var d=this.V||new ag(this,"1.37.1");if(a==Kd)b=!0;else if(a>kC){if(d.load(this.P)){this.H=new ag(this,"1.37.1",vC);this.H.load()&&(a!=uC&&wC(this,d)&&(a=xC),yC(this.H));this.H.set(tC,Ga("Y-m-d H:i:s"));zC(this.H);var e=this.A&&!this.L;if(a==uC||tb("Click OK to restore the previous PCx86 machine state.")){if(c=sC(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&"no machine state"!=
|
||||
g?(this.Da("Error: "+g),"unable to verify user"==g&&(Ta(AC,""),this.B=null)):this.O(f+": "+g),yC(d),d.load()?(c=sC(d),e=!0):c=!1))}e&&qC(this,c?d:null)}else a==xC&&d.clear()}else qC(this);delete this.P;delete this.V}e=Bb(this.id);for(f=0;f<e.length;f++)g=e[f],g!==this&&g!=this.G&&(c=BC(this,g,d,b,c));b=[d,a,c];a!=Kd?this.af(this.Yg,b):this.Yg(b)}};
|
||||
function BC(a,b,c,d,e){if(!b.aa.ac){b.aa.ac=!0;if(b.$b){var f=null;e&&((f=c.get(b.id))||(f=c.get(b.id.replace(/-[0-9]+\./i,"."))));"string"===typeof f&&(f=null);!b.$b(f,d)&&f&&(b.Da("Unable to restore hardware state")&&(a.ba&&!a.ha?(c.clear(),a.A=kC,window&&window.location.reload()):a.fa=!0),b.$b(null),e=!1)}b.aa.pf=!0;if(!d&&b.uj)for(a=b.uj.split("|"),c=0;c<a.length;c++)b.status(a[c])}return e}
|
||||
l.Yg=function(a){if(!this.aa.pf){a:{if(this.I){if(2==this.D){this.D++;this.O("Press any key to continue...");var b=!1;break a}for(b=0;b<this.C.length;b++){var c=this.C[b];if(c&&(c=c.mg)){var d=Oa();c.style.opacity="0";c.style.lineHeight="0";if(0<=d.indexOf("MSIE")||0<=d.indexOf("Trident"))c.style.fontSize="0";c.value=""}}this.I=0}this.D=0;b=!0}if(!b){Pb(this,!1);this.af(this.Yg,a);return}this.aa.pf=!0}b=a[0];c=0>a[1];a=a[2];if(d=this.ma.power)d.textContent="Shutdown";this.aa.ac=!0;this.G&&(BC(this,
|
||||
this.G,b,c,a),this.G.he());this.fa&&(wC(this,b),b.clear());!c&&this.H&&(this.H.clear(),delete this.H);this.F=0;Db(this.de,Bd(this,"autoScript"))};function wC(a,b){if(!a.aa.we){if(tb("There may be a problem with your PCx86 machine.\n\nTo help us diagnose it, click OK to send this PCx86 machine state to http://www.pcjs.org.")){var c=a.B||"";b=b.toString();var d={app:"PCx86",ver:"1.37.1"};d.url=a.ra;d.user=c;d.type="bug";d.data=b;Ma("http://www.pcjs.org/api/v1/report",d,!0)}return!0}return!1}
|
||||
function QB(a,b,c){var d="none";if(a.F)return null;a.F--;var e=new ag(a,"1.37.1"),f=new ag(a,"1.37.1",rC),g=Ga("Y-m-d H:i:s");f.set(tC,g);e.set(tC,g);e.set(CC,"1.37.1");e.set(DC,window?window.location.href:null);e.set(EC,Oa());if(a.G&&a.G.Zb){var h=a.G.Zb(b,c);"object"===typeof h&&e.set(a.G.id,h);c&&(a.G.aa.ac=!1,!1===h&&(d=null))}g=Bb(a.id);for(var k=0;k<g.length;k++){var m=g[k];m.aa.ac&&(m.Zb&&(h=m.Zb(b,c),"object"===typeof h&&e.set(m.id,h)),c&&(m.aa.ac=!1,!1===h&&(d=null)))}d&&(c?(g=h=!1,b?(a.B&&
|
||||
OC(a,a.B,e.toString()),zC(f)&&zC(e)||(d=null,h=g=!0)):a.A&&(h=!0,g=a.A==PC),h&&e.clear(g)):d=e.toString());c&&(a.aa.ac=!1,b=a.ma.power)&&(b.textContent="Power");a.F=0;return d}l.reset=function(){this.oa&&this.oa.reset&&(Tb(this,"Resetting "+this.oa.type),this.oa.reset());for(var a=Bb(this.id),b=0;b<a.length;b++){var c=a[b];c!==this&&c!==this.oa&&c.reset&&(Tb(this,"Resetting "+c.type),c.reset())}};
|
||||
l.start=function(a,b){for(var c=Bb(this.id),d=0;d<c.length;d++){var e=c[d];"CPU"!=e.type&&e!==this&&e.start&&e.start(a,b)}};l.stop=function(a,b){for(var c=Bb(this.id),d=0;d<c.length;d++){var e=c[d];"CPU"!=e.type&&e!==this&&e.stop&&e.stop(a,b)}};
|
||||
l.Eb=function(a,b,c){var d=this;switch(b){case "power":return this.ma[b]=c,c.onclick=function(){d.F||(d.aa.ac?QB(d,!1,!0):d.af(d.We))},!0;case "reset":return this.ma[b]=c,c.onclick=function(){if(d.aa.ac&&!d.F)if(d.G&&(d.G.aa.he=d.G.aa.Xa),d.A&&!d.N){var a=d.aa.we||!tb("Click OK to reset this PCx86 machine and discard all disk modifications.");QB(d,a,!0);!a&&d.ba?window&&window.location.reload():(a||(d.Z=!0),d.We(kC),d.Z=!1)}else d.reset(),d.G&&d.G.he()},!0;case "save":if(za(Na(),"pcjs.org"))c.parentNode.removeChild(c);
|
||||
else return this.ma[b]=c,c.onclick=function(){var a=lC(d,!0);if(a){var b=!!(d.A&&!d.N||d.ba),c=QB(d,b);b?OC(d,a,c):d.Da("Resume disabled, machine state not saved")}},!0}return!1};
|
||||
function lC(a,b){var c=a.B;c||((c=Sa(AC),void 0!==c)?!c&&b&&(b=null,window&&(b=window.prompt("Saving machine states on the pcjs.org server is currently unsupported.\n\nIf you're running your own server, enter your user ID below.","")),c=b)&&((c=QC(a,c))||a.Da("The user ID is invalid.")):b&&a.Da("Browser local storage is not available"));return c}
|
||||
function QC(a,b){a.B=null;b=Ma(Na()+"/api/v1/user?req=verify&user="+b);var c=b[1];if(!b[0]&&c)try{b=eval("("+c+")"),b.code&&"ok"==b.code&&(Ta(AC,b.data),a.B=b.data)}catch(d){kb(d.message+" ("+c+")")}return a.B}function pC(a){var b=null;a.B&&(b=Na()+"/api/v1/user?req=load&user="+a.B+"&state="+RC(a,"1.37.1"));return b}
|
||||
function OC(a,b,c){if(c){var d={req:"store"};d.user=b;d.state=RC(a,"1.37.1");d.data=c;b=Ma(Na()+"/api/v1/user",d);d=b[0];if(b[1]){if(d){var e=d.indexOf("\n");0<e&&(d=d.substr(0,e));d.indexOf("Error: ")||(d=d.substr(7))}d='{"code":'+b[1]+',"data":"'+d+'"}'}b=JSON.parse(d);b&&"ok"==b.code?a.Da("Machine state saved to server"):c&&(c=b&&b.data||"unable to save machine state",c="error"==b.code?"Error: "+c:"Error "+b.code+": "+c,a.Da(c),Ta(AC,""),a.B=null)}}
|
||||
function ac(a,b,c){a=Bb(a.id);for(var d=0;d<a.length;d++){var e=a[d];if(c)c==e&&(c=null);else if(e.type==b)return e}return null}l.cd=function(a){if(this.C.length){var b=0,c=0;!a&&window&&(b=window.scrollX,c=window.scrollY);var d=this.C[0];d.F&&d.F.focus();!a&&window&&window.scrollTo(b,c)}};
|
||||
function Yd(a,b){if(a.G){var c=a.G;if(c.sj&&(b||!c.aa.Xa||c.aa.hj)){Ng(c,"EAX",c.D);Ng(c,"EBX",c.H);Ng(c,"ECX",c.I);Ng(c,"EDX",c.L);Ng(c,"ESP",y(c));Ng(c,"EBP",c.N);Ng(c,"ESI",c.K);Ng(c,"EDI",c.J);Ng(c,"CS",c.ba.T);Ng(c,"DS",c.Fa.T);Ng(c,"SS",c.U.T);Ng(c,"ES",c.pa.T);Ng(c,"EIP",z(c));var d=xe(c);Ng(c,"PS",d);Ng(c,"V",d&2048);Ng(c,"D",d&1024);Ng(c,"I",d&512);Ng(c,"T",d&256);Ng(c,"S",d&128);Ng(c,"Z",d&64);Ng(c,"A",d&16);Ng(c,"P",d&4);Ng(c,"C",d&1);80386==c.da&&(Ng(c,"FS",c.Ka.T),Ng(c,"GS",c.La.T),Ng(c,
|
||||
"CR0",c.ra),Ng(c,"CR2",c.pd),Ng(c,"CR3",c.wc))}if(d=c.ma.speed)d.textContent=c.aa.Xa&&c.Y.Kd?c.Y.Kd.toFixed(2)+"Mhz":"Stopped"}if(!1!==b)for(c=0;c<a.C.length;c++)Ps(a.C[c],b)}var vC="failsafe",rC="validate",tC="timestamp",CC="version",DC="url",EC="browser",AC="user",Kd=-1,kC=0,uC=1,xC=2,PC=3,oC=2;cb(function(){for(var a=zb(document,"pcx86-machine"),b=0;b<a.length;b++){var c=a[b],d=Ab(c);c=zb(c,"pcx86","computer");for(var e=0;e<c.length;e++){var f=c[e],g=Ab(f);g=new iC(g,d,!0);yb(g,f);g.U&&g.af(g.We)}}});
|
||||
db.show.push(function(){for(var a=zb(document,"pcx86","computer"),b=0;b<a.length;b++){var c=Ab(a[b]);if(c=xb("Computer",c.id))c.aa.we=!1,c.aa.pf&&!c.aa.ac&&c.We(Kd)}});db.exit.push(function(){for(var a=zb(document,"pcx86","computer"),b=0;b<a.length;b++){var c=Ab(a[b]);if(c=xb("Computer",c.id))c.aa.we=!0,c.aa.ac&&QB(c,!(!c.A||c.N),!0)}});function ag(a,b,c){this.id=a.id;this.ca=a.ca;this.A="";this.state={};this.B=this.C=!1;this.key=RC(a,b,c);yC(this,a.Jk)}l=ag.prototype;
|
||||
l.set=function(a,b){try{this.state[a]=b}catch(c){}};l.get=function(a){return this.state[a]||null};l.data=function(){return this.state};l.load=function(a){return a?(this.A=a,this.B=!0,this.C=!1,!0):this.B?!0:Pa()&&(a=Sa(this.key))?(this.A=a,this.B=!0):!1};function sC(a){var b=!0;if(!a.C)try{a.state=JSON.parse(a.A),a.C=!0}catch(c){kb(c.message||c),b=!1}return b}
|
||||
function zC(a){var b=!0;if(Pa()){var c=JSON.stringify(a.state);Ta(a.key,c)||(kb("Unable to store "+c.length+" bytes in browser local storage"),b=!1)}return b}l.toString=function(){return this.state?JSON.stringify(this.state):this.A};function yC(a,b){a.A="";a.state={};a.B=a.C=!1;b&&a.set("parms",b)}
|
||||
l.clear=function(a){yC(this);var b=[];try{for(var c=0,d=window.localStorage.length;c<d;c++)b.push(window.localStorage.key(c))}catch(e){}for(c=0;c<b.length;c++)if((d=b[c])&&(a||d.substr(0,this.key.length)==this.key)){try{window.localStorage.removeItem(d)}catch(e){}b.splice(c,1);c=0}};function RC(a,b,c){a=a.id;if(b){var d=b.indexOf(".");0<d&&(a+=".v"+b.substr(0,d))}c&&(a+="."+c);return a}var SC=0;
|
||||
function TC(a,b,c,d,e,f){e("Loading "+a+"...");Ma(a,null,!0,function(g,h,k){k?(h||(h="unable to load "+a+" ("+k+")"),f(h,null)):UC(h,a,b,c,d,e,f)})}
|
||||
function UC(a,b,c,d,e,f,g){function h(a,f){if(f)g(f,null);else{c&&(rb(c,b,a),(f=b)&&0>f.indexOf("/")&&"/"==window.location.pathname.slice(-1)&&(f=window.location.pathname+f),d?"}"==d.slice(-1)?(d=d.slice(0,-1),1<d.length&&(d+=",")):d='{state:"'+d+'",':d="{",d+='url:"'+f+'"}',"object"==typeof resources&&(f=null),d=d.replace(/\$/g,"$$$$"),a=a.replace(/(<machine[^>]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" parms='"+d+"'":"")+(f?' url="'+f+'"':"")));e||(a=a.replace(/(<xsl:variable name="APPNAME">).*?(<\/xsl:variable>)/,
|
||||
"$1PCx86$2"),a=a.replace(/(<xsl:variable name="APPCLASS">).*?(<\/xsl:variable>)/,"$1pcx86$2"));f=null;if("<"==a.charAt(0))try{e||(a=a.replace(/<!DOCTYPE(.|[\r\n])*]>\s*/g,"")),window.ActiveXObject||"ActiveXObject"in window?(f=new window.ActiveXObject("Microsoft.XMLDOM"),f.async=!1,f.loadXML(a)):f=(new window.DOMParser).parseFromString(a,"text/xml")}catch(p){f=null,a=p.message}else a="unrecognized XML: "+(255<a.length?a.substr(0,255)+"...":a);g(a,f)}}a?e?VC(a,f,h):h(a,null):g("no data"+(b?" for file: "+
|
||||
b:""),null)}
|
||||
function VC(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=d[2];b("Loading "+e+"...");Ma(e,null,!0,function(f,g,h){if(h||!g)c(a,"unable to resolve XML reference: "+d[0]+" ("+h+")");else{if(f=d[3])if(h=g.match(new RegExp("<"+d[1]+"[^>]*>"))){for(var k=h[0],m,p=/( [a-z]+=)(['"])(.*?)\2/gi;m=p.exec(f);)k=0>k.toLowerCase().indexOf(m[1].toLowerCase())?k.replace(">",m[0]+">"):k.replace(new RegExp(m[1]+"(['\"])(.*?)\\1"),m[0]);h[0]!=k&&(g=g.replace(h[0],k))}else{c(a,"missing <"+d[1]+
|
||||
"> in "+e);return}g=g.replace(/<\?xml[^>]*>[\r\n]*/,"");a=a.replace(d[0],g);VC(a,b,c)}})}else c(a,null)}
|
||||
function WC(a,b,c,d){function e(a){if(void 0===h){var b=g&&zb(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=Aa(a))}function f(a){e("Error: "+a);k&&(--SC||lb(!0));k=!1}var g,h,k=!0;SC++;sb[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var p=document.head||document.getElementsByTagName("head")[0],v=document.createElement("style");v.type="text/css";v.styleSheet?v.styleSheet.cssText=m:v.appendChild(document.createTextNode(m));p.appendChild(v)}c||
|
||||
(c="/versions/pcx86/1.37.1/components.xsl");m=function(d,h){h?TC(c,null,null,!1,e,function(d,k){k?(rb(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(k=h.transformNode(k))?(g.outerHTML=k,--SC||lb(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(k),(k=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(k,g),--SC||lb(!0)):f("invalid machine element: "+
|
||||
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?TC(b,a,d,!0,e,m):UC(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(u){f(u.message)}return k}function XC(a,b,c,d){lb(!1);return WC(a,b,c,d)}window.embedPC=XC;window.embedPCx86=XC;
|
||||
window.commandMachine=function(a,b,c,d,e,f){if("script"==e)return Db(c,f)?(b&&(a.disabled=!0),!0):!1;if(d){var g=xb(d,c+".machine");if(g){var h=g.exports;if(h&&(h=h[e]))return h.call(g,f)?(b&&(a.disabled=!0),!0):!1}}console.log("unimplemented: commandMachine('"+c+"','"+d+"','"+e+"','"+f+"')");return!1};window.enableEvents=lb;window.sendEvent=nb;
|
||||
function YC(a,b,c,d){if(!c&&b){d.push(b);a=sb[d[0]];b=null;for(var e in a)if(za(e,"components.xsl")){b=e.replace(".xsl",".css");break}b?Ma(b,null,!0,function(a,b){ZC(b,d)}):ZC(null,d)}else kb("Error ("+c+") requesting "+a)}
|
||||
function ZC(a,b){var c,d,e=b[0],f=b[1];var g=b[4];if(g=g.match(/^(\s*\(function\(\)\{)([\s\S]*)(}\)\(\);)/)){var h=sb[e],k={},m;for(m in h){var p=h[m],v=ya(m);if("xml"==v){for(v=/[ \t]*<disk [^>]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;c=v.exec(h[m]);){var u=c[2];u&&!h[u]&&(p=p.replace(c[0],""))}c=m=xa(m)}else"xsl"==v&&(d=m=xa(m));k[m]=p}a&&(k[m="css"]=a);b[2]&&(k[m="parms"]=b[2]);b[3]&&(k[m="state"]=b[3]);c&&d?(a=JSON.stringify(k),f+=".js",g=g[1]+"var resources="+a+";"+g[2]+g[3],g=g.replace(/\u00A9/g,
|
||||
"©"),a=Za(g,"javascript",!1,f),a=a+(', copy it to your web server as "'+f+'", and then add the following to your web page:\n\n')+('<div id="'+e+'"></div>\n')+"...\n",a=a+('<script type="text/javascript" src="'+f+'">\x3c/script>\n')+('<script type="text/javascript">embedPC("'+e+'","'+c+'","'+d+'");\x3c/script>\n\n')+"The machine should appear where the <div> is located.",kb(a)):kb("Missing XML/XSL resources")}else kb("Unsupported script")}
|
||||
window.savePC=function(a,b,c){var d=xb("Computer",a),e=xb("Debugger",a);if(d){var f=QB(d,!0),g=d.M?JSON.stringify(d.M):null;b||(b="/versions/pcx86/1.37.1/pcx86"+(e?"-dbg":"")+".js");if(c&&c({state:f,Jk:g}))return!0;Ma(b,null,!0,function(c,d,e){YC(c,d,e,[a,xa(b,!0),g,f])});return!0}kb("Unable to identify machine '"+a+"'");return!1};})();//# sourceMappingURL=/versions/pcx86/1.37.1/pcx86-dbg.map
|
||||
718
apps/pcx86/examples/pcx86.js
Normal file
718
apps/pcx86/examples/pcx86.js
Normal file
|
|
@ -0,0 +1,718 @@
|
|||
(function(){/*
|
||||
http://pcjs.org/modules/shared/lib/diskapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/dumpapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/reportapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/userapi.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/keys.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/strlib.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/weblib.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/interrupts.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/messages.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/debugger.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/state.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/embed.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/defines.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/usrlib.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/component.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/defines.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/panel.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/bus.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/memory.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/cpu.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86seg.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86cpu.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86fpu.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86func.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86help.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86mods.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86ops.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/x86op0f.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/chipset.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/rom.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/ram.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/keyboard.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/video.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/parallel.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/serial.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/mouse.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/disk.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/fdc.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/hdc.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/debugger.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/pcx86/lib/computer.js (C) Jeff Parsons 2012-2017
|
||||
http://pcjs.org/modules/shared/lib/save.js (C) Jeff Parsons 2012-2017
|
||||
*/
|
||||
var l,aa,ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},da;if("function"==typeof Object.setPrototypeOf)da=Object.setPrototypeOf;else{var ea;a:{var fa={fd:!0},ha={};try{ha.__proto__=fa;ea=ha.fd;break a}catch(a){}ea=!1}da=ea?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ia=da;
|
||||
function ja(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ia)ia(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.So=b.prototype}
|
||||
var ka="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},la="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ma(a,b){if(b){var c=la;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ka(c,a,{configurable:!0,writable:!0,value:b})}}
|
||||
ma("Math.trunc",function(a){return a?a:function(a){a=Number(a);if(isNaN(a)||Infinity===a||-Infinity===a||0===a)return a;var b=Math.floor(Math.abs(a));return 0>a?-b:b}});ma("Math.sign",function(a){return a?a:function(a){a=Number(a);return 0===a||isNaN(a)?a:0<a?1:-1}});
|
||||
var oa={163840:[40,1,8,,254],184320:[40,1,9,,252],327680:[40,2,8,,255],368640:[40,2,9,,253],737280:[80,2,9,,249],1228800:[80,2,15,,249],1474560:[80,2,18,,240],2949120:[80,2,36,,240],10653696:[306,4,17],21411840:[615,4,17],256256:[77,1,26,128],2494464:[203,2,12,512],5242880:[256,2,40,256],10485760:[512,2,40,256]},n={Sn:0,Un:1,Vn:2,Sj:3,Wn:4,Xn:5,Yn:6,Zn:7,$n:8,ao:9,bo:10,co:11,eo:12,fo:13,ho:14,io:15,jo:16,ko:17,lo:18,mo:19,no:20,oo:21,po:22,qo:23,ro:24,so:25,to:26," ":32,"!":33,'"':34,"#":35,$:36,
|
||||
"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,Fd:65,sh:66,th:67,uh:68,E:69,vh:70,wh:71,xh:72,yh:73,zh:74,Ah:75,Bh:76,Ch:77,Dh:78,Eh:79,Fh:80,Q:81,Gh:82,Hh:83,Ih:84,Jh:85,Kh:86,Lh:87,Mh:88,Nh:89,pf:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,fd:97,ck:98,dk:99,d:100,e:101,mk:102,nk:103,pk:104,qk:105,Fl:106,k:107,Gl:108,Kl:109,n:110,Sl:111,p:112,q:113,r:114,sn:115,t:116,vn:117,
|
||||
wn:118,xn:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126,uo:127},pa={};pa[173]=n["-"];pa[186]=n[";"];pa[187]=n["="];pa[189]=n["-"];pa[188]=n[","];pa[190]=n["."];pa[191]=n["/"];pa[192]=n["`"];pa[219]=n["["];pa[220]=n["\\"];pa[221]=n["]"];pa[222]=n["'"];var p={};p[n["1"]]=n["!"];p[n["2"]]=n["@"];p[n["3"]]=n["#"];p[n["4"]]=n.$;p[n["5"]]=n["%"];p[n["6"]]=n["^"];p[n["7"]]=n["&"];p[n["8"]]=n["*"];p[n["9"]]=n["("];p[n["0"]]=n[")"];p[186]=n[":"];p[187]=n["+"];p[188]=n["<"];p[189]=n._;p[190]=n[">"];
|
||||
p[191]=n["?"];p[192]=n["~"];p[219]=n["{"];p[220]=n["|"];p[221]=n["}"];p[222]=n['"'];p[173]=n._;p[61]=n["+"];p[59]=n[":"];
|
||||
function qa(a,b){if(a){b||(b=10);var c,d=0<a.indexOf(",");d&&(a=a.replace(/,/g,""));var e=c=a.charAt(0);"#"==c?(b=8,c=""):"$"==c&&(b=16,c="");e!=c?a=a.substr(1):(e=c=a.substr(0,2),"0b"==c&&d||"^B"==c?(b=2,c=""):"0o"==c||"^O"==c?(b=8,c=""):"^D"==c?(b=10,c=""):"0x"==c&&(b=16,c=""),e!=c&&(a=a.substr(2)));e=c=a.slice(-1);"Y"==c||"y"==c?(b=2,c=""):"."==c?(b=10,c=""):"H"==c||"h"==c?(b=16,c=""):"K"==c?c="000":"M"==c?c="000000":"G"==c&&(c="000000000");e!=c&&(a=a.slice(0,-1)+c);var f;e=0;10>=b&&(c=a.match(/(-?[0-9]+)B([0-9]*)/))&&
|
||||
(a=c[1],e=35-((c[2]||35)&255));c=a;if(((d=b)&&10!=d?16==d?null!==c.match(/^-?[0-9a-f]+$/i):8==d?null!==c.match(/^-?[0-7]+$/):2==d&&null!==c.match(/^-?[01]+$/):null!==c.match(/^-?[0-9]+$/))&&!isNaN(f=parseInt(a,b))){e&&(0>f&&(f+=Math.pow(2,36)),f=0<e?f*Math.pow(2,e):Math.trunc(f/Math.pow(2,-e)));var g=f}}return g}
|
||||
function ra(a,b,c){b?9<b&&(b=9):(b=Math.abs(a),b=65535>=b?4:4294967295>=b?8:9);c=c?"0x":"";var d=void 0===d?0:d;var e="";isNaN(a)?a=null:null!=a&&(0>a&&-1<a&&(a=-1),0>a&&(a+=Math.pow(16,b)),a>=Math.pow(16,b)&&(b=Math.ceil(Math.log(a)/Math.log(16))));for(var f=d||-1;0<b--;){f||(e=","+e,f=d);if(null==a)e="?"+e;else{var g=a%16;g+=0<=g&&9>=g?48:55;e=String.fromCharCode(g)+e;a=Math.trunc(a/16)}f--}return(void 0===c?"":c)+e}
|
||||
function sa(a,b){var c=a,d=a.lastIndexOf("/");0<=d&&(c=a.substr(d+1));d=c.indexOf("&");0<d&&(c=c.substr(0,d));b&&(d=c.lastIndexOf("."),0<d&&(c=c.substring(0,d)));return c}function ta(a){var b="",c=a.lastIndexOf(".");0<=c&&(b=a.substr(c+1).toLowerCase());return b}function ua(a,b){return-1!==a.indexOf(b,a.length-b.length)}function va(a){return a.replace(/[&<>"']/g,function(a){return wa[a]})}function xa(a){return String.prototype.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}
|
||||
var wa={"&":"&","<":"<",">":">",'"':""","'":"'"},ya={0:"NUL",1:"SOH",2:"STX",3:"ETX",4:"EOT",5:"ENQ",6:"ACK",7:"BEL",8:"BS",9:"TAB",10:"LF",11:"VT",12:"FF",13:"CR",14:"SO",15:"SI",16:"DLE",17:"XON",18:"DC2",19:"XOFF",20:"DC4",21:"NAK",22:"SYN",23:"ETB",24:"CAN",25:"EM",26:"SUB",27:"ESC",28:"FS",29:"GS",30:"RS",31:"US"};
|
||||
function za(a){var b,c="";b||(b=new Date);for(var d=b.getHours(),e=b.getDate(),f=b.getMonth()+1,g=0;g<a.length;g++){var h;switch(h=a.charAt(g)){case "a":c+=12>d?"am":"pm";break;case "d":c+=("0"+e).slice(-2);break;case "D":c+=Aa[b.getDay()].substr(0,3);break;case "F":c+=Ba[f-1];break;case "g":c+=d?12<d?d-12:d:12;break;case "h":c+=d;break;case "H":c+=("0"+d).slice(-2);break;case "i":c+=("0"+b.getMinutes()).slice(-2);break;case "j":c+=e;break;case "l":c+=Aa[b.getDay()];break;case "m":c+=("0"+f).slice(-2);
|
||||
break;case "M":c+=Ba[f-1].substr(0,3);break;case "n":c+=f;break;case "s":c+=("0"+b.getSeconds()).slice(-2);break;case "y":c+=(""+b.getFullYear()).slice(-2);break;case "Y":c+=b.getFullYear();break;default:c+=h}}return c}var Aa="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Ba="January February March April May June July August September October November December".split(" "),Ca=[31,28,31,30,31,30,31,31,30,31,30,31],Da=Date.now||function(){return+new Date};
|
||||
function Ea(a,b,c,d,e){c=void 0===c?!1:c;var f=0,g=null,h=null;if("object"==typeof resources&&(g=resources[a]))return d&&d(a,g,f),[g,f];if(c&&"function"==typeof resources)return resources(a,function(b,c){d&&d(a,b,c)}),h;var k=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");c&&(k.onreadystatechange=function(){4!==k.readyState?e&&e(1):(g=k.responseText,200==k.status||!k.status&&g.length&&"file:"==(window?window.location.protocol:"file:")||(f=k.status||-1),
|
||||
e&&e(2),d&&d(a,g,f))});e&&e(0);if(b&&"object"==typeof b){var m="",r;for(r in b)b.hasOwnProperty(r)&&(m&&(m+="&"),m+=r+"="+encodeURIComponent(b[r]));m=m.replace(/%20/g,"+");k.open("POST",a,c);k.setRequestHeader("Content-type","application/x-www-form-urlencoded");k.send(m)}else k.open("GET",a,c),"bytes"==b&&k.overrideMimeType("text/plain; charset=x-user-defined"),k.send();c||(g=k.responseText,200!=k.status&&(f=k.status||-1),d&&d(a,g,f),h=[g,f]);return h}
|
||||
function Fa(){return"http://"+(window?window.location.host:"www.pcjs.org")}function Ga(){return window?window.navigator.userAgent:""}function Ha(){if(null==Ia){var a=!1;if(window)try{window.localStorage.setItem("PCjs.localStorage","PCjs.localStorage"),a="PCjs.localStorage"==window.localStorage.getItem("PCjs.localStorage"),window.localStorage.removeItem("PCjs.localStorage")}catch(b){a=!1}Ia=a}return Ia}function Ja(a){if(window)try{var b=window.localStorage.getItem(a)}catch(c){}return b}
|
||||
function Ka(a,b){try{return window.localStorage.setItem(a,b),!0}catch(c){}return!1}function La(a){if(window){var b=Ga();return"iOS"==a&&!!b.match(/(iPod|iPhone|iPad)/)&&!!b.match(/AppleWebKit/)||"MSIE"==a&&!!b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)}return!1}function Ma(a,b,c){if(a)for(var d=0;d<Na.length;d++){var e=Na[d];if(c){if(e+=c,b+e in a)return e}else if(e=e?e+b[0].toUpperCase():b[0],e+=b.substr(1),e in a)return e}return null}
|
||||
function Oa(a){if(!Pa){var b,c={};if(window){b||(b=window.location.search.substr(1));for(var d,e=/\+/g,f=/([^&=]+)=?([^&]*)/g;d=f.exec(b);)c[decodeURIComponent(d[1].replace(e," "))]=decodeURIComponent(d[2].replace(e," "))}Pa=c}return Pa[a]||Pa[a.toLowerCase()]}
|
||||
function Qa(a,b,c,d){var e=null;b="data:application/"+b+(c?";base64":"")+",";b=La("Firefox")?b+(c?a:encodeURIComponent(a)):b+(c?a:encodeURI(a));d&&(e=document.createElement("a"),"string"!=typeof e.download&&(e=null));e?(e.href=b,e.download=d,document.body.appendChild(e),e.click(),document.body.removeChild(e),a="Check your Downloads folder for "+d+"."):(window.open(b),a="Check your browser for a new window/tab containing the requested data"+(d?" ("+d+")":"")+".");return a}
|
||||
function Ra(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function Sa(a){Ta.init.push(a)}function Ua(a){if(Va)try{for(var b=0;b<a.length;b++)a[b]()}catch(c){q(""+("An unexpected exception occurred:\n\n"+c.message+"\n\nPlease send this information to support@pcjs.org. Thanks."))}}function Wa(a){!Va&&a?(Va=!0,Xa&&Ya("init"),Za&&Ya("show")):Va=a}function Ya(a){Ta[a]&&Ua(Ta[a])}
|
||||
var Pa=null,Ta={init:[],show:[],exit:[]},Na=["","moz","ms","webkit"],Xa=!1,Za=!1,Va=!0,Ia=null;Ra("onload",function(){Xa=!0;Ua(Ta.init)});Ra("onpageshow",function(){Za=!0;Ua(Ta.show)});Ra(La("iOS")?"onpagehide":La("Opera")?"onunload":"onbeforeunload",function(){Ua(Ta.exit)});
|
||||
function u(a,b){this.type=a;b||(b={id:"",name:""});this.id=b.id||"";this.name=b.name;this.li=b.comment;this.Bj=b;this.exports={};this.ja=this.bindings={};a=this.id.indexOf(".");0>a?this.Be=this.id:(this.Dd=this.id.substr(0,a),this.Be=this.id.substr(a+1));this.Y={ready:!1,Mo:!1,No:!1,Je:!1,Sb:!1,Yd:!1,error:!1};this.Cf=null;this.Y.error=!1;this.Ea=this.R=this.oa=this.na=null;$a.push(this)}function ab(a,b,c){bb[a]&&b&&(bb[a][b]=c)}function q(a){window&&window.alert(a)}
|
||||
function cb(a){var b=!1;window&&(b=window.confirm(a));return b}function eb(a,b){a.value+=b;b=a.value;8192<b.length&&(a.value=b.substr(b.length-4096));a.scrollTop=a.scrollHeight}function fb(a,b,c){var d=a.value,e=d.lastIndexOf(b);0>e?d+=b+"\n":d=d.substr(0,e)+c+d.substr(e+b.length);8192<d.length&&(d=d.substr(d.length-4096));a.value=d;a.scrollTop=a.scrollHeight}function gb(a,b,c){var d;b&&(void 0===d&&(d="Panel"),(d=hb(d,a.id))&&(b=d.ja[b])&&a.Ab(null,c,b))}
|
||||
function ib(a,b){b=jb(b.parentNode,"pcx86-control");for(var c=0;c<b.length;c++)for(var d=b[c].childNodes,e=0;e<d.length;e++){var f=d[e];if(1===f.nodeType){var g=f.getAttribute("class");if(g)for(var h=g.split(" "),k=0;k<h.length;k++)switch(g=h[k],g){case "pcx86-binding":(g=kb(f))&&g.binding&&a.Ab(g.type,g.binding,f,g.value),k=h.length}}}}function lb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;b<$a.length;b++){var d=$a[b];a&&d.id.indexOf(a)||c.push(d)}return c}
|
||||
function mb(a,b){if(void 0!==a){var c;b&&0<(c=b.indexOf("."))&&(a=b.substr(0,c+1)+a);for(c=0;c<$a.length;c++)if($a[c].id===a)return $a[c]}return null}function hb(a,b){var c;if(void 0!==a){var d;b&&(b=0<(d=b.indexOf("."))?b.substr(0,d+1):"");for(d=0;d<$a.length;d++)if(c)c==$a[d]&&(c=null);else if(!(a!=$a[d].type||b&&$a[d].id.indexOf(b)))return $a[d]}return null}function kb(a){var b=null;if(a=a.getAttribute("data-value"))try{b=eval("("+a+")")}catch(c){q(c.message+" ("+a+")")}return b}
|
||||
function jb(a,b,c){c&&(b+="-"+c+"-object");if(a.getElementsByClassName)return a.getElementsByClassName(b);var d;c=[];a=a.getElementsByTagName("*");var e=new RegExp("(^| )"+b+"( |$)");b=0;for(d=a.length;b<d;b++)e.test(a[b].className)&&c.push(a[b]);return c}
|
||||
function nb(a,b){var c=!1;a+=".machine";if(!b)delete ob[a],c=!0;else if("string"==typeof b&&!ob[a]){c=!0;for(var d=ob,e=a,f=b.length,g=[],h=[],k="",m=null,r=0;r<f;r++){var x=b[r];if('"'==x||"'"==x)m&&x!=m?k+=x:(m?m=null:m=x,k&&(h.push(k),k=""));else{if(!m){if("\r"==x||"\n"==x)x=";";if(" "==x||"\t"==x||";"==x){k&&(h.push(k),k="");";"==x&&h.length&&(g.push(h),h=[]);continue}}k+=x}}k&&h.push(k);h.length&&g.push(h);d[e]=g;pb(a)||(c=!1)}return c}
|
||||
function pb(a){for(var b=!0,c=ob[a];c&&c.length;){var d=c.splice(0,1)[0],e=d[0],f=null;0<=qb.indexOf(e)&&(f=function(){return function(){pb(a)}}());var g=rb[e];if(g)if(!f)b=g(d[1],d[2],d[3]);else{if(!g(f,d[1],d[2],d[3]))break}else{b=!1;var h=hb(d[1],a);if(h)if(g=sb[e])b=g(h,d[2],d[3]);else{var k=h.exports;if(k&&(g=k[e]))if(b=!0,!f)b=g.call(h,d[2],d[3]);else if(!g.call(h,f,d[2],d[3]))break}}if(!b){q("Script error: '"+e+(g?" failed":" unrecognized"));break}}c&&!c.length&&delete ob[a];return b}l=u.prototype;
|
||||
l.toString=function(){return this.name?this.name:this.id||this.type};
|
||||
l.Ab=function(a,b,c){switch(b){case "clear":return this.ja[b]||(this.ja[b]=c,c.onclick=function(a){return function(){a.ja.print&&(a.ja.print.value="")}}(this)),!0;case "print":return this.ja[b]||(this.ja[b]=c,this.wa=function(a){this.qb(a,this.type);return!0},c.value="",this.print=function(a){return function(b){eb(a,b)}}(c),this.qb=function(a,b){return function(a,c){a||(a="");c!=tb||"..."!=a.slice(-3)?(c&&(a=c+": "+a),eb(b,a+"\n")):fb(b,a,a+".")}}(this,c)),!0;default:return!1}};l.log=function(){};
|
||||
l.print=function(){};l.qb=function(){};l.status=function(a){this.qb(this.type+": "+a)};l.wa=function(a,b,c){if(!b){var d=hb("Computer",this.id);if(d&&d.Y.Yd)return console.log("ignoring notice during unload: "+a),!1}c=c||this.type;b||q((c?c+": ":"")+a);return!0};function ub(a,b){a.Y.error=!0;a.wa(b)}function vb(a,b){b&&(a.Y.ready?b():a.Cf=b);return a.Y.ready}function v(a,b){a.Y.error||(a.Y.ready=!1!==b,a.Y.ready&&(b=a.Cf,a.Cf=null,b&&b()))}l.Rb=function(){return this.Y.Sb=!0};
|
||||
l.Qb=function(a,b){b&&(this.Y.Sb=!1);return!0};var tb="progress";window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]),window.PCjs.Commands||(window.PCjs.Commands={}));
|
||||
var bb=window?window.PCjs.Machines:{},$a=window?window.PCjs.Components:[],ob=window?window.PCjs.Commands:{},qb=["hold","sleep","wait"],rb={alert:function(a){q(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},sb={select:function(a,b,c){var d=!1;if(a=a.bindings[b])for(b=0;b<a.options.length;b++)if(a.options[b].textContent==c){a.selectedIndex!=b&&(a.selectedIndex=b);d=!0;break}return d}};
|
||||
Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1});Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});
|
||||
Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return e.apply(this instanceof c&&a?this:a,d.concat(Array.prototype.slice.call(arguments)))}function c(){}if("function"!=typeof this)throw new TypeError("Function.prototype.bind: non-callable object");var d=Array.prototype.slice.call(arguments,1),e=this;c.prototype=this.prototype;b.prototype=new c;return b});
|
||||
var wb="undefined"!==typeof ArrayBuffer,xb={Nf:4,gc:5,ad:6,Bc:7,Cc:8,Pa:9,Mb:11,Nb:12,Pd:4,yi:60,zi:83,Zb:3,zb:9,mc:16,Mf:1,Di:19,Fi:28,Hi:16,Gi:21,Ei:37,Bi:2,zg:9,Ci:5,Ai:33,Bg:10,Ag:8,Re:3,Qe:15,Vi:51,Wi:1,Xi:2,Yi:4,Ui:32,Cg:15,$i:15,Ja:16,Ka:4,bj:11,aj:18,Zi:24,Ob:4,cj:2,te:16,dj:17,Hg:18,ej:19,Gg:5,Ig:6,jj:2,ij:8,gj:9,hj:10,fj:10,Jg:10,Kg:10,Ji:80,Li:144,Ii:86,Ki:154,Ni:101,Pi:165,Mi:107,Oi:171,lj:70,nj:113,kj:76,mj:124,Ri:80,Ti:128,Qi:86,Si:134,Te:3,Se:16,Pg:10,Og:8,oj:51,$b:8,pj:17,qj:36,tc:11,
|
||||
rj:16,Qd:10,Hc:2,wg:18,xg:7,yg:15,Dg:12,Eg:7,Fg:11,Lg:18,Mg:7,Ng:15,Qg:15,Rg:7,Sg:13,Wg:11,Xg:7,Yg:8,sj:8,vj:12,tj:18,uj:17,wj:15,Ug:8,Tg:20,Vg:2,ah:3,Ue:9,$g:5,Zg:11,dh:4,bh:17,xj:11},yb={Nf:0,gc:0,ad:0,Bc:0,Cc:0,Pa:0,Mb:1,Nb:1,Pd:3,yi:14,zi:16,Zb:2,zb:7,mc:7,Mf:0,Di:7,Fi:13,Hi:7,Gi:11,Ei:16,Bi:3,zg:6,Ci:2,Ai:13,Bg:5,Ag:5,Re:2,Qe:7,Vi:23,Wi:0,Xi:1,Yi:3,Ui:17,Cg:7,$i:11,Ja:7,Ka:3,bj:7,aj:11,Zi:15,Ob:2,cj:3,te:7,dj:8,Hg:8,ej:8,Gg:4,Ig:4,jj:2,ij:3,gj:5,hj:2,fj:3,Jg:5,Kg:3,Ji:14,Li:22,Ii:17,Ki:25,Ni:17,
|
||||
Pi:25,Mi:20,Oi:28,lj:13,nj:21,kj:16,mj:24,Ri:13,Ti:21,Qi:16,Si:24,Te:2,Se:7,Pg:5,Og:5,oj:19,$b:5,pj:5,qj:17,tc:3,rj:5,Qd:3,Hc:0,wg:8,xg:5,yg:9,Dg:5,Eg:5,Fg:4,Lg:5,Mg:5,Ng:4,Qg:7,Rg:5,Sg:8,Wg:3,Xg:4,Yg:3,sj:11,vj:11,tj:15,uj:15,wj:7,Ug:5,Tg:8,Vg:0,ah:2,Ue:6,$g:3,Zg:6,dh:3,bh:5,xj:5};function zb(a){u.call(this,"Panel",a);this.mh=this.A=this.B=this.G=-1}ja(zb,u);l=zb.prototype;l.jc=function(a,b,c,d){this.na=a;this.oa=b;this.R=c;this.Ea=d;this.C=Ab(a,"Keyboard")};
|
||||
l.Ab=function(a,b,c,d){return this.na&&this.na.Ab(a,b,c,d)||this.R&&this.R.Ab(a,b,c,d)||this.C&&this.C.Ab(a,b,c,d)?!0:u.prototype.Ab.call(this,a,b,c,d)};l.Rb=function(a,b){b||Bb();return!0};l.Qb=function(){return!0};l.ie=function(a,b){a.button||(this.G=b?0:-1,Cb(this,a,b))};l.mg=function(a){Cb(this,a)};
|
||||
function Cb(a,b,c){var d=Db/null.offsetWidth,e=Eb/null.offsetHeight,f=null.getBoundingClientRect();d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.G||(a.G=Math.abs(a.A-d)>Math.abs(a.B-b)?1:2),1==a.G?b=a.B:2==a.G&&(d=a.A));a.A=d;a.B=b;if(0<=d&&d<Db&&0<=b&&b<Eb){a:{c=d;if(c<Fb&&a.F&&a.F.Rh)for(f=0;f<a.F.Rh.length;f++)if(e=a.F.Rh[f],e.contains(c,b)){c-=e.x;b-=e.y;f=a.F.Ko[f];d=Gb.Rl;var g=(a.F.Jo[f.Qo]&d.Ll)>>d.shift;d=g*a.oa.A;f=(g+f.Oo)*a.oa.A-1;0<b&&(d+=e.Po*(b-1)*a.fa);d+=c*a.fa;d|=
|
||||
0;d>f&&(d=f);c=d;break a}c=-1}if(-1!==c&&(c&=-16,c!=a.M)){b=c;if(a.context&&a.J&&a.K){e=Hb-Ib;f=a.J.width;a.K.fillStyle=Jb;a.K.fillRect(0,e,f,Ib);d=e+Kb;g=a.J;var h=a.K,k,m=null.style.color,r=a.ia=10;a.D=r;a.I=d;a.ba=a.aa=Kb;k||(k=a.W||a.aa+"px "+Lb);a.X=a.W=k;g&&(a.N=g);h&&(a.H=h,a.U=m||"white");a.L=a.N.width/24|0;if(null==b)Mb(a,"Mouse over memory to dump");else for(Mb(a,ra(b,8,!0),null,0,1),k=1;16>=k;k++){d="";for(g=1;8>=g;g++)h=a.oa,m=b++,h=h.X[(m&h.D)>>>h.B].Cd(m&h.C,m),Mb(a,ra(h,2),null,1),
|
||||
d+=32<=h&&128>h?String.fromCharCode(h):".";Mb(a,d,null,0,1)}a.context.drawImage(a.J,0,e,f,Ib,a.qa,a.ra,a.ka,a.pa)}a.M=c}}}function Mb(a,b,c,d,e){a.H.font=a.X;a.H.fillStyle=a.U;a.H.fillText(b,a.D,a.I);a.D+=a.L;null!=c&&(16!=a.ma?b=c.toString():(b=8>a.da?"0x":"",b+=ra(c,a.da)),a.H.fillText(b,a.D,a.I),a.D+=a.L);d&&(a.D+=a.L*d);e&&(a.D=a.ia,a.I+=(a.ba+2)*(e||1))}
|
||||
function Bb(){for(var a=!1,b=jb(document,"pcx86","panel"),c=0;c<b.length;c++){var d=b[c],e=kb(d),f=mb(e.id);f||(a=!0,f=new zb(e));ib(f,d);a&&v(f)}}var Db=1280,Eb=720,Kb=18,Lb="Monaco, Lucida Console, Courier New",Fb=3*Db>>2,Hb=Eb,Jb="black",Ib=Eb>>1;Sa(Bb);
|
||||
function Nb(a,b,c){u.call(this,"Bus",a);this.R=b;this.Ea=c;this.F=a.busWidth||20;this.N=Math.pow(2,this.F);this.W=this.D=this.N-1|0;this.B=32==this.F||20>=this.F?12:24>=this.F?14:15;this.A=1<<this.B;this.U=this.A>>2;this.C=this.A-1;this.H=this.N/this.A|0;this.K=this.H-1;this.I=[];this.J=[];this.L=[];this.M=[];a=new w;Ob(a,this.Ea);this.X=Array(this.H);for(b=0;b<this.H;b++)this.X[b]=a;a=this.R;b=this.X;c=this.B;a.Nc=a.X=b;a.Eb=c;a.rh=1<<a.Eb;a.Db=a.rh-1;a.hf=b.length;a.ze=a.hf-1;a=this.R;a.Ae=a.Dc=
|
||||
this.D;v(this)}ja(Nb,u);l=Nb.prototype;l.reset=function(){Pb(this,!0)};l.Rb=function(a,b){b||this.reset();return!0};
|
||||
function Qb(a,b,c,d,e){for(var f=b,g=c,h=f>>>a.B;0<g&&h<a.X.length;){var k=a.X[h],m=h*a.A,r=a.A-(f-m);r>g&&(r=g);if(k&&k.size){if(k.type==d&&k.controller==e){if(f+g<=k.ee)return k.xe+=k.ee-f,k.ee=f,!0;if(f>=k.ee+k.xe){r=k.size-(f-m);r>g&&(r=g);k.xe=f-k.ee+r;f=m+a.A;g-=r;h++;continue}}return Rb(a,Sb,f,g)}f=new w(f,r,a.A,d,e);Ob(f,a.Ea,k);a.X[h++]=f;f=m+a.A;g-=r}return 0>=g?(Tb(a.R),a.R.Y.cb||(e=c/1024|0,a.status((e?e+"Kb ":c+" bytes ")+Ub[d]+" at "+ra(b))),!0):Rb(a,Vb,b,c)}
|
||||
function Pb(a,b){32==a.F?b?a.G&&(Wb(a,1048576,1048576,a.G),a.G=null):a.G||(a.G=Xb(a,1048576,1048576),Wb(a,1048576,1048576,Xb(a,0,1048576))):20<a.F&&(b=a.D&-1048577|(b?1048576:0),b!=a.D&&(a.D=b,a.R&&(a=a.R,a.Ae=a.Dc=b)))}l.Xf=function(a,b,c,d){if(!(a&this.C||!b||b&this.C)){for(var e=a>>>this.B;0<b;){var f=this.X[e];if(!f.controller)return Rb(this,Yb,a,b,d);Zb(f,c,!0);b-=this.A;e++}return!0}return Rb(this,$b,a,b)};
|
||||
function ac(a,b,c){if(!(b&a.C||!c||c&a.C)){for(var d=b>>>a.B;0<c;){var e=a.X[d];b=new w(b);Ob(b,a.Ea,e);a.X[d++]=b;b=d*a.A;c-=a.A}Tb(a.R);return!0}return Rb(a,bc,b,c)}function Xb(a,b,c){var d=[];for(b>>>=a.B;0<c&&b<a.X.length;)d.push(a.X[b++]),c-=a.A;return d}
|
||||
function Wb(a,b,c,d,e){for(var f=0,g=b>>>a.B;0<c&&g<a.X.length;){var h=d[f++];if(!h)break;if(void 0!==e){var k=new w(b),m=k,r=e,x=a.Ea;m.id=h.id|1;m.xe=h.xe;m.size=h.size;r&&(m.type=r,m.H=r==cc);wb?(m.L=h.L,m.K=h.K,m.Ha=h.Ha,m.vd=h.vd,m.S=h.S,Zb(m,dc?ec:fc)):(m.S=h.S,Zb(m,gc));Ob(m,x,h);h=k}a.X[g++]=h;c-=a.A}}l.Ia=function(a){return this.X[(a&this.D)>>>this.B].nc(a&this.C,a)};function hc(a,b){var c=b&a.C,d=(b&a.D)>>>a.B;return c!=a.C?a.X[d].$e(c,b):a.X[d++].Cd(c,b)|a.X[d&a.K].Cd(0,b+1)<<8}
|
||||
l.Bb=function(a,b){this.X[(a&this.D)>>>this.B].pc(a&this.C,b&255,a)};function ic(a,b,c){var d=b&a.C,e=(b&a.D)>>>a.B;d!=a.C?a.X[e].qh(d,c&65535,b):(a.X[e++].df(d,c&255,b),a.X[e&a.K].df(0,c>>8&255,b+1))}
|
||||
function jc(a,b){var c=0,d=[],e=!a.G&&a.W==a.D;e||Pb(a,!0);for(var f=0;f<a.H;f++){var g=a.X[f];if(b&&g.type!=cc||g.Fa||g.fi){d[c++]=f;var h=c++;if(g=g.save()){for(var k=0,m=0,r=[];k<g.length;){for(var x=g[k],t=k+1;t<g.length&&g[t]===x;)t++;r[m++]=t-k;r[m++]=x;k=t}r.length<g.length&&(g=r)}d[h]=g}}e||Pb(a,!1);d[c]=e;return d}
|
||||
function kc(a,b,c,d){void 0===d&&(d=0);for(var e in c){var f=a,g=+e+d,h=c[e].bind(b);if(h)for(var k=+e+d;k<=g;k++)void 0!==f.I[k]?q("Input port "+ra(k,4,!0)+" already registered"):f.I[k]=[h,!1]}}function lc(a,b,c,d){for(var e=0,f=0;0<c;){var g=a.I[b],h=a.L[b]||1,k=1==h?255:2==h?65535:-1,m=k;void 0!==g&&g[0]&&(m=g[0](b,d),null==m?m=k:m&=k);e|=m<<f;f+=h<<3;b+=h;c-=h}return e}
|
||||
function mc(a,b,c,d){void 0===d&&(d=0);for(var e in c){var f=a,g=+e+d,h=c[e].bind(b);if(h)for(var k=+e+d;k<=g;k++)void 0!==f.J[k]?q("Output port "+ra(k,4,!0)+" already registered"):f.J[k]=[h,!1]}}function nc(a,b,c,d,e){for(var f=0;0<c;){var g=a.J[b],h=a.M[b]||1,k=1==h?255:2==h?65535:-1;k&=d>>>=f;if(void 0!==g&&g[0])g[0](b,k,e);f+=h<<3;b+=h;c-=h}}function Rb(a,b,c,d,e){b="Memory block error ("+b+": "+ra(c)+","+ra(d)+")";e?a.Ea?a.Ea.message(b):a.log(b):q(b);return!1}
|
||||
var Gb,oc={Rl:20,count:8,Lo:1,type:3},pc=0,qc;for(qc in oc){var rc=oc[qc];oc[qc]={Ll:(1<<rc)-1<<pc,shift:pc};pc+=rc}Gb=oc;var Sb=1,Vb=2,Yb=3,$b=4,bc=5,tc;if(wb){var uc=new ArrayBuffer(2);(new DataView(uc)).setUint16(0,256,!0);tc=256===(new Uint16Array(uc))[0]}else tc=!1;var dc=tc;
|
||||
function w(a,b,c,d,e,f){this.id=vc+=2;this.S=null;this.G=0;this.ee=a;this.xe=b;this.size=c||0;this.type=d||wc;this.H=d==cc;this.controller=null;this.F=f;Ob(this);this.Fa=this.fi=!1;if(c)if(e)this.controller=e,a=e.ki(a),this.S=a[0],this.G=a[1],Zb(this,e.kg());else if(wb)this.L=new ArrayBuffer(c),this.K=new DataView(this.L,0,c),this.Ha=new Uint8Array(this.L,0,c),this.vd=new Uint16Array(this.L,0,c>>1),this.S=new Int32Array(this.L,0,c>>2),Zb(this,dc?ec:fc);else{this.S=Array(c>>2);for(e=0;e<this.S.length;e++)this.S[e]=
|
||||
0;Zb(this,gc)}else Zb(this)}l=w.prototype;l.Bl=function(a){this.ee=a};l.save=function(){var a;if(this.controller)var b=null;else if(wb)for(b=Array(this.size>>2),a=0;a<b.length;a++)b[a]=this.K.getInt32(a<<2,!0);else b=this.S;return b};l.restore=function(a){if(this.controller)return!a;if(a&&this.size==a.length<<2){var b;if(wb)for(b=0;b<a.length;b++)this.K.setInt32(b<<2,a[b],!0);else this.S=a;return this.Fa=!0}return!1};function Zb(a,b,c){b||(b=a.type==xc?yc:a.type==zc?Ac:Bc);Cc(a,b,c);Dc(a,b,c)}
|
||||
function Cc(a,b,c){c&&a.fe||(a.nc=b[0]||a.Fj,a.Ze=b[2]||a.Gj,a.Rd=b[4]||a.Dj);if(c||void 0===c)a.Cd=b[0]||a.Fj,a.$e=b[2]||a.Gj,a.hh=b[4]||a.Dj}function Dc(a,b,c){c&&a.ge||(a.pc=!a.H&&b[1]||a.oh,a.ff=!a.H&&b[3]||a.ph,a.ef=!a.H&&b[5]||a.nh);if(c||void 0===c)a.df=b[1]||a.oh,a.qh=b[3]||a.ph,a.R=b[5]||a.nh}function Ob(a,b,c){a.Ea=b;a.fe=a.ge=0;c&&(c.F&&(a.F=c.F),(a.fe=c.fe)&&Cc(a,Ec,!1),(a.ge=c.ge)&&Dc(a,Ec,!1))}l.Fj=function(){return 255};l.oh=function(){};
|
||||
l.Gj=function(a,b){return this.nc(a++,b++)|this.nc(a,b)<<8};l.Dj=function(a,b){return this.nc(a++,b++)|this.nc(a++,b++)<<8|this.nc(a++,b++)<<16|this.nc(a,b)<<24};l.ph=function(a,b,c){this.pc(a++,b&255,c++);this.pc(a,b>>8,c)};l.nh=function(a,b,c){this.pc(a++,b&255,c++);this.pc(a++,b>>8&255,c++);this.pc(a++,b>>16&255,c++);this.pc(a,b>>>24,c)};l.an=function(a){return this.S[a>>2]>>>((a&3)<<3)&255};
|
||||
l.nn=function(a){var b=a>>2;a=(a&3)<<3;var c=this.S[b]>>a;return 24>a?c&65535:c&255|(this.S[b+1]&255)<<8};l.gn=function(a){var b=a>>2;a=(a&3)<<3;var c=this.S[b];a&&(c=c>>>a|this.S[b+1]<<32-a);return c};l.Cn=function(a,b){var c=a>>2;a=(a&3)<<3;this.S[c]=this.S[c]&~(255<<a)|b<<a;this.Fa=!0};l.On=function(a,b){var c=a>>2;a=(a&3)<<3;24>a?this.S[c]=this.S[c]&~(65535<<a)|b<<a:(this.S[c]=this.S[c]&16777215|b<<24,c++,this.S[c]=this.S[c]&-256|b>>8);this.Fa=!0};
|
||||
l.In=function(a,b){var c=a>>2;if(a=(a&3)<<3){var d=-1<<a;this.S[c]=this.S[c]&~d|b<<a;c++;this.S[c]=this.S[c]&d|b>>>32-a}else this.S[c]=b;this.Fa=!0};l.$m=function(a,b){this.F&&Fc(this.F,b,1,!1);return this.Cd(a,b)};l.mn=function(a,b){this.F&&Fc(this.F,b,2,!1);return this.$e(a,b)};l.fn=function(a,b){this.F&&Fc(this.F,b,4,!1);return this.hh(a,b)};l.Bn=function(a,b,c){this.F&&Fc(this.F,c,1,!0);this.H||this.df(a,b,c)};l.Nn=function(a,b,c){this.F&&Fc(this.F,c,2,!0);this.H||this.qh(a,b,c)};
|
||||
l.Hn=function(a,b,c){this.F&&Fc(this.F,c,4,!0);this.H||this.R(a,b,c)};l.cn=function(a,b){this.A.S[this.C]|=this.I;this.B.S[this.D]|=this.I;return this.J.nc(a,b)};l.pn=function(a,b){this.A.S[this.C]|=this.I;this.B.S[this.D]|=this.I;return this.J.Ze(a,b)};l.jn=function(a,b){this.A.S[this.C]|=this.I;this.B.S[this.D]|=this.I;return this.J.Rd(a,b)};l.En=function(a,b,c){this.A.S[this.C]|=this.I;this.B.S[this.D]|=this.M;this.J.pc(a,b,c)};
|
||||
l.Qn=function(a,b,c){this.A.S[this.C]|=this.I;this.B.S[this.D]|=this.M;this.J.ff(a,b,c)};l.Kn=function(a,b,c){this.A.S[this.C]|=this.I;this.B.S[this.D]|=this.M;this.J.ef(a,b,c)};l.dn=function(a,b){return Gc(this.F,b,!1).nc(a,b)};l.qn=function(a,b){return Gc(this.F,b,!1).Ze(a,b)};l.kn=function(a,b){return Gc(this.F,b,!1).Rd(a,b)};l.Fn=function(a,b,c){Gc(this.F,c,!0).pc(a,b,c)};l.Rn=function(a,b,c){Gc(this.F,c,!0).ff(a,b,c)};l.Ln=function(a,b,c){Gc(this.F,c,!0).ef(a,b,c)};l.Zm=function(a){return this.Ha[a]};
|
||||
l.Cj=function(a){return this.Ha[a]};l.bn=function(a){this.A.S[this.C]|=32;this.B.S[this.D]|=32;this.nc=this.Cj;return this.Ha[a]};l.ln=function(a){return this.K.getUint16(a,!0)};l.Hj=function(a){return a&1?this.Ha[a]|this.Ha[a+1]<<8:this.vd[a>>1]};l.on=function(a){this.A.S[this.C]|=32;this.B.S[this.D]|=32;this.Ze=this.Hj;return a&1?this.Ha[a]|this.Ha[a+1]<<8:this.vd[a>>1]};l.en=function(a){return this.K.getInt32(a,!0)};
|
||||
l.Ej=function(a){return a&3?this.Ha[a]|this.Ha[a+1]<<8|this.Ha[a+2]<<16|this.Ha[a+3]<<24:this.S[a>>2]};l.hn=function(a){this.A.S[this.C]|=32;this.B.S[this.D]|=32;this.Rd=this.Ej;return a&3?this.Ha[a]|this.Ha[a+1]<<8|this.Ha[a+2]<<16|this.Ha[a+3]<<24:this.S[a>>2]};l.An=function(a,b){this.Ha[a]=b;this.Fa=!0};l.Pj=function(a,b){this.Ha[a]=b;this.Fa=!0};l.Dn=function(a,b){this.Ha[a]=b;this.A.S[this.C]|=32;this.B.S[this.D]|=96;this.pc=this.Pj;this.J.Fa=!0};
|
||||
l.Mn=function(a,b){this.K.setUint16(a,b,!0);this.Fa=!0};l.Rj=function(a,b){a&1?(this.Ha[a]=b,this.Ha[a+1]=b>>8):this.vd[a>>1]=b;this.Fa=!0};l.Pn=function(a,b){a&1?(this.Ha[a]=b,this.Ha[a+1]=b>>8):this.vd[a>>1]=b;this.A.S[this.C]|=32;this.B.S[this.D]|=96;this.ff=this.Rj;this.J.Fa=!0};l.Gn=function(a,b){this.K.setInt32(a,b,!0);this.Fa=!0};l.Qj=function(a,b){a&3?(this.Ha[a]=b,this.Ha[a+1]=b>>8,this.Ha[a+2]=b>>16,this.Ha[a+3]=b>>24):this.S[a>>2]=b;this.Fa=!0};
|
||||
l.Jn=function(a,b){a&3?(this.Ha[a]=b,this.Ha[a+1]=b>>8,this.Ha[a+2]=b>>16,this.Ha[a+3]=b>>24):this.S[a>>2]=b;this.A.S[this.C]|=32;this.B.S[this.D]|=96;this.ef=this.Qj;this.J.Fa=!0};function Hc(a){wb&&!dc&&(a=a<<24|a<<8&16711680|a>>8&65280|a>>>24);return a}
|
||||
var wc=0,cc=2,xc=5,zc=6,Ub="NONE RAM ROM VIDEO H/W UNPAGED PAGED".split(" "),vc=0,Bc=[],gc=[w.prototype.an,w.prototype.Cn,w.prototype.nn,w.prototype.On,w.prototype.gn,w.prototype.In],Ec=[w.prototype.$m,w.prototype.Bn,w.prototype.mn,w.prototype.Nn,w.prototype.fn,w.prototype.Hn],Ac=[w.prototype.cn,w.prototype.En,w.prototype.pn,w.prototype.Qn,w.prototype.jn,w.prototype.Kn],yc=[w.prototype.dn,w.prototype.Fn,w.prototype.qn,w.prototype.Rn,w.prototype.kn,w.prototype.Ln];
|
||||
if(wb)var fc=[w.prototype.Zm,w.prototype.An,w.prototype.ln,w.prototype.Mn,w.prototype.en,w.prototype.Gn],ec=[w.prototype.Cj,w.prototype.Pj,w.prototype.Hj,w.prototype.Rj,w.prototype.Ej,w.prototype.Qj],Ic=[w.prototype.bn,w.prototype.Dn,w.prototype.on,w.prototype.Pn,w.prototype.hn,w.prototype.Jn];
|
||||
function Jc(a,b){u.call(this,"CPU",a);b=a.cycles||b;var c=a.multiplier||1;this.V={};this.V.zd=b;this.V.ng=Math.round(1E3/Kc);this.V.xi=this.V.sg=this.V.nd=c;this.V.Ff=Math.round(this.V.zd/1E4)/100;this.V.jd=this.V.re=this.V.Ff*this.V.nd;this.Y.Nj=this.Y.cb=this.Y.Yf=!1;this.Y.Gd=a.autoStart;this.Y.ci=!1;this.Y.yf=!1;this.V.Gf=this.V.se=0;this.V.Hf=a.csStart;this.V.Le=a.csInterval;this.V.Me=a.csStop;this.pa=[];this.sd=0;this.pi=this.rn.bind(this)}ja(Jc,u);l=Jc.prototype;
|
||||
l.jc=function(a,b,c,d){this.na=a;this.oa=b;this.Ea=d;for(b=0;b<Lc.length;b++)(d=this.ja[Lc[b]])&&this.na.Ab(null,Lc[b],d);this.rd=Ab(a,"FPU");this.U=Ab(a,"ChipSet");a=Mc(a,"autoStart");null!=a&&(this.Y.Gd="true"==a?!0:"false"==a?!1:!!a);Nc(c,this.id,function(){c.Y.Yf=!0},this.V.ng);v(this)};l.reset=function(){};l.save=function(){return null};l.restore=function(){return!1};
|
||||
l.Rb=function(a,b){if(!b){if(a&&this.restore){Oc(this);if(!this.restore(a))return!1;Pc(this)}else this.reset();this.qb("No debugger detected")}Qc(this);return!0};l.Qb=function(a,b){var c=this.Y.cb;b&&Rc(this);return a?this.save(c):!0};l.Gd=function(){return this.Y.cb?!0:this.Y.Gd||void 0===this.ja.run?Sc(this):!1};l.ji=function(){return 0};
|
||||
function Pc(a){void 0===a.V.Hf&&(a.V.Hf=0);void 0===a.V.Le&&(a.V.Le=-1);void 0===a.V.Me&&(a.V.Me=-1);a.Y.yf=0<=a.V.Hf&&0<a.V.Le;a.Y.yf&&(a.V.Gf=0,a.V.se=a.V.Hf-a.Ic)}
|
||||
l.Ab=function(a,b,c){var d=this;a=!1;switch(b){case "power":case "reset":this.ja[b]=c;a=!0;break;case "run":this.ja[b]=c;c.onclick=function(){var a=d.Y.cb,b;if(b=d.na)if(b=d.na,b.Y.Yd&&(b.Y.Yd=!1,b.Y.Je&&!b.Y.Sb&&b.ue(Tc)),b.Y.Sb)b=!0;else{var c=null,h,k=lb(b.id);for(h=0;h<k.length&&(c=k[h],c===b||c.Y.ready);h++);if(h==k.length)for(h=0;h<k.length&&(c=k[h],c===b||c.Y.Sb);h++);h==k.length&&(c=b);q("The "+c.type+" component ("+c.id+") is not "+(c.Y.ready?"powered yet":"ready yet"+(c.Cf?" (waiting for notification)":
|
||||
""))+".");b=!1}b&&a==d.Y.cb&&(d.Y.cb?Rc(d,!0):Sc(d,!0))};a=!0;break;case "speed":this.ja[b]=c;a=!0;break;case "setSpeed":this.ja[b]=c,c.onclick=function(){Uc(d,d.V.nd<<1,!0)},c.textContent=this.V.re.toFixed(2)+"Mhz",a=!0}return a};function Vc(a,b){a.Y.cb&&(b=a.A-b,a.A-=b,a.Wc-=b)}function Wc(a){var b=a.V.jd/a.V.Ff;if(!b||b>a.V.nd)b=a.V.nd;a.V.Ol=Math.floor(a.V.zd/Kc*b);a.V.sg=b}function Xc(a,b){var c=a.Ic+a.Sc+a.Wc-a.A;b&&1<a.V.nd&&a.V.jd>a.V.Ff&&(c=Math.round(c/a.V.nd));return c}
|
||||
function Oc(a){a.Ic=a.Sc=a.Wc=a.A=0;Pc(a);Uc(a,a.V.xi)}function Uc(a,b,c){if(void 0!==b){0<a.V.jd&&a.V.jd<.9*a.V.re&&(b=a.V.xi);a.V.jd=0;a.V.nd=b;b=a.V.Ff*a.V.nd;if(a.V.re!=b){a.V.re=b;b=a.V.re.toFixed(2)+"Mhz";var d=a.ja.setSpeed;d&&(d.textContent=b);a.qb("target speed: "+b)}c&&a.na&&Yc(a.na)}a.Ic+=a.Sc;a.Sc=0;a.V.$c=a.V.Od=0;Wc(a);for(c=a.pa.length-1;0<=c;c--)b=a.pa[c],0<=b[2]&&Zc(a,c,b[2],!0)}
|
||||
function Nc(a,b,c,d){d=void 0===d?-1:d;var e=a.pa.length;a.pa.push([b,-1,d,c]);0<=d&&Zc(a,e,d);return e}function Zc(a,b,c,d){0<=b&&b<a.pa.length&&(b=a.pa[b],d||0>b[1])&&(c=a.V.zd*a.V.sg/1E3*c|0,a.Y.cb&&(c+=$c(a)),b[1]=c)}function ad(a){for(var b=[],c=0;c<a.pa.length;c++){var d=a.pa[c];b.push([d[0],d[1],d[2]])}return b}function $c(a){var b=a.Wc-a.A;a.Wc=a.A=0;a.V.If+=b;a.Sc+=b;return b}
|
||||
l.rn=function(){this.sd=0;if(this.Y.cb){Wc(this);this.V.If=0;this.V.Ke=Da();this.V.$c||(this.V.$c=this.V.Ke);if(this.V.Od){var a=this.V.Ke-this.V.Od;a>this.V.ng&&(this.V.$c+=a,this.V.$c>this.V.Ke&&(this.V.$c=this.V.Ke))}try{this.Y.Yf=!1;do{for(var b,c=this.Y.yf?1:this.V.zd*this.V.sg|0,d=this.pa.length-1;0<=d;d--){var e=this.pa[d];0>e[1]||c>e[1]&&(c=e[1])}b=c;if(this.U){bd(this.U);var f=this.U;a=b;var g=f.pa[0];if(g.Ld){var h=(Xc(f.R,f.M)-g.kd)/f.Ba|0,k=cd(f,0)-h;g.mode==dd&&(k-=h);var m=k*f.Ba|0;
|
||||
g.mode==dd&&(m>>=1);a>m&&(a=m)}b=a;var r=this.U;a=b;if(r.A&&r.A[ed]&fd){var x=r.X-Xc(r.R,r.M);0<x&&a>x&&(a=x)}b=a}try{this.Oj(b)}catch(O){if("number"!=typeof O)throw O;}a=b=$c(this);for(var t=this.pa.length-1;0<=t;t--){var z=this.pa[t];0>z[1]||(z[1]-=a,0>=z[1]&&(z[1]=-1,z[3](),0<=z[2]&&Zc(this,t,z[2])))}a=b;if(this.Y.yf){var E=!1;this.V.Gf=this.V.Gf+this.ji()|0;this.V.se-=a;0>=this.V.se&&(this.V.se+=this.V.Le,E=!0);0<=this.V.Me&&this.V.Me<=Xc(this)&&(this.V.Le=this.V.Me=-1,Pc(this),Rc(this),E=!0);
|
||||
E&&this.qb(Xc(this)+" cycles: checksum="+ra(this.V.Gf))}}while(this.Y.cb&&!this.Y.Yf)}catch(O){Rc(this);Qc(this);this.na&&this.na.stop(Da(),Xc(this));ub(this,O.stack||O.message);return}if(this.Y.cb){b=setTimeout;c=this.pi;this.V.Od=Da();d=this.V.ng;this.V.If&&(d=Math.round(d*this.V.If/this.V.Ol));d-=this.V.Od-this.V.Ke;if(e=this.V.Od-this.V.$c)this.V.jd=Math.round(this.Sc/(10*e))/100,864E5<=e&&(this.Ic=0,this.U&&bd(this.U,!0),Uc(this));0>d?(-1E3>d&&(this.V.$c-=d),d=0):this.V.jd<this.V.re&&(d=0);this.V.Od+=
|
||||
d;this.sd=b(c,d)}}};function Sc(a,b){if(a.Y.error){a.qb(a.toString()+" error");var c=!0}else c=!1;if(c)return!1;if(a.Y.cb)return a.qb(a.toString()+" busy"),!1;a.sd&&(clearTimeout(a.sd),a.sd=0);Uc(a);a.Y.cb=!0;a.Y.Nj=!0;a.U&&a.U.start();if(c=a.ja.run)c.textContent="Halt";a.na&&(gd(a.na,!0),b&&Yc(a.na,!0),a.na.start(a.V.$c,Xc(a)));a.sd=setTimeout(a.pi,0);return!0}l.Oj=function(){return 0};
|
||||
function Rc(a,b){if(a.Y.cb){$c(a);a.Ic+=a.Sc;a.Sc=0;a.Y.cb=!1;a.U&&a.U.stop();var c=a.ja.run;c&&(c.textContent="Run");a.na&&(a.na.stop(Date.now()||+new Date,Xc(a)),gd(a.na,!0));a.Ea||a.status("Stopped")}a.Y.complete=b}function Qc(a){a.na&&gd(a.na,void 0)}var Kc=30,Lc=["power","reset"];
|
||||
function hd(a,b,c,d){this.A=a;this.Ea=a.Ea;this.id=b;this.Wf=c||"";this.ha=0;this.jb=65535;this.C=this.jb+1;this.tb=this.ic=this.ext=this.nb=this.type=this.va=0;this.bc=-1;this.T=this.Jc=2;this.O=this.ta=65535;this.J=this.ui;this.I=this.H=this.wf;this.B={ha:-1,va:0,jb:0,nb:0,type:0,ext:0,bc:-1};1==this.id&&(this.Ye=0,this.D=null,this.ne=!1,this.G=Array(32),this.F=[]);id(this,!0,d);0==this.id&&(this.Kb=this.sb=this.$h)}l=hd.prototype;l.ui=function(a){this.ha=a&65535;return this.va=this.ha<<4};
|
||||
l.Ef=function(a,b){var c=this.A;a&=65535;if(a&4){var d=c.lc.va;var e=d+c.lc.jb|0}else d=c.Jb,e=c.Oc;if(d){d=d+(a&65528)|0;if(e-d|0)return c.A-=15,jd(this,d,a,b);this.id<kd&&y.call(c,b&&this.id==ld?10:13,a&65532)}return-1};l.Jl=function(a){var b=this.A;a=b.Wb+(a<<2);var c=b.ga(a);b.N&=-769;return this.load(b.ga(a+2))+c|0};l.Il=function(a){var b=this.A;a<<=3;var c=b.Wb+a|0;if(7<=(b.Qc-c|0))return this.D=!0,a=jd(this,c,a),-1!==a&&(a+=this.Ye),a;y.call(b,13,a|2);return-1};
|
||||
l.$h=function(a){return this.va+a|0};l.wf=function(a,b){(a>>>0)+b>this.C&&(8088>=this.A.ca?this.A.K|=8:y.call(this.A,13));return this.va+a|0};l.Zh=function(a,b){return(a>>>0)+b<=this.C?this.va+a|0:this.vf()};l.ek=function(a,b){return(a>>>0)+b>this.C?this.va+a|0:this.vf()};l.vf=function(){y.call(this.A,13,0);return-1};l.ai=function(a,b){return(a>>>0)+b<=this.C?this.va+a|0:this.xf()};l.fk=function(a,b){return(a>>>0)+b>this.C?this.va+a|0:this.xf()};l.xf=function(){y.call(this.A,13,0);return-1};
|
||||
function md(a,b,c,d,e){a.ha=b;a.va=d;a.jb=e;a.C=(e>>>0)+1;a.nb=c;a.type=c&7936;a.ext=c>>16&192;a.bc=(b&4?a.A.lc.va:a.A.Jb)+(b&65528)|0;a.id<nd&&id(a,!0)}function od(a,b,c){var d=a.A,e=d.ga(b+2),f=d.ga(b)|(e&255)<<16;d=d.ga(b+4);a.ha=c;a.va=f;a.jb=d;a.C=(d>>>0)+1;a.nb=e;a.type=e&7936;a.ext=0;a.bc=b;a.id<nd&&id(a,!0)}
|
||||
function jd(a,b,c,d){var e=a.A;if(!d&&c===a.B.ha)return a.ha=c,a.va=a.B.va,a.jb=a.B.jb,a.C=(a.B.jb>>>0)+1,a.nb=a.B.nb,a.type=a.B.type,a.ext=a.B.ext,a.bc=a.B.bc,a.B.ha=-1,id(a,!0,!0,!1),a.va;a.B.ha=-1;var f=e.ga(b+0),g=e.ga(b+4),h=g&7936,k=e.ga(b+2)|(g&255)<<16,m=e.ga(b+6),r=c&65528;if(80386<=e.ca){var x=f;k|=(m&65280)<<16;f|=(m&15)<<16;m&128&&(f=f<<12|4095)}switch(a.id){case pd:var t=a.D;a.ne=!1;if(t&&c==qd&&a.F.length){var z=a.F[a.Ye-1];if(z&&!z())return-1}var E=c&3,O=(g&24576)>>13;z=-1;r||b>=e.Jb&&
|
||||
b<e.Oc&&(h=0);if(6144<=h)null!=d?z=0:!1!==t?(h&1024?O<=a.tb&&(z=0):E<=a.tb&&O==a.tb&&(z=0),z||(c=c&-4|a.tb&3)):E>=a.tb&&(E>a.tb&&(z=A(e),rd(e,A(e),!0),B(e,z),a.ne=!0),z=0);else{if(256==h||2304==h)return sd(a,c,t)?a.va:-1;if(1024==h){z=2;var K=0;E<a.tb&&(E=a.tb)}else if(3072==h)z=4,K=0,E<a.tb&&(E=a.tb);else if(1536==h)z=2,K=148224;else if(3584==h)z=4,K=148224;else if(1792==h)z=2,K=147712;else if(3840==h)z=4,K=147712;else if(1280==h)return sd(a,k&65535,t)?a.va:-1}0<z&&!(g&32768)&&(z=0);if(0<z){r=a.tb;
|
||||
var ca=b==e.Wb+c;if(E<=O&&(!ca||0<=e.sc||r<=O)){b=k&65535;h&2048&&(f=x|m<<16);m=h=0;d=b&3;if(d<r){if(-1===a.Ef(b,!0))return-1;m=e.ka.va;e.ka.type&2048?(c=(d<<3)+4,x=4):(c=(d<<2)+2,x=2);h=e.ga(m+c+x);if(!h)return y.call(e,10,h),-1;if(-1===e.W.Ef(h,!0))return-1;m=2==x?e.ga(m+c):e.ea(m+c)}c=e.N;e.N&=~K;c&131072&&td(e,!0,!1);if(-1===a.Ef(b,!1))return-1;ud(e,z);a.Ye=f;if(d<r){if(!0!==t)return-1;z=C(e);f=0;for(g&=31;g--;)a.G[f++]=vd(e,e.W,z),z+=2;t=e.W.ha;g=C(e);rd(e,h,!0);B(e,m);c&131072&&(ud(e,4),wd(e,
|
||||
e.vb.ha,4,2),e.vb.load(0),wd(e,e.rb.ha,4,2),e.rb.load(0),wd(e,e.Ga.ha,4,2),xd(e,0),wd(e,e.xa.ha,4,2),yd(e,0));wd(e,t,e.T,2);for(D(e,g);f;)D(e,a.G[--f]);a.ne=!0}return a.va}}if(0!=z)return y.call(e,13,c&65532|(ca?2:0)),-1;if(!(g&32768))return y.call(e,11,c&65532|(ca?2:0)),-1;break;case zd:if(r){if(4096>h||2048==(h&2560))return y.call(e,13,c&65532),-1;if(!(g&32768))return y.call(e,11,c&65532),-1}break;case ld:if(!r||4096>h||512!=(h&2560))return y.call(e,13,c&65532),-1;if(!(g&32768))return y.call(e,
|
||||
12,c&65532),-1;break;case nd:t=h&-513;if(!r||256!=t&&2304!=t)return y.call(e,13,c&65532),-1;2304==t&&(a.Th=k+e.ga(k+102)|0,a.bk=k+a.jb|0);break;case kd:if(!(h&4096)&&768<h&&2304!=h&&2816!=h)return-1}d?(a.B.ha=c,a.B.va=k,a.B.jb=f,a.B.nb=g,a.B.type=h,a.B.ext=m,a.B.bc=b):(a.ha=c,a.va=k,a.jb=f,a.C=(f>>>0)+1,a.nb=g,a.type=h,a.ext=m,a.bc=b,id(a,!0,!0,!1));return k}
|
||||
function sd(a,b,c){var d=a.A,e=a.tb,f=d.ka.ha,g=d.ka.va;if(!c){if(!(d.ka.type&512))return y.call(d,13,b&65532),!1;d.Za(d.ka.bc+4,d.ka.nb&=-513)}if(-1===d.ka.load(b))return!1;var h=d.ka.va;if(!1!==c){if(d.ka.type&512)return y.call(d,13,b&65532),!1;d.Za(d.ka.bc+4,d.ka.nb|=512)}d.ka.type=d.ka.type&-513|d.ka.nb&512;256==d.ka.type||768==d.ka.type?(d.Za(g+14,F(d)),d.Za(g+16,Ad(d)),d.Za(g+18,d.F),d.Za(g+20,d.H),d.Za(g+22,d.L),d.Za(g+24,d.G),d.Za(g+26,C(d)),d.Za(g+28,d.M),d.Za(g+30,d.J),d.Za(g+32,d.I),d.Za(g+
|
||||
34,d.xa.ha),d.Za(g+36,d.fa.ha),d.Za(g+38,d.W.ha),d.Za(g+40,d.Ga.ha),d.lc.load(d.ga(h+42)),Bd(d,d.ga(h+16)|(c?16384:0)),d.F=d.ga(h+18),d.H=d.ga(h+20),d.L=d.ga(h+22),d.G=d.ga(h+24),d.M=d.ga(h+28),d.J=d.ga(h+30),d.I=d.ga(h+32),d.xa.load(d.ga(h+34)),d.Ga.load(d.ga(h+40)),Cd(d,d.ga(h+14),d.ga(h+36)),b=38,g=26,a.tb<e&&(g=(a.tb<<2)+2,b=g+2),rd(d,d.ga(h+b),!0),B(d,d.ga(h+g))):(d.Ta(g+28,d.Vc),d.Ta(g+32,F(d)),d.Ta(g+36,Ad(d)),d.Ta(g+40,d.F),d.Ta(g+44,d.H),d.Ta(g+48,d.L),d.Ta(g+52,d.G),d.Ta(g+56,C(d)),d.Ta(g+
|
||||
60,d.M),d.Ta(g+64,d.J),d.Ta(g+68,d.I),d.Ta(g+72,d.xa.ha),d.Ta(g+76,d.fa.ha),d.Ta(g+80,d.W.ha),d.Ta(g+84,d.Ga.ha),d.Ta(g+88,d.rb.ha),d.Ta(g+92,d.vb.ha),b=d.ea(h+28),d.Vc=b,Tb(d),d.lc.load(d.ga(h+96)),Bd(d,d.ea(h+36)|(c?16384:0)),d.F=d.ea(h+40),d.H=d.ea(h+44),d.L=d.ea(h+48),d.G=d.ea(h+52),d.M=d.ea(h+60),d.J=d.ea(h+64),d.I=d.ea(h+68),d.xa.load(d.ga(h+72)),d.Ga.load(d.ga(h+84)),d.rb.load(d.ga(h+88)),d.vb.load(d.ga(h+92)),Cd(d,d.ea(h+32),d.ga(h+76)),b=80,g=56,a.tb<e&&(g=(a.tb<<3)+4,b=g+4),rd(d,d.ga(h+
|
||||
b),!0),B(d,d.ea(h+g)));c&&d.Za(h+0,f);d.ra|=8;return!0}l.save=function(){return[this.ha,this.va,this.jb,this.nb,this.id,this.Wf,this.tb,this.ic,this.bc,this.Jc,this.ta,this.T,this.O,this.type,this.C]};
|
||||
l.restore=function(a){"number"==typeof a?this.load(a):(this.ha=a[0],this.va=a[1],this.jb=a[2],this.nb=a[3],this.id=a[4],this.Wf=a[5],this.tb=a[6],this.ic=a[7],this.bc=a[8],this.Jc=a[9]||2,this.ta=a[10]||65535,this.T=a[11]||2,this.O=a[12]||65535,this.type=a[13]||this.nb&7936,this.C=a[14]||(this.jb>>>0)+1)};
|
||||
function id(a,b,c,d){void 0===c&&(c=!!(a.A.ra&1));a.ke=!1;if(c)if(a.load=a.Ef,a.ti=a.Il,a.sb=a.Zh,a.Kb=a.ai,void 0===d&&(d=!!(a.A.N&131072)),d)a.load=a.J,a.sb=a.H,a.Kb=a.I,a.tb=a.ic=3,a.T=2,a.O=a.ta=65535,a.jb=65535,a.C=a.jb+1,a.Jc=a.T,a.bc=-1,a.ne=!1;else{if(!(a.ha&-4))a.sb=a.vf,a.Kb=a.xf;else if(a.type&4096){6144==(a.type&6656)&&(a.sb=a.vf);if(a.type&2048||!(a.type&512))a.Kb=a.xf;1024==(a.type&3072)&&(a.sb==a.Zh&&(a.sb=a.ek),a.Kb==a.ai&&(a.Kb=a.fk),a.ke=!0);b&&a.id<kd&&a.ha&-4&&-1!==a.bc&&(c=a.bc+
|
||||
5,d=a.A.Ia(c),d&1||a.A.Bb(c,d|1))}b&&(a.tb=a.ha&3,a.ic=(a.nb&24576)>>13,80386>a.A.ca||!(a.ext&64)?(a.T=2,a.O=65535):(a.T=4,a.O=-1),a.Jc=a.T,a.ta=a.O)}else a.load=a.ui,a.ti=a.Jl,a.sb=a.wf,a.Kb=a.wf,a.tb=a.ic=0,a.bc=-1,a.ne=!1}var pd=1,zd=2,ld=3,nd=4,kd=6,qd=1;
|
||||
function Dd(a){var b=+a.model||8088;switch(b){default:var c=4772727;break;case 80286:c=6E6;break;case 80386:c=16E6}Jc.call(this,a,c);this.ca=b;a=a.stepping;this.qd=b+(a?qa(a,16):0);this.Ph=61442;this.pd=1792;this.Oh=28672;this.gf=4;this.Ma=255;this.B=80286<=this.ca?yb:xb;this.qa=Ed;this.Yh=Fd;this.bi=Gd;this.ei=Hd;if(80186<=this.ca&&(this.qa=Ed.slice(),this.Yh=Fd.slice(),this.bi=Gd.slice(),this.Ma=31,this.qa[15]=Id,this.qa[96]=Jd,this.qa[97]=Kd,this.qa[98]=Ld,this.qa[99]=Id,this.qa[100]=Id,this.qa[101]=
|
||||
Id,this.qa[102]=Id,this.qa[103]=Id,this.qa[104]=Md,this.qa[105]=Nd,this.qa[106]=Od,this.qa[107]=Pd,this.qa[108]=Qd,this.qa[109]=Rd,this.qa[110]=Sd,this.qa[111]=Td,this.qa[192]=Ud,this.qa[193]=Vd,this.qa[200]=Wd,this.qa[201]=Xd,this.qa[241]=Yd,this.Yh[7]=Zd,this.bi[7]=Zd,80286<=this.ca)){this.Ph=2;this.pd|=28672;this.gf=0;this.qa[15]=$d;this.dd=ae.slice();for(b=0;b<this.dd.length;b++)this.dd[b]||(this.dd[b]=be);this.qa[84]=ce;this.qa[99]=de;if(80386<=this.ca){var d;this.Oh=0;this.pd|=196608;this.qa[100]=
|
||||
ee;this.qa[101]=fe;this.qa[102]=ge;this.qa[103]=he;for(d in G)this.dd[+d]=G[+d];80546<=this.qd&&80562>=this.qd&&(this.dd[166]=ie,this.dd[167]=je)}}this.kf=[];this.Xh=[];this.$f=0;Oc(this);this.Y.complete=this.Y.gk=!1;this.ii=0;this.Nc=this.X=[];this.Eb=this.rh=this.Db=this.hf=this.ze=this.Ae=this.Dc=0;ke(this)}ja(Dd,Jc);
|
||||
function le(a){var b;if(a.X===a.Nc){a.X=Array(a.hf);a.lf=new w(null,0,0,xc,null,a);Ob(a.lf,a.Ea);for(b=0;b<a.hf;b++)a.X[b]=a.lf;a.Ce=new w;a.Sh=Array(me);a.mf=0}else for(var c=0;c<a.jf.length;c++){b=a.jf[c];var d=a.X[b];a.mf<me&&(a.Sh[a.mf++]=d);a.X[b]=a.lf}a.jf=[]}function Tb(a){a.ra&-2147483648&&le(a)}
|
||||
function Gc(a,b,c,d){var e=(b&-4194304)>>>20,f=a.Nc[(a.Vc+e&a.Ae)>>>a.Eb],g=f.Rd(e);if(!(g&1))return d||ne.call(a,b,!1,c),a.Ce;if(!(g&4)&&3==a.La)return d||ne.call(a,b,!0,c),a.Ce;var h=(b&4190208)>>>10;g=a.Nc[((g&-4096)+h&a.Ae)>>>a.Eb];var k=g.Rd(h);if(!(k&1))return d||ne.call(a,b,!1,c),a.Ce;if(!(k&4)&&3==a.La)return d||ne.call(a,b,!0,c),a.Ce;c=a.Nc[((k&-4096)+(b&4095)&a.Ae)>>>a.Eb];if(d)return c;d=b>>>a.Eb;k=a.X[d];b&=-4096;if(0<a.mf){var m=a.Sh[--a.mf];m.Bl(b)}else m=new w(b,0,0,zc);b=m;b.J=c;b.A=
|
||||
f;b.C=e>>2;b.B=g;b.D=h>>2;wb&&dc&&c.S&&!c.controller&&!c.fe&&!c.ge?(b.Ha=c.Ha,b.vd=c.vd,b.S=c.S,Zb(b,Ic)):(b.I=c?Hc(32):0,b.M=c?Hc(96):0,Zb(b,Ac));Ob(b,a.Ea,k);a.X[d]=b;a.jf.push(d);return b}function oe(a){a.X!==a.Nc&&(a.X=a.Nc,a.lf=null,a.jf=null,a.Ce=null)}l=Dd.prototype;l.reset=function(){ke(this);Oc(this);this.Y.error=!1};
|
||||
function pe(a,b){switch(b){case 0:var c=a.F;break;case 1:c=a.H;break;case 2:c=a.L;break;case 3:c=a.G;break;case 4:c=C(a);break;case 5:c=a.M;break;case 6:c=a.J;break;case 7:c=a.I}return c}function qe(a,b,c){switch(b){case 0:a.F=c;break;case 1:a.H=c;break;case 2:a.L=c;break;case 3:a.G=c;break;case 4:B(a,c);break;case 5:a.M=c;break;case 6:a.J=c;break;case 7:a.I=c}}
|
||||
function ke(a){a.F=0;a.G=0;a.H=0;a.L=0;a.kc=0;a.M=0;a.J=0;a.I=0;a.fc=!1;a.Ba=a.Sa=0;a.Ql=[0,0];a.Tl=[0,0];a.ua=0;a.hi=0;a.aa=0;a.ra=65520;a.Wb=0;a.Qc=1023;a.N=a.Yb=0;a.$d=a.De=a.Zd=a.ae=0;a.sc=-1;a.Tc=a.uc=-1;a.Uc=a.ma=-1;a.fa=new hd(a,pd,"CS");a.Ga=new hd(a,zd,"DS");a.xa=new hd(a,zd,"ES");a.W=new hd(a,ld,"SS");B(a,0);rd(a,0);if(80386<=a.ca){switch(a.qd){case 80562:case 80563:a.L=771;break;case 80578:a.L=772;break;case 80594:a.L=773;break;case 80595:case 80596:a.L=776}a.ra=16;a.ri=0;a.td=0;a.Vc=0;
|
||||
a.Cb=[0,0,0,0,null,null,0,0];a.nf=[null,null,null,null,null,null,0,0];a.rb=new hd(a,zd,"FS");a.vb=new hd(a,zd,"GS");oe(a)}a.bg=new hd(a,0,"NULL");a.Ca=a.Ga;a.Gb=a.W;a.K=a.ba=0;a.C=a.D=-1;a.Da=a.bg;a.Qa=0;if(80286>a.ca)Cd(a,0,65535);else{a.Jb=0;a.Oc=65535;a.lc=new hd(a,5,"LDT",!0);a.ka=new hd(a,nd,"TSS",!0);a.gb=new hd(a,kd,"VER",!0);Cd(a,65520,61440);var b=F(a);var c=a.fa;var d=-65536;80386>c.A.ca&&(d&=16777215);c=c.va=d;a.da=c+b|0;a.ag=(c>>>0)+(a.fa.jb>>>0)+1}Bd(a,0);td(a)}
|
||||
function re(a){2==a.Jc?(a.ni=a.ga,a.Xb=se,a.ec=te,a.Rc=ue,2==a.T?(a.ia=ve,a.za=we,a.eb=xe):(a.ia=ye,a.za=ze,a.eb=Ae)):(a.ni=a.ea,a.Xb=Be,a.ec=Ce,a.Rc=De,2==a.T?(a.ia=Ee,a.za=Fe,a.eb=Ge):(a.ia=He,a.za=Ie,a.eb=Je))}function ud(a,b){a.T!=b&&(a.ba|=1024,a.T=b,a.O=2==b?65535:-1,Ke(a))}function Ke(a){2==a.T?(a.wb=32768,a.mb=a.ga,a.Lb=a.Za,2==a.Jc?(a.ia=ve,a.za=we,a.eb=xe):(a.ia=Ee,a.za=Fe,a.eb=Ge)):(a.wb=-2147483648,a.mb=a.ea,a.Lb=a.Ta,2==a.Jc?(a.ia=ye,a.za=ze,a.eb=Ae):(a.ia=He,a.za=Ie,a.eb=Je))}
|
||||
function Le(a){a.Jc=a.fa.Jc;a.ta=a.fa.ta;re(a);a.T=a.fa.T;a.O=a.fa.O;Ke(a);a.ba&=-3073}l.ji=function(){var a=this.F+this.G+this.H+this.L+C(this)+this.M+this.J+this.I|0;return a=a+F(this)+this.fa.ha+this.Ga.ha+this.W.ha+this.xa.ha+Ad(this)|0};function Me(a,b,c){void 0===a.kf[b]&&(a.kf[b]=[]);a.kf[b].push(c)}function Ne(a,b){var c=a.Xh[b];null!=c&&(c(--a.$f),delete a.Xh[b])}
|
||||
function Oe(a,b){for(var c=a.Cb[7],d=c>>16,e=0;4>e;e++){if(c&3){var f=!!(d&1),g=a.Cb[e];g&=~(d>>2&3);if(b){g=a.X[g>>>a.Eb];var h=a;f?0===g.ge++&&(h&&(g.F=h),Dc(g,Ec,!1)):0===g.fe++&&(h&&(g.F=h),Cc(g,Ec,!1))}else g=a.X[g>>>a.Eb],f?0===--g.ge&&(f=g,f.pc=f.H?f.oh:f.df,f.ff=f.H?f.ph:f.qh,f.ef=f.H?f.nh:f.R):0===--g.fe&&(f=g,f.nc=f.Cd,f.Ze=f.$e,f.Rd=f.hh)}c>>=2;d>>=4}}
|
||||
function Fc(a,b,c,d){if(!(a.K&8192)&&a.Cb[7]&255){c--;var e=a.Cb[7],f=e>>16;d=d?1:0==d?3:0;for(var g=0;4>g;g++){if(e&3&&(f&3)==d){var h=f>>2;if(b+c>=a.Cb[g]&&b<=a.Cb[g]+h){a.Cb[6]|=1<<g;a.Qa|=2;break}}e>>=2;f>>=4}}}function td(a,b,c){void 0===b&&(b=!!(a.ra&1));void 0===c&&(c=!!(a.N&131072));a.ei=b&&!c?Pe:Hd;id(a.fa,!1,b,c);id(a.Ga,!1,b,c);id(a.W,!1,b,c);id(a.xa,!1,b,c);80386<=a.ca&&(id(a.rb,!1,b,c),id(a.vb,!1,b,c));Le(a)}
|
||||
l.save=function(a){var b=new Qe(this);b.set(0,[this.F,this.G,this.H,this.L,C(this),this.M,this.J,this.I]);var c=F(this),d=this.fa.save(),e=this.Ga.save(),f=this.W.save(),g=this.xa.save();if(null!=this.Jb){var h=[this.ra,this.Jb,this.Oc,this.Wb,this.Qc,this.lc.save(),this.ka.save(),this.Yb];80386<=this.ca&&(h.push(this.ri),h.push(this.td),h.push(this.Vc),h.push(this.Cb),h.push(this.nf))}else h=null;c=[c,d,e,f,g,h,Ad(this)];80386<=this.ca&&(c.push(this.rb.save()),c.push(this.vb.save()));b.set(1,c);
|
||||
b.set(2,[this.Ca.Wf,this.Gb.Wf,this.K,this.ba,this.Qa,this.C,this.D]);b.set(3,[0,this.Ic,this.V.nd,a,ad(this)]);b.set(4,jc(this.oa,!!(this.ra&-2147483648)));return b.data()};
|
||||
l.restore=function(a){var b=a[0];this.F=b[0];this.G=b[1];this.H=b[2];this.L=b[3];var c=b[4];this.M=b[5];this.J=b[6];this.I=b[7];b=a[1];this.fa.restore(b[1]);this.Ga.restore(b[2]);this.W.restore(b[3]);this.xa.restore(b[4]);var d=b[5];d&&d.length&&(this.ra=d[0],this.Jb=d[1],this.Oc=d[2],this.Wb=d[3],this.Qc=d[4],this.lc.restore(d[5]),this.ka.restore(d[6]),this.Yb=d[7],80386<=this.ca&&(this.ri=d[8],this.td=d[9],this.Vc=d[10],this.Cb=d[11],this.nf=d[12]),td(this));Bd(this,b[6]);d=!1;a:{var e=this.oa;
|
||||
var f=a[4],g;for(g=0;g<f.length-1;g+=2){var h=f[g],k=f[g+1];if(k&&k.length<e.U){for(var m=0,r=Array(e.U),x=0;x<k.length-1;)for(var t=k[x++],z=k[x++];t--;)r[m++]=z;k=r}m=e.X[h];if(!m||!m.restore(k)){q("Unable to restore memory block "+h);e=!1;break a}}void 0!==f[g]&&Pb(e,f[g]);e=!0}e&&(Cd(this,b[0],this.fa.ha),B(this,c),rd(this,this.W.ha),80386<=this.ca&&(this.rb.restore(b[7]),this.vb.restore(b[8])),d=!0);b=a[2];this.Ca=null!=b[0]&&Re(this,b[0])||this.Ga;this.Gb=null!=b[1]&&Re(this,b[1])||this.W;this.K=
|
||||
b[2];this.ba=b[3];this.Qa=b[4];this.C=b[5];this.D=b[6];b=a[3];this.Ic=b[1];Uc(this,b[2]);null!=b[3]&&(this.Y.Gd=b[3]);if(null!=b[4])for(a=b[4],b=0;b<a.length;b++){c=a[b];a:{for(e=0;e<this.pa.length;e++)if(f=this.pa[e],f[0]==c[0]){e=f;break a}e=null}e&&(e[1]=c[1],e[2]=c[2])}return d};function Re(a,b){switch(b){case "CS":return a.fa;case "DS":return a.Ga;case "SS":return a.W;case "ES":return a.xa;case "NULL":return a.bg;default:return[0,b,0,0,""]}}function Se(a,b){null!=Cd(a,F(a),b)&&(a.K|=a.gf)}
|
||||
function xd(a,b){-1!==a.Ga.load(b)&&(a.K|=a.gf)}function rd(a,b,c){var d=C(a);-1!==a.W.load(b)&&(B(a,d),a.W.ke?(a.si=a.W.va+a.W.ta|0,a.wi=a.W.va+a.W.jb|0):(a.si=a.W.va+a.W.jb|0,a.wi=a.W.va),c||(a.K|=4))}function yd(a,b){-1!==a.xa.load(b)&&(a.K|=a.gf)}function F(a){return a.da-a.fa.va|0}function H(a,b){a.da=a.fa.va+(b&a.O)|0}function Te(a,b){a.da=b;a.ag=(a.fa.va>>>0)+(a.fa.jb>>>0)+1;a.La=a.fa.tb;Le(a)}
|
||||
function Cd(a,b,c,d){var e=a.fa;e.Ye=b;e.D=d;b=e.load(c);return-1!==b?(Te(a,b+(a.fa.Ye&a.fa.O)),a.fa.ne):null}function Ue(a,b){var c=(a.da>>>0)+b;c>a.ag&&(8088>=a.ca?(c=a.fa.va+(c-a.ag&a.O),2==b&&(a.K|=8)):y.call(a,13,0));return c|0}function Ve(a){a.da=a.Uc}function C(a){return a.kc&~a.W.ta|a.Aa-a.W.va}function B(a,b){a.kc=b;a.Aa=a.W.va+(b&a.W.ta)|0}
|
||||
function We(a,b,c,d,e,f){if(63!=(e&63)&&e!=a.resultType){var g=(e^a.resultType)&a.resultType;g&&(g&1&&Xe(a),g&2&&Ye(a),g&4&&Ze(a),g&8&&$e(a),g&16&&af(a),g&32&&bf(a))}f?(a.$d=d,a.Zd=b):(a.$d=b,a.Zd=d);a.De=c;a.ae=d;a.resultType=e}function cf(a,b,c,d,e){a.resultType=c|26;a.ae=b;d?df(a):ef(a);e?ff(a):gf(a);return b}function hf(a,b,c,d){c&d?df(a):ef(a);(b^c)&d?ff(a):gf(a)}function jf(a){return Xe(a)?1:0}
|
||||
function Xe(a){a.resultType&1&&(a.N&=-2,(a.$d^(a.$d^a.De)&(a.De^a.Zd))&a.resultType&-2147450752&&(a.N|=1),a.resultType&=-2);return a.N&1}function Ye(a){a.resultType&2&&(a.N&=-5,38505>>((a.ae^a.ae>>4)&15)&1&&(a.N|=4),a.resultType&=-3);return a.N&4}function Ze(a){a.resultType&4&&(a.N&=-17,(a.Zd^a.$d^a.De)&16&&(a.N|=16),a.resultType&=-5);return a.N&16}function $e(a){a.resultType&8&&(a.N&=-65,a.ae&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.N|=64),a.resultType&=-9);return a.N&64}
|
||||
function af(a){a.resultType&16&&(a.N&=-129,a.ae&a.resultType&-2147450752&&(a.N|=128),a.resultType&=-17);return a.N&128}function bf(a){a.resultType&32&&(a.N&=-2049,(a.$d^a.Zd)&(a.De^a.Zd)&a.resultType&-2147450752&&(a.N|=2048),a.resultType&=-33);return a.N&2048}function ef(a){a.resultType&=-2;a.N&=-2}function kf(a){a.resultType&=-5;a.N&=-17}function lf(a){a.resultType&=-9;a.N&=-65}function gf(a){a.resultType&=-33;a.N&=-2049}function df(a){a.resultType&=-2;a.N|=1}
|
||||
function mf(a){a.resultType&=-5;a.N|=16}function nf(a){a.resultType&=-9;a.N|=64}function ff(a){a.resultType&=-33;a.N|=2048}function Ad(a){return a.N&-2262|Xe(a)|Ye(a)|Ze(a)|$e(a)|af(a)|bf(a)}function of(a,b){b|=a.ra&1|65520;a.ra=a.ra&-65536|b&65535;a.ra&1&&td(a,!0)}function Bd(a,b,c){a.ra&1||(b&=~a.Oh);void 0===c&&(c=a.La);c?b=b&-12289|a.N&12288:a.Yb=(b&12288)>>12;c>a.Yb&&(b=b&-513|a.N&512);a.resultType=128;a.N=a.N&~(a.pd|2261)|b&(a.pd|2261)|a.Ph;a.N&256&&(a.Qa|=2,a.K|=4)}
|
||||
function pf(a,b,c){var d=0;if(a.ra&1&&(a.La>a.Yb||a.N&131072)&&a.ka.Th){var e=a.ka.Th+(b>>>3);for(d=(1<<c)-1<<(b&7);d&&e<=a.ka.bk&&!(a.Ia(e)&d);)d>>>=8,e++}return d?(y.call(a,13,0),!1):!0}
|
||||
l.Ab=function(a,b,c){switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.ja[b]=c;this.ii++;a=!0;break;default:a=Jc.prototype.Ab.call(this,a,b,c)}return a};
|
||||
function qf(a,b,c,d){var e=(d?a.Nc:a.X)[(b&a.Dc)>>>a.Eb];e&&e.type==xc&&(e=Gc(a,b,!1,!0));if(e){var f=b&a.Db;if(!c||1==c)return e.Cd(f,b);if(2==c)return f<a.Db?e.$e(f,b):e.Cd(f,b)|qf(a,b+1,1,d)<<8;if(4==c)return f<a.Db-2?e.hh(f,b):f==a.Db-1?e.$e(f,b)|qf(a,b+2,2,d)<<16:e.Cd(f,b)|qf(a,b+1,1,d)<<8|qf(a,b+2,1,d)<<16|qf(a,b+3,1,d)<<24}return null}l.Ia=function(a){return this.X[(a&this.Dc)>>>this.Eb].nc(a&this.Db,a)};
|
||||
l.ga=function(a){var b=a&this.Db,c=(a&this.Dc)>>>this.Eb;this.A-=this.B.Nf;if(b<this.Db)return this.X[c].Ze(b,a);b=this.X[c].nc(b,a);this.K&4096||(b|=this.X[c+1&this.ze].nc(0,a+1)<<8);return b};l.ea=function(a){var b=a&this.Db,c=(a&this.Dc)>>>this.Eb;if(b<this.Db-2)return this.X[c].Rd(b,a);for(var d=0,e=4,f=0,g=4-(b&3);e--;){d|=this.X[c].nc(b++,a++)<<f;if(this.K&4096)break;--g||(c=c+1&this.ze,b=0);f+=8}return d};l.Bb=function(a,b){this.X[(a&this.Dc)>>>this.Eb].pc(a&this.Db,b&255,a)};
|
||||
l.Za=function(a,b){var c=a&this.Db,d=(a&this.Dc)>>>this.Eb;this.A-=this.B.Nf;c<this.Db?this.X[d].ff(c,b&65535,a):(this.X[d++].pc(c,b&255,a),this.K&4096||this.X[d&this.ze].pc(0,b>>8&255,a+1))};l.Ta=function(a,b){var c=a&this.Db,d=(a&this.Dc)>>>this.Eb;this.A-=this.B.Nf;if(c<this.Db-2)this.X[d].ef(c,b,a);else for(var e=4,f=4-(c&3);e--;){this.X[d].pc(c++,b&255,a++);if(this.K&4096)break;--f||(d=d+1&this.ze,c=0);b>>>=8}};function rf(a,b,c){a.Da=b;a.fb=c&a.ta;a.C=b.sb(a.fb,1);return a.K&1?0:a.Ia(a.C)}
|
||||
function I(a,b){return rf(a,a.Ca,b)}function J(a,b){return rf(a,a.Gb,b)}function sf(a,b,c){a.Da=b;a.fb=c&a.ta;a.C=b.sb(a.fb,a.T);if(a.K&9){if(a.K&1)return 0;a=a.Ia(a.C)|a.Ia(b.sb(0,1))<<8}else a=a.mb(a.C);return a}function L(a,b){a.Da=a.Ca;a.fb=b&a.ta;a.C=a.Da.sb(a.fb,2);if(a.K&9){if(a.K&1)return 0;b=a.Ia(a.C)|a.Ia(a.Da.sb(0,1))<<8;a.K&=-9}else b=a.ga(a.C);return b}
|
||||
function M(a,b){a.Da=a.Gb;a.fb=b&a.ta;a.C=a.Da.sb(a.fb,2);if(a.K&9){if(a.K&1)return 0;b=a.Ia(a.C)|a.Ia(a.Da.sb(0,1))<<8;a.K&=-9}else b=a.ga(a.C);return b}function N(a,b){a.Da=a.Ca;a.fb=b&a.ta;a.C=a.Da.sb(a.fb,4);return a.K&1?0:a.ea(a.C)}function P(a,b){a.Da=a.Gb;a.fb=b&a.ta;a.C=a.Da.sb(a.fb,4);return a.K&1?0:a.ea(a.C)}function tf(a,b){a.K&2||a.Bb(a.Da.Kb(a.fb,1),b)}function uf(a,b){if(!(a.K&2)){var c=a.Da.Kb(a.fb,2);a.K&8?(a.Bb(c,b),a.Bb(a.Da.Kb(0,1),b>>8),a.K&=-9):a.Za(c,b)}}
|
||||
function vf(a,b){a.K&2||a.Ta(a.Da.Kb(a.fb,4),b)}function vd(a,b,c){c=b.sb(c,a.T);a.K&8?(b=a.Ia(c)|a.Ia(b.sb(0,1))<<8,a.K&=-9):b=a.mb(c);return b}function wf(a,b,c,d){c=b.Kb(c,a.T);a.K&8?(a.Bb(c,d),a.Bb(b.Kb(0,1),d>>8),a.K&=-9):a.Lb(c,d)}l.la=function(){var a=Ue(this,1),b=this.Ia(this.da);this.da=a;return b};function xf(a){var b=Ue(a,2);if(a.K&8){var c=a.Ia(a.da)|a.Ia(b-1)<<8;a.K&=-9}else c=a.ga(a.da);a.da=b;return c}
|
||||
function Q(a){var b=Ue(a,a.Jc);if(a.K&8){var c=a.Ia(a.da)|a.Ia(b-1)<<8;a.K&=-9}else c=a.ni(a.da);a.da=b;return c}l.ya=function(){var a=Ue(this,this.T);if(this.K&8){var b=this.Ia(this.da)|this.Ia(a-1)<<8;this.K&=-9}else b=this.mb(this.da);this.da=a;return b};l.P=function(){var a=Ue(this,1),b=this.Ia(this.da)<<24>>24;this.da=a;return b};
|
||||
function A(a){var b=a.mb(a.Aa);a.Aa=a.Aa+a.T|0;var c=(a.si>>>0)-(a.Aa>>>0);0>c&&(8088>=a.ca?(B(a,a.Aa-a.W.va&a.W.ta),-1>c&&(b=b&255|a.Ia(a.Aa-1)<<8)):-1>c?y.call(a,12,0):(!a.W.ke&&a.W.jb==a.W.ta||a.W.ke&&!a.W.jb)&&B(a,a.Aa-a.W.va&a.W.ta));return b}function D(a,b){wd(a,b,a.T)}
|
||||
function wd(a,b,c,d){d=void 0===d?c:d;var e=a.Aa-c|0,f=(e>>>0)-(a.wi>>>0);if(0>f){if(8088>=a.ca&&-1==f){a.Bb(e+1,b>>8);B(a,e-a.W.va&a.W.ta);a.Bb(a.Aa,b);return}if(!a.W.ke&&a.W.jb==a.W.ta||a.W.ke&&!a.W.jb){if(f>-c){y.call(a,12,0);return}B(a,e-a.W.va&a.W.ta);e=a.Aa}else{y.call(a,12,0);return}}switch(d){case 1:a.Bb(e,b);break;case 2:a.Za(e,b);break;case 4:a.Ta(e,b)}a.Aa=e}
|
||||
function yf(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.ca)2<b.length&&(b=b.substr(1,2));else if("PS"==b||2<b.length)d=8;a.ja[b]&&(void 0===c&&(ub(a,"Value for "+b+" is invalid"),Rc(a)),d=!a.Y.cb||a.Y.ci?ra(c,d):"--------".substr(0,d),a.ja[b].textContent!=d&&(a.ja[b].textContent=d))}
|
||||
l.Oj=function(a){this.Y.complete=!0;this.Y.gk=!1;this.Y.Nj=!1;this.Wc=this.A=a;this.U&&!a&&bd(this.U);a||(this.K|=4);do{if(a=this.K&3312)this.ba|=a;else if(this.Uc=this.da,this.Ca=this.Ga,this.Gb=this.W,this.C=this.D=-1,this.ba&3072&&Le(this),this.ba=this.K&256,this.Qa){a:if(!(this.K&4)){a=80286>this.ca?0:1;for(var b=0;2>b;b++){switch(a){case 0:if(this.Qa&1&&this.N&512){var c=zf(this.U);if(-1<=c&&(this.Qa&=-2,0<=c)){this.Qa&=-5;Af.call(this,c);break a}}break;case 1:if(this.Qa&2){this.Qa&=-3;80386<=
|
||||
this.ca&&(this.Cb[6]|=16384);Af.call(this,1);break a}}a=1-a}}if(this.Qa&4){this.K=this.A=0;break}}this.K=0;this.qa[this.la()].call(this)}while(0<this.A);return this.Y.complete?this.Wc-this.A:void 0===this.Y.complete?0:-1};var me=512;Sa(function(){for(var a=jb(document,"pcx86","cpu"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Dd(d);ib(d,c)}});
|
||||
function Bf(a){u.call(this,"FPU",a);this.ca=a.model||8087;this.H=new Float64Array(8);this.aa=new Int32Array(this.H.buffer);this.X=new Float32Array(1);this.ia=new Int32Array(this.X.buffer);this.K=new Float64Array(1);this.G=new Int32Array(this.K.buffer);this.D=Array(3);this.L=this.M=-1;this.I=this.J=this.N=this.A=0;this.W=new Float64Array(1);this.ba=new Int32Array(this.W.buffer);this.ba[0]=0;this.ba[1]=268402688;Cf(this);this.fa=Bf.prototype.lh;this.da=Bf.prototype.Mj}ja(Bf,u);l=Bf.prototype;
|
||||
l.jc=function(a,b,c){this.R=c;this.U=Ab(a,"ChipSet");v(this)};l.Rb=function(a,b){if(!b)if(!a||!this.restore)Cf(this);else if(!this.restore(a))return!1;return!0};l.Qb=function(a){return a?this.save():!0};l.save=function(){var a=new Qe(this),b=[],c=0;b[c++]=this.F;b[c++]=this.Z|this.B<<11;b[c++]=Df(this);for(var d=0;d<this.H.length;d++)b[c++]=this.H[d];a.set(0,b);return a.data()};
|
||||
l.restore=function(a){a=a[0];var b=0;this.F=a[b++]&-57409;var c=a[b++];this.Z=c&-14337;this.B=(c&14336)>>11;Ef(this);Ff(this,a[b++]);for(c=0;c<this.H.length;c++)this.H[c]=a[b++];return!0};function Cf(a){a.C=0;a.F=959;a.Z=0;a.B=0;a.U&&(a=a.U,a.ca>=Gf&&Hf(a,If))}function Ef(a){a.Z&=-129;a.Z&~a.F&63&&(a.Z|=128);if(a.Z&128&&!(a.F&128))return a=a.U,a.ca>=Gf?Jf(a,If):a.da&Kf||Af.call(a.R,2),!0;a=a.U;a.ca>=Gf&&Hf(a,If);return!1}function Lf(a,b){80387<=a.ca||(b&=-65);a.Z|=b;return Ef(a)}
|
||||
function Mf(a,b){return isFinite(b)?!0:!Lf(a,Infinity===b?8:16)}function Nf(a,b,c){var d=null;null!=b&&null!=c&&(d=b+c,Mf(a,d)||(d=null));return d}function Of(a,b,c){var d=null;null!=b&&null!=c&&(d=b-c,Mf(a,d)||(d=null));return d}function Pf(a,b,c){var d=null;null!=b&&null!=c&&(d=b*c,Mf(a,d)||(d=null));return d}function Qf(a,b,c){var d=null;null==b||null==c||!c&&Lf(a,2)||(d=b/c,Mf(a,d)||(d=null));return d}
|
||||
function Rf(a,b,c){if(null!=b&&null!=c){var d=0;isNaN(b)||isNaN(c)?d=17664:(b-=c,0>b?d=256:0===b&&(d=16384));a.Z=a.Z&-18177|d;return!0}return!1}function Sf(a,b,c){if(null==b)return null;var d=a.F&3072;0==d?(d=Math.round(b),.5===d-b&&d%2&&d--):d=1024==d||3072==d&&0<b?Math.floor(b):Math.ceil(b);if(c){if(d>=c){if(Lf(a,1))return null;d=-c}else if(d<-c){if(Lf(a,1))return null;d=-c}a.G[0]=d|0;2147483648<c&&(a.G[1]=d/4294967296|0,!a.G[1]&&0>d&&(a.G[1]=-1))}return d}
|
||||
function Tf(a,b){var c=3;a.C&1<<b&&(a=a.H[b],c=0,0===a?c=1:isFinite(a)||(c=2));return c}function Df(a){for(var b=0,c=a.H.length-1;0<=c;c--)b<<=2,b|=Tf(a,c);return b}function Ff(a,b){a.C=0;for(var c=1;128>=c;c<<=1)3!=(b&3)&&(a.C|=c),b>>=2}function Xf(a){var b=a.B+0&7;return a.C&1<<b?(a.X[0]=a.H[b],!0):Lf(a,1)?!1:(a.X[0]=a.W[0],!0)}function Yf(a){var b=a.B+0&7;return a.C&1<<b?(a.K[0]=a.H[b],!0):Lf(a,1)?!1:(a.K[0]=a.W[0],!0)}
|
||||
function R(a,b){var c=null;b=a.B+b&7;a.C&1<<b?c=a.H[b]:Lf(a,1)||(c=a.W[0]);return c}function S(a,b,c){return null!=c&&(isNaN(c)?!Lf(a,1):1)?(b=a.B+b&7,a.H[b]=c,a.C|=1<<b,!0):!1}function Zf(a,b,c){var d=null;b=a.B+b&7;if(c||a.C&1<<b||!Lf(a,1)){d=b<<1;c=a.aa[d];d=a.aa[d+1];b=d>>20&2047;var e=2147483648|(d&1048575)<<11|c>>>21;2047==b?b=32767:b?b+=15360:e&=2147483647;a.D[0]=c<<11;a.D[1]=e;a.D[2]=d>>16&32768|b;d=a.D}return d}function $f(a){return a.R.ga(a.R.C)<<16>>16}
|
||||
function ag(a){return a.R.ea(a.R.C)}function bg(a){a.ia[0]=a.R.ea(a.R.C);return a.X[0]}function cg(a){a.G[0]=a.R.ea(a.R.C);a.G[1]=a.R.ea(a.R.C+4);return a.K[0]}function dg(a){a.D[0]=a.R.ea(a.R.C);a.D[1]=a.R.ea(a.R.C+4);a.D[2]=a.R.ga(a.R.C+8);return a.D}l.lh=function(){this.R.Ta(this.R.C,this.G[0])};l.Mj=function(){this.R.Ta(this.R.C,this.G[0]);this.R.Ta(this.R.C+4,this.G[1])};function eg(a){a.R.Ta(a.R.C,a.D[0]);a.R.Ta(a.R.C+4,a.D[1]);a.R.Za(a.R.C+8,a.D[2])}
|
||||
function fg(a,b){var c=b[1],d=(b[2]&32768)>>4,e=b[2]&32767;b=b[0]>>>11|c<<21;c=c>>11&1048575;32767==e?e=2047:e&&(e+=-15360,0>=e&&(e=2047,b=c=0));a.G[0]=b;a.G[1]=c|(d|e)<<20;return a.K[0]}function gg(a,b){for(var c=0,d=1;b--;)c+=(a&15)*d,d*=10,a>>=4;return c}function hg(a,b){for(var c=0,d=0;b--;)c|=a%10<<d,a/=10,d+=4;return c}function ig(a){var b=null,c=1<<a.B;if(!(a.C&c)&&(a.Z&=-513,Lf(a,65)))return b;a.C&=~c;b=a.H[a.B];a.B=a.B+1&7;return b}
|
||||
function jg(a,b){if(null!=b){var c=a.B-1&7,d=1<<c;if(a.C&d&&(a.Z|=512,Lf(a,65)))return;if(isNaN(b)&&Lf(a,1)){if(Lf(a,1))return;b=NaN}a.H[a.B=c]=b;a.C|=d}}
|
||||
function kg(a,b){var c=a.R;var d=c.mb(b);a.F=d&-57409;d=c.mb(b+=c.T);a.Z=d&-14337;a.B=(d&14336)>>11;Ef(a);Ff(a,c.mb(b+=c.T));!(c.ra&1)||c.N&131072?(a.I=c.mb(b+=c.T),d=c.mb(b+=c.T),a.N=d&2047,a.I|=(d&-4096)<<4,a.L=-1,a.J=c.mb(b+=c.T),a.J|=(c.mb(b+=c.T)&-4096)<<4,a.M=-1):(a.I=c.mb(b+=c.T),d=c.mb(b+=c.T),a.L=d&65535,a.N=d>>16&2047,a.J=c.mb(b+=c.T),a.M=c.mb(b+=c.T)&65535);return b+c.T}
|
||||
function lg(a,b){var c=a.R;c.Lb(b,a.F);c.Lb(b+=c.T,a.Z|a.B<<11);c.Lb(b+=c.T,Df(a));if(!(c.ra&1)||c.N&131072){var d=(a.L<<4)+a.I;c.Lb(b+=c.T,d);c.Lb(b+=c.T,d>>4&-4096|a.N);d=(a.M<<4)+a.J;c.Lb(b+=c.T,d);c.Lb(b+=c.T,d>>4&-4096)}else c.Lb(b+=c.T,a.I),c.Lb(b+=c.T,a.L|a.N<<16),c.Lb(b+=c.T,a.J),c.Lb(b+=c.T,a.M);return b+c.T}function mg(){this.Z&=-32896;Ef(this)}function ng(){Rf(this,R(this,0),R(this,this.A))}function og(){Rf(this,R(this,0),R(this,this.A))&&ig(this)}function pg(){og.call(this)}
|
||||
function qg(){S(this,0,Qf(this,R(this,0),bg(this)))}function rg(){this.C&=~(1<<this.B)}function sg(){Cf(this)}function tg(){this.F=this.R.ga(this.R.C)&-57409}function ug(){kg(this,this.R.C)}function vg(){for(var a=this.R,b=kg(this,a.C),c=this.D,d=0;d<this.H.length;d++)c[0]=a.ea(b),c[1]=a.ea(b+=4),c[2]=a.ga(b+=4),c&&S(this,d,fg(this,c)),b+=2}function wg(){for(var a=this.R,b=lg(this,a.C),c=0;c<this.H.length;c++){var d=Zf(this,c,!0);a.Ta(b,d[0]);a.Ta(b+=4,d[1]);a.Za(b+=4,d[2]);b+=2}Cf(this)}
|
||||
function xg(){lg(this,this.R.C);this.F|=63}function yg(){S(this,this.A,R(this,0))&&ig(this)}function zg(){yg.call(this)}function Ag(){this.R.Za(this.R.C,this.F)}function Bg(){this.R.Za(this.R.C,this.Z|this.B<<11)}function Cg(){80287<=this.ca&&(this.R.F=this.R.F&-65536|this.Z|this.B<<11)}function Dg(){var a=R(this,0);S(this,0,R(this,this.A));S(this,this.A,a)}function Eg(){Dg.call(this)}
|
||||
var Fg=Math.log(10)/Math.LN2,Gg=Math.LOG2E,Hg=Math.PI,Ig=Math.log(2)/Math.LN10,Jg=Math.LN2,Kg=Math.pow(2,63),Lg={216:{0:function(){S(this,0,Nf(this,R(this,0),bg(this)))},1:function(){S(this,0,Pf(this,R(this,0),bg(this)))},2:function(){Rf(this,R(this,0),bg(this))},3:function(){Rf(this,R(this,0),bg(this))&&ig(this)},4:function(){S(this,0,Of(this,R(this,0),bg(this)))},5:function(){S(this,0,Of(this,bg(this),R(this,0)))},6:qg,7:qg,48:function(){S(this,0,Nf(this,R(this,0),R(this,this.A)))},49:function(){S(this,
|
||||
0,Pf(this,R(this,0),R(this,this.A)))},50:ng,51:og,52:function(){S(this,0,Of(this,R(this,0),R(this,this.A)))},53:function(){S(this,0,Of(this,R(this,this.A),R(this,0)))},54:function(){S(this,0,Qf(this,R(this,0),R(this,this.A)))},55:function(){S(this,0,Qf(this,R(this,this.A),R(this,0)))}},217:{0:function(){jg(this,bg(this))},2:function(){Xf(this)&&this.fa()},3:function(){Xf(this)&&(this.fa(),ig(this))},4:ug,5:tg,6:xg,7:Ag,48:function(){jg(this,R(this,this.A))},49:Dg,50:function(){},51:zg,64:function(){S(this,
|
||||
0,-R(this,0))},65:function(){S(this,0,Math.abs(R(this,0)))},68:function(){Rf(this,R(this,0),0)},69:function(){this.Z&=-18177;this.aa[((this.B+0&7)<<1)+1]&-2147483648&&(this.Z|=512);if(3==Tf(this,this.B))this.Z|=16640;else{var a=R(this,0);this.Z=isNaN(a)?this.Z|256:0===a?this.Z|16384:Infinity===a||-Infinity===a?this.Z|1280:this.Z|1024}},80:function(){jg(this,1)},81:function(){jg(this,Fg)},82:function(){jg(this,Gg)},83:function(){jg(this,Hg)},84:function(){jg(this,Ig)},85:function(){jg(this,Jg)},86:function(){jg(this,
|
||||
0)},96:function(){S(this,0,Math.pow(2,R(this,0))-1)},97:function(){S(this,1,R(this,1)*Math.log(R(this,0))/Math.LN2)&&ig(this)},98:function(){S(this,0,Math.tan(R(this,0)))&&jg(this,1)},99:function(){S(this,1,Math.atan2(R(this,1),R(this,0)))&&ig(this)},100:function(){var a=R(this,0);null!=a&&(this.K[0]=a,S(this,0,(this.G[1]>>20&2047)-1023),this.G[1]=(this.G[1]|1072693248)&-1073741825,jg(this,this.K[0]))},102:function(){this.B=this.B-1&7;this.Z&=-513},103:function(){this.B=this.B+1&7;this.Z&=-513},112:function(){S(this,
|
||||
0,R(this,0)%R(this,1))},113:function(){S(this,1,R(this,1)*Math.log(R(this,0)+1)/Math.LN2)&&ig(this)},114:function(){var a=R(this,0),b=null;if(0<=a||!Lf(this,1))b=Math.sqrt(a),Mf(this,b)||(b=null);S(this,0,b)},116:function(){S(this,0,Sf(this,R(this,0),Kg))},117:function(){var a=R(this,0),b=R(this,1);null!=a&&null!=b&&S(this,0,a*Math.pow(2,0<b?Math.floor(b):Math.ceil(b)))}},218:{0:function(){S(this,0,Nf(this,R(this,0),ag(this)))},1:function(){S(this,0,Pf(this,R(this,0),ag(this)))},2:function(){Rf(this,
|
||||
R(this,0),ag(this))},3:function(){Rf(this,R(this,0),ag(this))&&ig(this)},4:function(){S(this,0,Of(this,R(this,0),ag(this)))},5:function(){S(this,0,Of(this,ag(this),R(this,0)))},6:function(){S(this,0,Qf(this,R(this,0),ag(this)))},7:function(){S(this,0,Qf(this,ag(this),R(this,0)))}},219:{0:function(){jg(this,ag(this))},2:function(){null!=Sf(this,R(this,0),2147483648)&&this.lh()},3:function(){null!=Sf(this,R(this,0),2147483648)&&(this.lh(),ig(this))},5:function(){jg(this,fg(this,dg(this)))},7:function(){Zf(this,
|
||||
0)&&(eg(this),ig(this))},64:function(){8087==this.ca&&(this.F&=-129)},65:function(){8087==this.ca&&(this.F|=128)},66:mg,67:sg,68:function(){},115:function(){}},220:{0:function(){S(this,0,Nf(this,R(this,0),cg(this)))},1:function(){S(this,0,Pf(this,R(this,0),cg(this)))},2:function(){Rf(this,R(this,0),cg(this))},3:function(){Rf(this,R(this,0),cg(this))&&ig(this)},4:function(){S(this,0,Of(this,R(this,0),cg(this)))},5:function(){S(this,0,Of(this,cg(this),R(this,0)))},6:function(){S(this,0,Qf(this,R(this,
|
||||
0),cg(this)))},7:function(){S(this,0,Qf(this,cg(this),R(this,0)))},48:function(){S(this,this.A,Nf(this,R(this,this.A),R(this,0)))},49:function(){S(this,this.A,Pf(this,R(this,this.A),R(this,0)))},50:function(){ng.call(this)},51:pg,52:function(){S(this,this.A,Of(this,R(this,0),R(this,this.A)))},53:function(){S(this,this.A,Of(this,R(this,this.A),R(this,0)))},54:function(){S(this,this.A,Qf(this,R(this,0),R(this,this.A)))},55:function(){S(this,this.A,Qf(this,R(this,this.A),R(this,0)))}},221:{0:function(){jg(this,
|
||||
cg(this))},2:function(){Yf(this)&&this.da()},3:function(){Yf(this)&&(this.da(),ig(this))},4:vg,6:wg,7:Bg,48:rg,49:Eg,50:function(){S(this,this.A,R(this,0))},51:yg},222:{0:function(){S(this,0,Nf(this,R(this,0),$f(this)))},1:function(){S(this,0,Pf(this,R(this,0),$f(this)))},2:function(){Rf(this,R(this,0),$f(this))},3:function(){Rf(this,R(this,0),$f(this))&&ig(this)},4:function(){S(this,0,Of(this,R(this,0),$f(this)))},5:function(){S(this,0,Of(this,$f(this),R(this,0)))},6:function(){S(this,0,Qf(this,
|
||||
R(this,0),$f(this)))},7:function(){S(this,0,Qf(this,$f(this),R(this,0)))},48:function(){S(this,this.A,Nf(this,R(this,this.A),R(this,0)))&&ig(this)},49:function(){S(this,this.A,Pf(this,R(this,this.A),R(this,0)))&&ig(this)},50:pg,51:function(){Rf(this,R(this,0),R(this,1))&&null!=ig(this)&&ig(this)},52:function(){S(this,this.A,Of(this,R(this,0),R(this,this.A)))&&ig(this)},53:function(){S(this,this.A,Of(this,R(this,this.A),R(this,0)))&&ig(this)},54:function(){S(this,this.A,Qf(this,R(this,0),R(this,this.A)))&&
|
||||
ig(this)},55:function(){S(this,this.A,Qf(this,R(this,this.A),R(this,0)))&&ig(this)}},223:{0:function(){jg(this,$f(this))},2:function(){null!=Sf(this,R(this,0),32768)&&this.R.Za(this.R.C,this.G[0])},3:function(){null!=Sf(this,R(this,0),32768)&&(this.R.Za(this.R.C,this.G[0]),ig(this))},4:function(){var a=dg(this),b=gg(a[0],8)+1E8*gg(a[1],8)+1E16*gg(a[2],2);a[2]&32768&&(b=-b);jg(this,b)},5:function(){var a=this.R.ea(this.R.C);a=4294967296*this.R.ea(this.R.C+4)+(a>>>0);jg(this,a)},6:function(){var a=
|
||||
Sf(this,ig(this));null!=a&&(this.D[0]=hg(a,8),this.D[1]=hg(a/1E8,8),this.D[2]=hg(a/1E16,2),0>a&&(this.D[2]|=32768),eg(this))},7:function(){null!=Sf(this,R(this,0),Kg)&&(this.Mj(),ig(this))},48:function(){rg.call(this);ig(this)},49:Eg,50:zg,51:zg,52:Cg}},Mg=[mg,sg,tg,ug,vg,wg,Ag,xg,Bg,Cg];Sa(function(){for(var a=jb(document,"pcx86","fpu"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Bf(d);ib(d,c)}});
|
||||
function Ng(a,b){var c=a+b+jf(this)|0;We(this,a,b,c,191);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&255}function Og(a,b){var c=a+b+jf(this)|0;We(this,a,b,c,this.wb|63);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&this.O}function Pg(a,b){var c=a+b|0;We(this,a,b,c,191);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&255}
|
||||
function Qg(a,b){var c=a+b|0;We(this,a,b,c,this.wb|63);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&this.O}function Rg(a,b){a&=b;cf(this,a,128);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return a}function Sg(a,b){this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return cf(this,a&b,this.wb)&this.O}function Tg(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,nf(this),a;lf(this);return a}
|
||||
function Ug(a){if(-1===this.C)return y.call(this,6),a;var b=a,c=this.mb(this.C),d=this.mb(this.C+this.T);2==this.T&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Ai;(b<c||b>d)&&y.call(this,5);this.K|=2;return a}function Vg(a,b){var c=0;if(b){lf(this);for(var d=1;d&this.O;){if(b&d){a=c;break}d<<=1;c++}}else nf(this);this.A-=11+3*c;return a}function Wg(a,b){var c=0;if(b){lf(this);for(var d=2==this.T?15:31,e=1<<d;e;){if(b&e){a=d;break}e>>>=1;c++;d--}}else nf(this);this.A-=11+3*c;return a}
|
||||
function Xg(a,b){a&1<<(b&(2==this.T?15:31))?df(this):ef(this);this.A-=-1===this.C?3:6;this.K|=2;return a}function Yg(a,b){b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=-1===this.C?6:8;return a^b}function Zg(a,b){b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=-1===this.C?6:8;return a&~b}function $g(a,b){b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=-1===this.C?6:8;return a|b}
|
||||
function ah(a,b){if(-1===this.C)return Xg.call(this,a,b);var c=this.T<<3;if(b>=c||b<-c)a=sf(this,this.Da,this.fb+(b>>(2==this.T?4:5))*this.T);b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=6;this.K|=2;return a}function bh(a,b){if(-1===this.C)return Yg.call(this,a,b);var c=this.T<<3;if(b>=c||b<-c)a=sf(this,this.Da,this.fb+(b>>(2==this.T?4:5))*this.T);b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=8;return a^b}
|
||||
function ch(a,b){if(-1===this.C)return Zg.call(this,a,b);var c=this.T<<3;if(b>=c||b<-c)a=sf(this,this.Da,this.fb+(b>>(2==this.T?4:5))*this.T);b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=8;return a&~b}function dh(a,b){if(-1===this.C)return $g.call(this,a,b);var c=this.T<<3;if(b>=c||b<-c)a=sf(this,this.Da,this.fb+(b>>(2==this.T?4:5))*this.T);b=1<<(b&(2==this.T?15:31));a&b?df(this):ef(this);this.A-=8;return a|b}
|
||||
function eh(a,b){We(this,a,b,a-b|0,191,!0);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zg:this.B.zb;this.K|=2;return a}function fh(a,b){We(this,a,b,a-b|0,this.wb|63,!0);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zg:this.B.zb;this.K|=2;return a}
|
||||
function gh(a){if(this.rd){var b=this.rd,c=this.hi,d=this.aa,e=d>>3&7;b.A=d&7;var f=(3>(d>>6&3)?0:48)+e;(217==c||219==c)&&52<=f&&(f=e<<4|b.A);if(e=Lg[c][f]){if(0>Mg.indexOf(e)){f=b.R;var g=f.Uc;8087==b.ca&&(f.ba&16&&g++,f.ba&32&&g++);b.L=f.fa.ha;b.I=g-f.fa.va;-1!==f.C&&(b.M=f.Da.ha,b.J=f.C-f.Da.va);b.N=(c&7)<<8|d}e.call(b)}}this.A-=-1===this.C?2:8;return a}function hh(a){if(80186>this.ca)return T.call(this,a);y.call(this,13,0);return a}function Zd(a){y.call(this,6);return a}
|
||||
function T(a){be.call(this);return a}function ih(a,b){a=jh.call(this,this.P(),b);80386>this.ca&&(this.A-=12);return a}function kh(a,b){a=this.ya();a=2==this.T?jh.call(this,a,b):lh.call(this,a,b);80386>this.ca&&(this.A-=12);return a}function mh(a,b){var c=!1;0>b&&(b=-b|0,c=!c);0>a&&(a=-a|0,c=!c);nh.call(this,a,b);c&&(this.Ba=~this.Ba+1|0,this.Sa=~this.Sa+(this.Ba?0:1)|0)}
|
||||
function jh(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767<a||-32768>a?(df(this),ff(this)):(ef(this),gf(this));this.A-=-1===this.C?9:12;return a&65535}function lh(a,b){mh.call(this,a,b);this.Sa!=this.Ba>>31?(df(this),ff(this)):(ef(this),gf(this));this.A-=-1===this.C?9:12;return this.Ba}function oh(a,b){this.A-=14+(-1===this.C?0:2);lf(this);-1!==this.gb.load(b)&&this.gb.ic>=this.La&&this.gb.ic>=(b&3)&&(nf(this),a=this.gb.nb&-256,2<this.T&&(a|=(this.gb.ext&-65281)<<16));return a}
|
||||
function ph(a,b){if(-1===this.C)return be.call(this),a;xd(this,this.ga(this.C+this.T));this.A-=this.B.te;return b}function qh(){this.A-=this.B.cj;return this.C}function rh(a,b){if(-1===this.C)return be.call(this),a;yd(this,this.ga(this.C+this.T));this.A-=this.B.te;return b}function sh(a,b){if(-1===this.C)return be.call(this),a;a=this.ga(this.C+this.T);this.rb.load(a);this.A-=this.B.te;return b}
|
||||
function th(a,b){if(-1===this.C)return be.call(this),a;a=this.ga(this.C+this.T);this.vb.load(a);this.A-=this.B.te;return b}function uh(a,b){this.A-=14+(-1===this.C?0:2);if(b&65528&&-1!==this.gb.load(b)&&(7168==(this.gb.nb&7168)||this.gb.ic>=this.La)&&this.gb.ic>=(b&3))return nf(this),this.gb.jb;lf(this);return a}function vh(a,b){if(-1===this.C)return be.call(this),a;rd(this,this.ga(this.C+this.T));this.A-=this.B.te;return b}
|
||||
function wh(a,b){this.A-=-1===this.D?-1===this.C?this.B.jj:this.B.ij:this.B.gj;return b}function xh(a,b){switch(this.aa>>3&7){case 4:this.ua=this.F;break;case 5:this.ua=this.H;break;case 6:this.ua=this.L;break;case 7:this.ua=this.G}return b}function yh(a,b){return b}
|
||||
function zh(a,b){a=this.aa>>3&7;switch(a){case 0:this.ua=this.F;break;case 2:this.ua=this.L;break;case 3:this.ua=this.G;break;default:if(80286==this.ca||80386==this.ca&&4!=a&&5!=a)y.call(this,6);else switch(a){case 1:this.ua=this.H;break;case 4:this.ua=C(this);break;case 5:this.ua=this.M;break;case 6:this.ua=this.J;break;case 7:this.ua=this.I}}return wh.call(this,0,b)}
|
||||
function Ah(a,b){switch(this.aa>>3&7){case 0:b=this.xa.ha;break;case 1:b=this.fa.ha;break;case 2:b=this.W.ha;break;case 3:b=this.Ga.ha;break;case 4:if(80386<=this.ca){b=this.rb.ha;break}y.call(this,6);b=a;break;case 5:if(80386<=this.ca){b=this.vb.ha;break}default:y.call(this,6),b=a}-1!==this.D&&ud(this,2);return wh.call(this,0,b)}
|
||||
function nh(a,b){if(a&-65536||b&-65536){var c=b&65535;b>>>=16;var d=a&65535;a>>>=16;var e=c*d;d=(e>>>16)+b*d;var f=d>>>16;d=(d&65535)+c*a;this.Ba=d<<16|e&65535;this.Sa=f+((d>>>16)+b*a)|0}else this.Ba=a*b|0,this.Sa=0}function Bh(a,b){this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return cf(this,a|b,128)}function Ch(a,b){this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return cf(this,a|b,this.wb)&this.O}
|
||||
function Dh(a,b){var c=a-b-jf(this)|0;We(this,a,b,c,191,!0);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&255}function Eh(a,b){var c=a-b-jf(this)|0;We(this,a,b,c,this.wb|63,!0);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&this.O}function Fh(){return bf(this)?1:0}function Gh(){return Xe(this)?1:0}function Hh(){return Xe(this)?0:1}function Ih(){return $e(this)?1:0}function Jh(){return $e(this)?0:1}function Kh(){return Xe(this)||$e(this)?1:0}
|
||||
function Lh(){return Xe(this)||$e(this)?0:1}function Mh(){return af(this)?1:0}function Nh(){return af(this)?0:1}function Oh(){return Ye(this)?1:0}function Ph(){return Ye(this)?0:1}function Qh(){return!af(this)!=!bf(this)?1:0}function Rh(){return!af(this)!=!bf(this)?0:1}function Sh(){return $e(this)||!af(this)!=!bf(this)?1:0}function Th(){return $e(this)||!af(this)!=!bf(this)?0:1}function Uh(a,b){return Vh.call(this,a,b,this.la())}function Wh(a,b){return Xh.call(this,a,b,this.la())}
|
||||
function Yh(a,b){return Vh.call(this,a,b,this.H&31)}function Zh(a,b){return Xh.call(this,a,b,this.H&31)}function $h(a,b){return di.call(this,a,b,this.la())}function ei(a,b){return fi.call(this,a,b,this.la())}function gi(a,b){return di.call(this,a,b,this.H&31)}function hi(a,b){return fi.call(this,a,b,this.H&31)}function ii(a,b){var c=a-b|0;We(this,a,b,c,191,!0);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&255}
|
||||
function ji(a,b){var c=a-b|0;We(this,a,b,c,this.wb|63,!0);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return c&this.O}function ki(a,b){cf(this,a&b,128);this.A-=-1===this.D?-1===this.C?this.B.ah:this.B.Ue:this.B.Ue;this.K|=2;return a}function li(a,b){cf(this,a&b,this.wb);this.A-=-1===this.D?-1===this.C?this.B.ah:this.B.Ue:this.B.Ue;this.K|=2;return a}function mi(a,b){var c=this.F&this.O,d=(1<<(this.H&31))-1;return a&~(d<<c)|(b&d)<<c}
|
||||
function ni(a,b){return b>>(this.F&this.O)&(1<<(this.H&31))-1&this.O}function oi(a,b){if(-1===this.C){switch(this.aa&7){case 0:this.F=this.F&-256|a;break;case 1:this.H=this.H&-256|a;break;case 2:this.L=this.L&-256|a;break;case 3:this.G=this.G&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.H=this.H&-65281|a<<8;break;case 6:this.L=this.L&-65281|a<<8;break;case 7:this.G=this.G&-65281|a<<8}this.A-=this.B.dh}else this.D=this.C,tf(this,a),this.A-=this.B.bh;return b}
|
||||
function pi(a,b){if(-1===this.C){switch(this.aa&7){case 0:this.F=this.F&~this.O|a;break;case 1:this.H=this.H&~this.O|a;break;case 2:this.L=this.L&~this.O|a;break;case 3:this.G=this.G&~this.O|a;break;case 4:B(this,C(this)&~this.O|a);break;case 5:this.M=this.G&~this.O|a;break;case 6:this.J=this.J&~this.O|a;break;case 7:this.I=this.I&~this.O|a}this.A-=this.B.dh}else{this.D=this.C;if(!(this.K&2)){var c=this.Da.Kb(this.fb,this.T);this.K&8?(this.Bb(c,a),this.Bb(this.Da.Kb(0,1),a>>8),this.K&=-9):this.Lb(c,
|
||||
a)}this.A-=this.B.bh}return b}function qi(a,b){a^=b;cf(this,a,128);this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return a}function ri(a,b){this.A-=-1===this.D?-1===this.C?this.B.Zb:this.B.zb:this.B.mc;return cf(this,a^b,this.wb)&this.O}function si(a,b){var c=a[1]-b[1];c||(c=a[0]-b[0]);return c}function ti(a){var b=a-1|0;We(this,a,1,b,this.wb|62,!0);this.A-=2;return a&~this.O|b&this.O}
|
||||
function ui(a,b,c){c>>>=0;if(!c||c<=b>>>0)return!1;var d=0,e=1,f=this.Ql;f[0]=c>>>0;f[1]=0;c=this.Tl;c[0]=a>>>0;for(c[1]=b>>>0;0<si(c,f);)b=a=f,a[0]+=b[0],a[1]+=b[1],4294967295<a[0]&&(a[0]>>>=0,a[1]++),e+=e;do 0<=si(c,f)&&(a=c,b=f,a[0]-=b[0],a[1]-=b[1],0>a[0]&&(a[0]>>>=0,a[1]--),d+=e),a=f,a[0]>>>=1,a[1]&1&&(a[0]=(a[0]|2147483648)>>>0),a[1]>>>=1,e/=2;while(1<=e);this.Ba=d;this.Sa=c[0];return!0}function vi(a){var b=a+1|0;We(this,a,1,b,this.wb|62);this.A-=2;return a&~this.O|b&this.O}
|
||||
function wi(a){this.K|=1;this.ec.call(this,a);this.A-=-1===this.C?4:5}function Vh(a,b,c){if(c){16<c&&(a=b,c-=16);var d=a<<c-1;a=(d<<1|b>>>16-c)&65535;cf(this,a,32768,d&32768)}return a}function Xh(a,b,c){if(c){var d=a<<c-1;a=d<<1|b>>>32-c;cf(this,a,-2147483648,d&-2147483648)}return a}function di(a,b,c){if(c){16<c&&(a=b,c-=16);var d=a>>>c-1;a=(d>>>1|b<<16-c)&65535;cf(this,a,32768,d&1)}return a}function fi(a,b,c){if(c){var d=a>>>c-1;a=d>>>1|b<<32-c;cf(this,a,-2147483648,d&1)}return a}
|
||||
function xi(){this.A-=-1===this.C?2:this.B.wj;return 1}function yi(){var a=this.H&255;this.A-=(-1===this.C?this.B.Ug:this.B.Tg)+(a<<this.B.Vg);return a}function zi(){var a=this.la();this.A-=(-1===this.C?this.B.Ug:this.B.Tg)+(a<<this.B.Vg);return a}function Ai(){return null}function Bi(){return this.ua}function Ci(a,b){this.Tc=this.fa.ha;this.uc=this.W.ha;this.ma=this.Aa;var c=F(this),d=this.T;null!=Cd(this,a,b,!0)&&(wd(this,this.Tc,d,2),wd(this,c,d,d));this.Tc=this.uc=this.ma=-1}
|
||||
function Di(a,b,c){this.A-=this.B.Vi+(c||0);c=Ad(this);var d=this.fa.ha,e=F(this);a=this.fa.ti(a);-1!==a&&(D(this,c),D(this,d),D(this,e),null!=b&&D(this,b),this.sc=-1,Te(this,a))}function Ei(a){this.uc=this.W.ha;this.ma=this.Aa;var b=A(this),c=A(this);a&&B(this,C(this)+a);Cd(this,b,c,!1)&&(a&&B(this,C(this)+a),Fi.call(this,this.Ga),Fi.call(this,this.xa),80386<=this.ca&&(Fi.call(this,this.rb),Fi.call(this,this.vb)));2==a&&this.$f&&Ne(this,this.da);this.uc=this.ma=-1}
|
||||
function Gi(){8086==this.ca?(this.sc=-1,Di.call(this,0,null,2)):y.call(this,0,null,2)}function Af(a,b){this.sc=a;void 0===b&&(b=11);Di.call(this,a,null,b)}
|
||||
function y(a,b,c,d){var e=!1;this.Y.complete?80186<=this.ca&&(e=!0,0>this.sc?(-1!=this.Tc&&(this.Tc!==this.fa.ha&&(this.fa.tb=this.Tc&3,Se(this,this.Tc)),this.Tc=-1),this.Uc!==this.da&&Te(this,this.Uc),-1!=this.uc&&(this.uc!==this.W.ha&&rd(this,this.uc),this.uc=-1),-1!==this.ma&&(this.ma!==this.Aa&&B(this,this.kc&~this.W.ta|this.ma-this.W.va),this.ma=-1)):8!=this.sc?(b=0,a=8):(b=0,a=-1,ke(this),e=d=!1)):Te(this,this.Uc);var f=a,g=b,h=qf(this,this.da);204!=h||this.Qc||(d=!1);this.N&131072&&(6==f&&
|
||||
99==h||13==f&&205==h)&&(d=!1);983040<=this.da&&1048575>=this.da&&(d=!1);if(d){var k=this.Y.cb;f="Fault "+ra(f,2,!0)+(null!=g?" ("+ra(g,4,!0)+")":"")+" on opcode "+ra(h,2,!0);d&&k&&(f+=" (blocked)");this.wa(f);Rc(this)}if(d&&e)throw-1;if(e)throw this.sc=a,Di.call(this,a,b,c),this.Uc=this.da,this.K=1==a?this.K|8192:this.K|4096,a;}function ne(a,b,c){this.td=a;a=0;b&&(a|=1);c&&(a|=2);3==this.La&&(a|=4);y.call(this,14,a)}
|
||||
function Fi(a){var b=a.nb&7680;a.ha&65528&&(6144==b||7168==b||7168>b&&a.ic<this.La&&a.ic<(a.ha&3))&&a.load(0)}
|
||||
function se(a){switch((this.aa=this.la())&199){case 0:var b=I(this,this.G+this.J);this.A-=this.B.Bc;break;case 1:b=I(this,this.G+this.I);this.A-=this.B.Cc;break;case 2:b=J(this,this.M+this.J);this.A-=this.B.Cc;break;case 3:b=J(this,this.M+this.I);this.A-=this.B.Bc;break;case 4:b=I(this,this.J);this.A-=this.B.gc;break;case 5:b=I(this,this.I);this.A-=this.B.gc;break;case 6:b=I(this,Q(this));this.A-=this.B.ad;break;case 7:b=I(this,this.G);this.A-=this.B.gc;break;case 64:b=I(this,this.G+this.J+this.P());
|
||||
this.A-=this.B.Mb;break;case 65:b=I(this,this.G+this.I+this.P());this.A-=this.B.Nb;break;case 66:b=J(this,this.M+this.J+this.P());this.A-=this.B.Nb;break;case 67:b=J(this,this.M+this.I+this.P());this.A-=this.B.Mb;break;case 68:b=I(this,this.J+this.P());this.A-=this.B.Pa;break;case 69:b=I(this,this.I+this.P());this.A-=this.B.Pa;break;case 70:b=J(this,this.M+this.P());this.A-=this.B.Pa;break;case 71:b=I(this,this.G+this.P());this.A-=this.B.Pa;break;case 128:b=I(this,this.G+this.J+Q(this));this.A-=this.B.Mb;
|
||||
break;case 129:b=I(this,this.G+this.I+Q(this));this.A-=this.B.Nb;break;case 130:b=J(this,this.M+this.J+Q(this));this.A-=this.B.Nb;break;case 131:b=J(this,this.M+this.I+Q(this));this.A-=this.B.Mb;break;case 132:b=I(this,this.J+Q(this));this.A-=this.B.Pa;break;case 133:b=I(this,this.I+Q(this));this.A-=this.B.Pa;break;case 134:b=J(this,this.M+Q(this));this.A-=this.B.Pa;break;case 135:b=I(this,this.G+Q(this));this.A-=this.B.Pa;break;case 192:b=this.F&255;break;case 193:b=this.H&255;break;case 194:b=this.L&
|
||||
255;break;case 195:b=this.G&255;break;case 196:b=this.F>>8&255;break;case 197:b=this.H>>8&255;break;case 198:b=this.L>>8&255;break;case 199:b=this.G>>8&255;break;default:b=0}var c=this.aa>>3&7;switch(c){case 0:var d=this.F&255;break;case 1:d=this.H&255;break;case 2:d=this.L&255;break;case 3:d=this.G&255;break;case 4:d=this.F>>8&255;break;case 5:d=this.H>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.G>>8&255;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.F=this.F&-256|a;break;
|
||||
case 1:this.H=this.H&-256|a;break;case 2:this.L=this.L&-256|a;break;case 3:this.G=this.G&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.H=this.H&-65281|a<<8;break;case 6:this.L=this.L&-65281|a<<8;break;case 7:this.G=this.G&-65281|a<<8}}
|
||||
function te(a){var b=(this.aa=this.la())&199;switch(b){case 0:var c=I(this,this.G+this.J);this.D=this.C;break;case 1:c=I(this,this.G+this.I);this.D=this.C;break;case 2:c=J(this,this.M+this.J);this.D=this.C;break;case 3:c=J(this,this.M+this.I);this.D=this.C;break;case 4:c=I(this,this.J);this.D=this.C;break;case 5:c=I(this,this.I);this.D=this.C;break;case 6:c=I(this,Q(this));this.D=this.C;break;case 7:c=I(this,this.G);this.D=this.C;break;case 64:c=I(this,this.G+this.J+this.P());this.D=this.C;break;
|
||||
case 65:c=I(this,this.G+this.I+this.P());this.D=this.C;break;case 66:c=J(this,this.M+this.J+this.P());this.D=this.C;break;case 67:c=J(this,this.M+this.I+this.P());this.D=this.C;break;case 68:c=I(this,this.J+this.P());this.D=this.C;break;case 69:c=I(this,this.I+this.P());this.D=this.C;break;case 70:c=J(this,this.M+this.P());this.D=this.C;break;case 71:c=I(this,this.G+this.P());this.D=this.C;break;case 128:c=I(this,this.G+this.J+Q(this));this.D=this.C;break;case 129:c=I(this,this.G+this.I+Q(this));
|
||||
this.D=this.C;break;case 130:c=J(this,this.M+this.J+Q(this));this.D=this.C;break;case 131:c=J(this,this.M+this.I+Q(this));this.D=this.C;break;case 132:c=I(this,this.J+Q(this));this.D=this.C;break;case 133:c=I(this,this.I+Q(this));this.D=this.C;break;case 134:c=J(this,this.M+Q(this));this.D=this.C;break;case 135:c=I(this,this.G+Q(this));this.D=this.C;break;case 192:c=this.F&255;break;case 193:c=this.H&255;break;case 194:c=this.L&255;break;case 195:c=this.G&255;break;case 196:c=this.F>>8&255;break;
|
||||
case 197:c=this.H>>8&255;break;case 198:c=this.L>>8&255;break;case 199:c=this.G>>8&255;break;default:c=0}switch(this.aa>>3&7){case 0:var d=this.F&255;break;case 1:d=this.H&255;break;case 2:d=this.L&255;break;case 3:d=this.G&255;break;case 4:d=this.F>>8&255;break;case 5:d=this.H>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.G>>8&255;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:tf(this,a);this.A-=this.B.Bc;break;case 1:case 2:tf(this,a);this.A-=this.B.Cc;break;case 4:case 5:case 7:tf(this,
|
||||
a);this.A-=this.B.gc;break;case 6:tf(this,a);this.A-=this.B.ad;break;case 64:case 67:case 128:case 131:tf(this,a);this.A-=this.B.Mb;break;case 65:case 66:case 129:case 130:tf(this,a);this.A-=this.B.Nb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:tf(this,a);this.A-=this.B.Pa;break;case 192:this.F=this.F&-256|a;break;case 193:this.H=this.H&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.G=this.G&-256|a;break;case 196:this.F=this.F&-65281|a<<8;break;case 197:this.H=
|
||||
this.H&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.G=this.G&-65281|a<<8}}
|
||||
function ue(a,b){var c=(this.aa=this.la())&199;switch(c){case 0:var d=I(this,this.G+this.J);this.D=this.C;break;case 1:d=I(this,this.G+this.I);this.D=this.C;break;case 2:d=J(this,this.M+this.J);this.D=this.C;break;case 3:d=J(this,this.M+this.I);this.D=this.C;break;case 4:d=I(this,this.J);this.D=this.C;break;case 5:d=I(this,this.I);this.D=this.C;break;case 6:d=I(this,Q(this));this.D=this.C;break;case 7:d=I(this,this.G);this.D=this.C;break;case 64:d=I(this,this.G+this.J+this.P());this.D=this.C;break;
|
||||
case 65:d=I(this,this.G+this.I+this.P());this.D=this.C;break;case 66:d=J(this,this.M+this.J+this.P());this.D=this.C;break;case 67:d=J(this,this.M+this.I+this.P());this.D=this.C;break;case 68:d=I(this,this.J+this.P());this.D=this.C;break;case 69:d=I(this,this.I+this.P());this.D=this.C;break;case 70:d=J(this,this.M+this.P());this.D=this.C;break;case 71:d=I(this,this.G+this.P());this.D=this.C;break;case 128:d=I(this,this.G+this.J+Q(this));this.D=this.C;break;case 129:d=I(this,this.G+this.I+Q(this));
|
||||
this.D=this.C;break;case 130:d=J(this,this.M+this.J+Q(this));this.D=this.C;break;case 131:d=J(this,this.M+this.I+Q(this));this.D=this.C;break;case 132:d=I(this,this.J+Q(this));this.D=this.C;break;case 133:d=I(this,this.I+Q(this));this.D=this.C;break;case 134:d=J(this,this.M+Q(this));this.D=this.C;break;case 135:d=I(this,this.G+Q(this));this.D=this.C;break;case 192:d=this.F&255;break;case 193:d=this.H&255;break;case 194:d=this.L&255;break;case 195:d=this.G&255;break;case 196:d=this.F>>8&255;break;
|
||||
case 197:d=this.H>>8&255;break;case 198:d=this.L>>8&255;break;case 199:d=this.G>>8&255;break;default:d=0}a=a[this.aa>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:tf(this,a);this.A-=this.B.Bc;break;case 1:case 2:tf(this,a);this.A-=this.B.Cc;break;case 4:case 5:case 7:tf(this,a);this.A-=this.B.gc;break;case 6:tf(this,a);this.A-=this.B.ad;break;case 64:case 67:case 128:case 131:tf(this,a);this.A-=this.B.Mb;break;case 65:case 66:case 129:case 130:tf(this,a);this.A-=this.B.Nb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:tf(this,
|
||||
a);this.A-=this.B.Pa;break;case 192:this.F=this.F&-256|a;break;case 193:this.H=this.H&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.G=this.G&-256|a;break;case 196:this.F=this.F&-65281|a<<8;break;case 197:this.H=this.H&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.G=this.G&-65281|a<<8}}
|
||||
function ve(a){switch((this.aa=this.la())&199){case 0:var b=L(this,this.G+this.J);this.A-=this.B.Bc;break;case 1:b=L(this,this.G+this.I);this.A-=this.B.Cc;break;case 2:b=M(this,this.M+this.J);this.A-=this.B.Cc;break;case 3:b=M(this,this.M+this.I);this.A-=this.B.Bc;break;case 4:b=L(this,this.J);this.A-=this.B.gc;break;case 5:b=L(this,this.I);this.A-=this.B.gc;break;case 6:b=L(this,Q(this));this.A-=this.B.ad;break;case 7:b=L(this,this.G);this.A-=this.B.gc;break;case 64:b=L(this,this.G+this.J+this.P());
|
||||
this.A-=this.B.Mb;break;case 65:b=L(this,this.G+this.I+this.P());this.A-=this.B.Nb;break;case 66:b=M(this,this.M+this.J+this.P());this.A-=this.B.Nb;break;case 67:b=M(this,this.M+this.I+this.P());this.A-=this.B.Mb;break;case 68:b=L(this,this.J+this.P());this.A-=this.B.Pa;break;case 69:b=L(this,this.I+this.P());this.A-=this.B.Pa;break;case 70:b=M(this,this.M+this.P());this.A-=this.B.Pa;break;case 71:b=L(this,this.G+this.P());this.A-=this.B.Pa;break;case 128:b=L(this,this.G+this.J+Q(this));this.A-=this.B.Mb;
|
||||
break;case 129:b=L(this,this.G+this.I+Q(this));this.A-=this.B.Nb;break;case 130:b=M(this,this.M+this.J+Q(this));this.A-=this.B.Nb;break;case 131:b=M(this,this.M+this.I+Q(this));this.A-=this.B.Mb;break;case 132:b=L(this,this.J+Q(this));this.A-=this.B.Pa;break;case 133:b=L(this,this.I+Q(this));this.A-=this.B.Pa;break;case 134:b=M(this,this.M+Q(this));this.A-=this.B.Pa;break;case 135:b=L(this,this.G+Q(this));this.A-=this.B.Pa;break;case 192:b=this.F&65535;break;case 193:b=this.H&65535;break;case 194:b=
|
||||
this.L&65535;break;case 195:b=this.G&65535;break;case 196:b=C(this)&65535;break;case 197:b=this.M&65535;break;case 198:b=this.J&65535;break;case 199:b=this.I&65535;break;default:b=0}var c=this.aa>>3&7;switch(c){case 0:var d=this.F&65535;break;case 1:d=this.H&65535;break;case 2:d=this.L&65535;break;case 3:d=this.G&65535;break;case 4:d=C(this)&65535;break;case 5:d=this.M&65535;break;case 6:d=this.J&65535;break;case 7:d=this.I&65535;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.F=this.F&
|
||||
-65536|a;break;case 1:this.H=this.H&-65536|a;break;case 2:this.L=this.L&-65536|a;break;case 3:this.G=this.G&-65536|a;break;case 4:B(this,C(this)&-65536|a);break;case 5:this.M=this.M&-65536|a;break;case 6:this.J=this.J&-65536|a;break;case 7:this.I=this.I&-65536|a}}
|
||||
function we(a){var b=(this.aa=this.la())&199;switch(b){case 0:var c=L(this,this.G+this.J);this.D=this.C;break;case 1:c=L(this,this.G+this.I);this.D=this.C;break;case 2:c=M(this,this.M+this.J);this.D=this.C;break;case 3:c=M(this,this.M+this.I);this.D=this.C;break;case 4:c=L(this,this.J);this.D=this.C;break;case 5:c=L(this,this.I);this.D=this.C;break;case 6:c=L(this,Q(this));this.D=this.C;break;case 7:c=L(this,this.G);this.D=this.C;break;case 64:c=L(this,this.G+this.J+this.P());this.D=this.C;break;
|
||||
case 65:c=L(this,this.G+this.I+this.P());this.D=this.C;break;case 66:c=M(this,this.M+this.J+this.P());this.D=this.C;break;case 67:c=M(this,this.M+this.I+this.P());this.D=this.C;break;case 68:c=L(this,this.J+this.P());this.D=this.C;break;case 69:c=L(this,this.I+this.P());this.D=this.C;break;case 70:c=M(this,this.M+this.P());this.D=this.C;break;case 71:c=L(this,this.G+this.P());this.D=this.C;break;case 128:c=L(this,this.G+this.J+Q(this));this.D=this.C;break;case 129:c=L(this,this.G+this.I+Q(this));
|
||||
this.D=this.C;break;case 130:c=M(this,this.M+this.J+Q(this));this.D=this.C;break;case 131:c=M(this,this.M+this.I+Q(this));this.D=this.C;break;case 132:c=L(this,this.J+Q(this));this.D=this.C;break;case 133:c=L(this,this.I+Q(this));this.D=this.C;break;case 134:c=M(this,this.M+Q(this));this.D=this.C;break;case 135:c=L(this,this.G+Q(this));this.D=this.C;break;case 192:c=this.F&65535;break;case 193:c=this.H&65535;break;case 194:c=this.L&65535;break;case 195:c=this.G&65535;break;case 196:c=C(this)&65535;
|
||||
break;case 197:c=this.M&65535;break;case 198:c=this.J&65535;break;case 199:c=this.I&65535;break;default:c=0}switch(this.aa>>3&7){case 0:var d=this.F&65535;break;case 1:d=this.H&65535;break;case 2:d=this.L&65535;break;case 3:d=this.G&65535;break;case 4:d=C(this)&65535;break;case 5:d=this.M&65535;break;case 6:d=this.J&65535;break;case 7:d=this.I&65535;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:uf(this,a);this.A-=this.B.Bc;break;case 1:case 2:uf(this,a);this.A-=this.B.Cc;break;case 4:case 5:case 7:uf(this,
|
||||
a);this.A-=this.B.gc;break;case 6:uf(this,a);this.A-=this.B.ad;break;case 64:case 67:case 128:case 131:uf(this,a);this.A-=this.B.Mb;break;case 65:case 66:case 129:case 130:uf(this,a);this.A-=this.B.Nb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:uf(this,a);this.A-=this.B.Pa;break;case 192:this.F=this.F&-65536|a;break;case 193:this.H=this.H&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.G=this.G&-65536|a;break;case 196:B(this,C(this)&-65536|a);break;
|
||||
case 197:this.M=this.M&-65536|a;break;case 198:this.J=this.J&-65536|a;break;case 199:this.I=this.I&-65536|a}}
|
||||
function xe(a,b){var c=(this.aa=this.la())&199;switch(c){case 0:var d=L(this,this.G+this.J);this.D=this.C;break;case 1:d=L(this,this.G+this.I);this.D=this.C;break;case 2:d=M(this,this.M+this.J);this.D=this.C;break;case 3:d=M(this,this.M+this.I);this.D=this.C;break;case 4:d=L(this,this.J);this.D=this.C;break;case 5:d=L(this,this.I);this.D=this.C;break;case 6:d=L(this,Q(this));this.D=this.C;break;case 7:d=L(this,this.G);this.D=this.C;break;case 64:d=L(this,this.G+this.J+this.P());this.D=this.C;break;
|
||||
case 65:d=L(this,this.G+this.I+this.P());this.D=this.C;break;case 66:d=M(this,this.M+this.J+this.P());this.D=this.C;break;case 67:d=M(this,this.M+this.I+this.P());this.D=this.C;break;case 68:d=L(this,this.J+this.P());this.D=this.C;break;case 69:d=L(this,this.I+this.P());this.D=this.C;break;case 70:d=M(this,this.M+this.P());this.D=this.C;break;case 71:d=L(this,this.G+this.P());this.D=this.C;break;case 128:d=L(this,this.G+this.J+Q(this));this.D=this.C;break;case 129:d=L(this,this.G+this.I+Q(this));
|
||||
this.D=this.C;break;case 130:d=M(this,this.M+this.J+Q(this));this.D=this.C;break;case 131:d=M(this,this.M+this.I+Q(this));this.D=this.C;break;case 132:d=L(this,this.J+Q(this));this.D=this.C;break;case 133:d=L(this,this.I+Q(this));this.D=this.C;break;case 134:d=M(this,this.M+Q(this));this.D=this.C;break;case 135:d=L(this,this.G+Q(this));this.D=this.C;break;case 192:d=this.F&65535;break;case 193:d=this.H&65535;break;case 194:d=this.L&65535;break;case 195:d=this.G&65535;break;case 196:d=C(this)&65535;
|
||||
break;case 197:d=this.M&65535;break;case 198:d=this.J&65535;break;case 199:d=this.I&65535;break;default:d=0}a=a[this.aa>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:uf(this,a);this.A-=this.B.Bc;break;case 1:case 2:uf(this,a);this.A-=this.B.Cc;break;case 4:case 5:case 7:uf(this,a);this.A-=this.B.gc;break;case 6:uf(this,a);this.A-=this.B.ad;break;case 64:case 67:case 128:case 131:uf(this,a);this.A-=this.B.Mb;break;case 65:case 66:case 129:case 130:uf(this,a);this.A-=this.B.Nb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:uf(this,
|
||||
a);this.A-=this.B.Pa;break;case 192:this.F=this.F&-65536|a;break;case 193:this.H=this.H&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.G=this.G&-65536|a;break;case 196:B(this,C(this)&-65536|a);break;case 197:this.M=this.M&-65536|a;break;case 198:this.J=this.J&-65536|a;break;case 199:this.I=this.I&-65536|a}}
|
||||
function ye(a){switch((this.aa=this.la())&199){case 0:var b=N(this,this.G+this.J);this.A-=this.B.Bc;break;case 1:b=N(this,this.G+this.I);this.A-=this.B.Cc;break;case 2:b=P(this,this.M+this.J);this.A-=this.B.Cc;break;case 3:b=P(this,this.M+this.I);this.A-=this.B.Bc;break;case 4:b=N(this,this.J);this.A-=this.B.gc;break;case 5:b=N(this,this.I);this.A-=this.B.gc;break;case 6:b=N(this,Q(this));this.A-=this.B.ad;break;case 7:b=N(this,this.G);this.A-=this.B.gc;break;case 64:b=N(this,this.G+this.J+this.P());
|
||||
this.A-=this.B.Mb;break;case 65:b=N(this,this.G+this.I+this.P());this.A-=this.B.Nb;break;case 66:b=P(this,this.M+this.J+this.P());this.A-=this.B.Nb;break;case 67:b=P(this,this.M+this.I+this.P());this.A-=this.B.Mb;break;case 68:b=N(this,this.J+this.P());this.A-=this.B.Pa;break;case 69:b=N(this,this.I+this.P());this.A-=this.B.Pa;break;case 70:b=P(this,this.M+this.P());this.A-=this.B.Pa;break;case 71:b=N(this,this.G+this.P());this.A-=this.B.Pa;break;case 128:b=N(this,this.G+this.J+Q(this));this.A-=this.B.Mb;
|
||||
break;case 129:b=N(this,this.G+this.I+Q(this));this.A-=this.B.Nb;break;case 130:b=P(this,this.M+this.J+Q(this));this.A-=this.B.Nb;break;case 131:b=P(this,this.M+this.I+Q(this));this.A-=this.B.Mb;break;case 132:b=N(this,this.J+Q(this));this.A-=this.B.Pa;break;case 133:b=N(this,this.I+Q(this));this.A-=this.B.Pa;break;case 134:b=P(this,this.M+Q(this));this.A-=this.B.Pa;break;case 135:b=N(this,this.G+Q(this));this.A-=this.B.Pa;break;case 192:b=this.F;break;case 193:b=this.H;break;case 194:b=this.L;break;
|
||||
case 195:b=this.G;break;case 196:b=C(this);break;case 197:b=this.M;break;case 198:b=this.J;break;case 199:b=this.I;break;default:b=0}var c=this.aa>>3&7;switch(c){case 0:var d=this.F;break;case 1:d=this.H;break;case 2:d=this.L;break;case 3:d=this.G;break;case 4:d=C(this);break;case 5:d=this.M;break;case 6:d=this.J;break;case 7:d=this.I;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.F=a;break;case 1:this.H=a;break;case 2:this.L=a;break;case 3:this.G=a;break;case 4:B(this,a);break;case 5:this.M=
|
||||
a;break;case 6:this.J=a;break;case 7:this.I=a}}
|
||||
function ze(a){var b=(this.aa=this.la())&199;switch(b){case 0:var c=N(this,this.G+this.J);this.D=this.C;break;case 1:c=N(this,this.G+this.I);this.D=this.C;break;case 2:c=P(this,this.M+this.J);this.D=this.C;break;case 3:c=P(this,this.M+this.I);this.D=this.C;break;case 4:c=N(this,this.J);this.D=this.C;break;case 5:c=N(this,this.I);this.D=this.C;break;case 6:c=N(this,Q(this));this.D=this.C;break;case 7:c=N(this,this.G);this.D=this.C;break;case 64:c=N(this,this.G+this.J+this.P());this.D=this.C;break;
|
||||
case 65:c=N(this,this.G+this.I+this.P());this.D=this.C;break;case 66:c=P(this,this.M+this.J+this.P());this.D=this.C;break;case 67:c=P(this,this.M+this.I+this.P());this.D=this.C;break;case 68:c=N(this,this.J+this.P());this.D=this.C;break;case 69:c=N(this,this.I+this.P());this.D=this.C;break;case 70:c=P(this,this.M+this.P());this.D=this.C;break;case 71:c=N(this,this.G+this.P());this.D=this.C;break;case 128:c=N(this,this.G+this.J+Q(this));this.D=this.C;break;case 129:c=N(this,this.G+this.I+Q(this));
|
||||
this.D=this.C;break;case 130:c=P(this,this.M+this.J+Q(this));this.D=this.C;break;case 131:c=P(this,this.M+this.I+Q(this));this.D=this.C;break;case 132:c=N(this,this.J+Q(this));this.D=this.C;break;case 133:c=N(this,this.I+Q(this));this.D=this.C;break;case 134:c=P(this,this.M+Q(this));this.D=this.C;break;case 135:c=N(this,this.G+Q(this));this.D=this.C;break;case 192:c=this.F;break;case 193:c=this.H;break;case 194:c=this.L;break;case 195:c=this.G;break;case 196:c=C(this);break;case 197:c=this.M;break;
|
||||
case 198:c=this.J;break;case 199:c=this.I;break;default:c=0}switch(this.aa>>3&7){case 0:var d=this.F;break;case 1:d=this.H;break;case 2:d=this.L;break;case 3:d=this.G;break;case 4:d=C(this);break;case 5:d=this.M;break;case 6:d=this.J;break;case 7:d=this.I;break;default:d=0}a=a.call(this,c,d);switch(b){case 0:case 3:vf(this,a);this.A-=this.B.Bc;break;case 1:case 2:vf(this,a);this.A-=this.B.Cc;break;case 4:case 5:case 7:vf(this,a);this.A-=this.B.gc;break;case 6:vf(this,a);this.A-=this.B.ad;break;case 64:case 67:case 128:case 131:vf(this,
|
||||
a);this.A-=this.B.Mb;break;case 65:case 66:case 129:case 130:vf(this,a);this.A-=this.B.Nb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:vf(this,a);this.A-=this.B.Pa;break;case 192:this.F=a;break;case 193:this.H=a;break;case 194:this.L=a;break;case 195:this.G=a;break;case 196:B(this,a);break;case 197:this.M=a;break;case 198:this.J=a;break;case 199:this.I=a}}
|
||||
function Ae(a,b){var c=(this.aa=this.la())&199;switch(c){case 0:var d=N(this,this.G+this.J);this.D=this.C;break;case 1:d=N(this,this.G+this.I);this.D=this.C;break;case 2:d=P(this,this.M+this.J);this.D=this.C;break;case 3:d=P(this,this.M+this.I);this.D=this.C;break;case 4:d=N(this,this.J);this.D=this.C;break;case 5:d=N(this,this.I);this.D=this.C;break;case 6:d=N(this,Q(this));this.D=this.C;break;case 7:d=N(this,this.G);this.D=this.C;break;case 64:d=N(this,this.G+this.J+this.P());this.D=this.C;break;
|
||||
case 65:d=N(this,this.G+this.I+this.P());this.D=this.C;break;case 66:d=P(this,this.M+this.J+this.P());this.D=this.C;break;case 67:d=P(this,this.M+this.I+this.P());this.D=this.C;break;case 68:d=N(this,this.J+this.P());this.D=this.C;break;case 69:d=N(this,this.I+this.P());this.D=this.C;break;case 70:d=P(this,this.M+this.P());this.D=this.C;break;case 71:d=N(this,this.G+this.P());this.D=this.C;break;case 128:d=N(this,this.G+this.J+Q(this));this.D=this.C;break;case 129:d=N(this,this.G+this.I+Q(this));
|
||||
this.D=this.C;break;case 130:d=P(this,this.M+this.J+Q(this));this.D=this.C;break;case 131:d=P(this,this.M+this.I+Q(this));this.D=this.C;break;case 132:d=N(this,this.J+Q(this));this.D=this.C;break;case 133:d=N(this,this.I+Q(this));this.D=this.C;break;case 134:d=P(this,this.M+Q(this));this.D=this.C;break;case 135:d=N(this,this.G+Q(this));this.D=this.C;break;case 192:d=this.F;break;case 193:d=this.H;break;case 194:d=this.L;break;case 195:d=this.G;break;case 196:d=C(this);break;case 197:d=this.M;break;
|
||||
case 198:d=this.J;break;case 199:d=this.I}a=a[this.aa>>3&7].call(this,d,b.call(this));switch(c){case 0:case 3:vf(this,a);this.A-=this.B.Bc;break;case 1:case 2:vf(this,a);this.A-=this.B.Cc;break;case 4:case 5:case 7:vf(this,a);this.A-=this.B.gc;break;case 6:vf(this,a);this.A-=this.B.ad;break;case 64:case 67:case 128:case 131:vf(this,a);this.A-=this.B.Mb;break;case 65:case 66:case 129:case 130:vf(this,a);this.A-=this.B.Nb;break;case 68:case 69:case 70:case 71:case 132:case 133:case 134:case 135:vf(this,
|
||||
a);this.A-=this.B.Pa;break;case 192:this.F=a;break;case 193:this.H=a;break;case 194:this.L=a;break;case 195:this.G=a;break;case 196:B(this,a);break;case 197:this.M=a;break;case 198:this.J=a;break;case 199:this.I=a}}
|
||||
function Be(a){switch((this.aa=this.la())&199){case 0:var b=I(this,this.F);break;case 1:b=I(this,this.H);break;case 2:b=I(this,this.L);break;case 3:b=I(this,this.G);break;case 4:b=I(this,Hi.call(this,0));break;case 5:b=I(this,Q(this));break;case 6:b=I(this,this.J);break;case 7:b=I(this,this.I);break;case 64:b=I(this,this.F+this.P());break;case 65:b=I(this,this.H+this.P());break;case 66:b=I(this,this.L+this.P());break;case 67:b=I(this,this.G+this.P());break;case 68:b=I(this,Hi.call(this,1)+this.P());
|
||||
break;case 69:b=J(this,this.M+this.P());break;case 70:b=I(this,this.J+this.P());break;case 71:b=I(this,this.I+this.P());break;case 128:b=I(this,this.F+Q(this));break;case 129:b=I(this,this.H+Q(this));break;case 130:b=I(this,this.L+Q(this));break;case 131:b=I(this,this.G+Q(this));break;case 132:b=I(this,Hi.call(this,2)+Q(this));break;case 133:b=J(this,this.M+Q(this));break;case 134:b=I(this,this.J+Q(this));break;case 135:b=I(this,this.I+Q(this));break;case 192:b=this.F&255;break;case 193:b=this.H&
|
||||
255;break;case 194:b=this.L&255;break;case 195:b=this.G&255;break;case 196:b=this.F>>8&255;break;case 197:b=this.H>>8&255;break;case 198:b=this.L>>8&255;break;case 199:b=this.G>>8&255;break;default:b=0}var c=this.aa>>3&7;switch(c){case 0:var d=this.F&255;break;case 1:d=this.H&255;break;case 2:d=this.L&255;break;case 3:d=this.G&255;break;case 4:d=this.F>>8&255;break;case 5:d=this.H>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.G>>8&255;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.F=
|
||||
this.F&-256|a;break;case 1:this.H=this.H&-256|a;break;case 2:this.L=this.L&-256|a;break;case 3:this.G=this.G&-256|a;break;case 4:this.F=this.F&-65281|a<<8;break;case 5:this.H=this.H&-65281|a<<8;break;case 6:this.L=this.L&-65281|a<<8;break;case 7:this.G=this.G&-65281|a<<8}}
|
||||
function Ce(a){var b=(this.aa=this.la())&199;switch(b){case 0:var c=I(this,this.F);this.D=this.C;break;case 1:c=I(this,this.H);this.D=this.C;break;case 2:c=I(this,this.L);this.D=this.C;break;case 3:c=I(this,this.G);this.D=this.C;break;case 4:c=I(this,Hi.call(this,0));this.D=this.C;break;case 5:c=I(this,Q(this));this.D=this.C;break;case 6:c=I(this,this.J);this.D=this.C;break;case 7:c=I(this,this.I);this.D=this.C;break;case 64:c=I(this,this.F+this.P());this.D=this.C;break;case 65:c=I(this,this.H+this.P());
|
||||
this.D=this.C;break;case 66:c=I(this,this.L+this.P());this.D=this.C;break;case 67:c=I(this,this.G+this.P());this.D=this.C;break;case 68:c=I(this,Hi.call(this,1)+this.P());this.D=this.C;break;case 69:c=J(this,this.M+this.P());this.D=this.C;break;case 70:c=I(this,this.J+this.P());this.D=this.C;break;case 71:c=I(this,this.I+this.P());this.D=this.C;break;case 128:c=I(this,this.F+Q(this));this.D=this.C;break;case 129:c=I(this,this.H+Q(this));this.D=this.C;break;case 130:c=I(this,this.L+Q(this));this.D=
|
||||
this.C;break;case 131:c=I(this,this.G+Q(this));this.D=this.C;break;case 132:c=I(this,Hi.call(this,2)+Q(this));this.D=this.C;break;case 133:c=J(this,this.M+Q(this));this.D=this.C;break;case 134:c=I(this,this.J+Q(this));this.D=this.C;break;case 135:c=I(this,this.I+Q(this));this.D=this.C;break;case 192:c=this.F&255;break;case 193:c=this.H&255;break;case 194:c=this.L&255;break;case 195:c=this.G&255;break;case 196:c=this.F>>8&255;break;case 197:c=this.H>>8&255;break;case 198:c=this.L>>8&255;break;case 199:c=
|
||||
this.G>>8&255;break;default:c=0}switch(this.aa>>3&7){case 0:var d=this.F&255;break;case 1:d=this.H&255;break;case 2:d=this.L&255;break;case 3:d=this.G&255;break;case 4:d=this.F>>8&255;break;case 5:d=this.H>>8&255;break;case 6:d=this.L>>8&255;break;case 7:d=this.G>>8&255;break;default:d=0}a=a.call(this,c,d);switch(b){case 192:this.F=this.F&-256|a;break;case 193:this.H=this.H&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.G=this.G&-256|a;break;case 196:this.F=this.F&-65281|a<<8;break;
|
||||
case 197:this.H=this.H&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.G=this.G&-65281|a<<8;break;default:tf(this,a)}}
|
||||
function De(a,b){var c=(this.aa=this.la())&199;switch(c){case 0:var d=I(this,this.F);this.D=this.C;break;case 1:d=I(this,this.H);this.D=this.C;break;case 2:d=I(this,this.L);this.D=this.C;break;case 3:d=I(this,this.G);this.D=this.C;break;case 4:d=I(this,Hi.call(this,0));this.D=this.C;break;case 5:d=I(this,Q(this));this.D=this.C;break;case 6:d=I(this,this.J);this.D=this.C;break;case 7:d=I(this,this.I);this.D=this.C;break;case 64:d=I(this,this.F+this.P());this.D=this.C;break;case 65:d=I(this,this.H+
|
||||
this.P());this.D=this.C;break;case 66:d=I(this,this.L+this.P());this.D=this.C;break;case 67:d=I(this,this.G+this.P());this.D=this.C;break;case 68:d=I(this,Hi.call(this,1)+this.P());this.D=this.C;break;case 69:d=J(this,this.M+this.P());this.D=this.C;break;case 70:d=I(this,this.J+this.P());this.D=this.C;break;case 71:d=I(this,this.I+this.P());this.D=this.C;break;case 128:d=I(this,this.F+Q(this));this.D=this.C;break;case 129:d=I(this,this.H+Q(this));this.D=this.C;break;case 130:d=I(this,this.L+Q(this));
|
||||
this.D=this.C;break;case 131:d=I(this,this.G+Q(this));this.D=this.C;break;case 132:d=I(this,Hi.call(this,2)+Q(this));this.D=this.C;break;case 133:d=J(this,this.M+Q(this));this.D=this.C;break;case 134:d=I(this,this.J+Q(this));this.D=this.C;break;case 135:d=I(this,this.I+Q(this));this.D=this.C;break;case 192:d=this.F&255;break;case 193:d=this.H&255;break;case 194:d=this.L&255;break;case 195:d=this.G&255;break;case 196:d=this.F>>8&255;break;case 197:d=this.H>>8&255;break;case 198:d=this.L>>8&255;break;
|
||||
case 199:d=this.G>>8&255;break;default:d=0}a=a[this.aa>>3&7].call(this,d,b.call(this));switch(c){case 192:this.F=this.F&-256|a;break;case 193:this.H=this.H&-256|a;break;case 194:this.L=this.L&-256|a;break;case 195:this.G=this.G&-256|a;break;case 196:this.F=this.F&-65281|a<<8;break;case 197:this.H=this.H&-65281|a<<8;break;case 198:this.L=this.L&-65281|a<<8;break;case 199:this.G=this.G&-65281|a<<8;break;default:tf(this,a)}}
|
||||
function Ee(a){switch((this.aa=this.la())&199){case 0:var b=L(this,this.F);break;case 1:b=L(this,this.H);break;case 2:b=L(this,this.L);break;case 3:b=L(this,this.G);break;case 4:b=L(this,Hi.call(this,0));break;case 5:b=L(this,Q(this));break;case 6:b=L(this,this.J);break;case 7:b=L(this,this.I);break;case 64:b=L(this,this.F+this.P());break;case 65:b=L(this,this.H+this.P());break;case 66:b=L(this,this.L+this.P());break;case 67:b=L(this,this.G+this.P());break;case 68:b=L(this,Hi.call(this,1)+this.P());
|
||||
break;case 69:b=M(this,this.M+this.P());break;case 70:b=L(this,this.J+this.P());break;case 71:b=L(this,this.I+this.P());break;case 128:b=L(this,this.F+Q(this));break;case 129:b=L(this,this.H+Q(this));break;case 130:b=L(this,this.L+Q(this));break;case 131:b=L(this,this.G+Q(this));break;case 132:b=L(this,Hi.call(this,2)+Q(this));break;case 133:b=M(this,this.M+Q(this));break;case 134:b=L(this,this.J+Q(this));break;case 135:b=L(this,this.I+Q(this));break;case 192:b=this.F&65535;break;case 193:b=this.H&
|
||||
65535;break;case 194:b=this.L&65535;break;case 195:b=this.G&65535;break;case 196:b=C(this)&65535;break;case 197:b=this.M&65535;break;case 198:b=this.J&65535;break;case 199:b=this.I&65535;break;default:b=0}var c=this.aa>>3&7;switch(c){case 0:var d=this.F&65535;break;case 1:d=this.H&65535;break;case 2:d=this.L&65535;break;case 3:d=this.G&65535;break;case 4:d=C(this)&65535;break;case 5:d=this.M&65535;break;case 6:d=this.J&65535;break;case 7:d=this.I&65535;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.F=
|
||||
this.F&-65536|a;break;case 1:this.H=this.H&-65536|a;break;case 2:this.L=this.L&-65536|a;break;case 3:this.G=this.G&-65536|a;break;case 4:B(this,C(this)&-65536|a);break;case 5:this.M=this.M&-65536|a;break;case 6:this.J=this.J&-65536|a;break;case 7:this.I=this.I&-65536|a}}
|
||||
function Fe(a){var b=(this.aa=this.la())&199;switch(b){case 0:var c=L(this,this.F);this.D=this.C;break;case 1:c=L(this,this.H);this.D=this.C;break;case 2:c=L(this,this.L);this.D=this.C;break;case 3:c=L(this,this.G);this.D=this.C;break;case 4:c=L(this,Hi.call(this,0));this.D=this.C;break;case 5:c=L(this,Q(this));this.D=this.C;break;case 6:c=L(this,this.J);this.D=this.C;break;case 7:c=L(this,this.I);this.D=this.C;break;case 64:c=L(this,this.F+this.P());this.D=this.C;break;case 65:c=L(this,this.H+this.P());
|
||||
this.D=this.C;break;case 66:c=L(this,this.L+this.P());this.D=this.C;break;case 67:c=L(this,this.G+this.P());this.D=this.C;break;case 68:c=L(this,Hi.call(this,1)+this.P());this.D=this.C;break;case 69:c=M(this,this.M+this.P());this.D=this.C;break;case 70:c=L(this,this.J+this.P());this.D=this.C;break;case 71:c=L(this,this.I+this.P());this.D=this.C;break;case 128:c=L(this,this.F+Q(this));this.D=this.C;break;case 129:c=L(this,this.H+Q(this));this.D=this.C;break;case 130:c=L(this,this.L+Q(this));this.D=
|
||||
this.C;break;case 131:c=L(this,this.G+Q(this));this.D=this.C;break;case 132:c=L(this,Hi.call(this,2)+Q(this));this.D=this.C;break;case 133:c=M(this,this.M+Q(this));this.D=this.C;break;case 134:c=L(this,this.J+Q(this));this.D=this.C;break;case 135:c=L(this,this.I+Q(this));this.D=this.C;break;case 192:c=this.F&65535;break;case 193:c=this.H&65535;break;case 194:c=this.L&65535;break;case 195:c=this.G&65535;break;case 196:c=C(this)&65535;break;case 197:c=this.M&65535;break;case 198:c=this.J&65535;break;
|
||||
case 199:c=this.I&65535;break;default:c=0}switch(this.aa>>3&7){case 0:var d=this.F&65535;break;case 1:d=this.H&65535;break;case 2:d=this.L&65535;break;case 3:d=this.G&65535;break;case 4:d=C(this)&65535;break;case 5:d=this.M&65535;break;case 6:d=this.J&65535;break;case 7:d=this.I&65535;break;default:d=0}a=a.call(this,c,d);switch(b){case 192:this.F=this.F&-65536|a;break;case 193:this.H=this.H&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.G=this.G&-65536|a;break;case 196:B(this,
|
||||
C(this)&-65536|a);break;case 197:this.M=this.M&-65536|a;break;case 198:this.J=this.J&-65536|a;break;case 199:this.I=this.I&-65536|a;break;default:uf(this,a)}}
|
||||
function Ge(a,b){var c=(this.aa=this.la())&199;switch(c){case 0:var d=L(this,this.F);this.D=this.C;break;case 1:d=L(this,this.H);this.D=this.C;break;case 2:d=L(this,this.L);this.D=this.C;break;case 3:d=L(this,this.G);this.D=this.C;break;case 4:d=L(this,Hi.call(this,0));this.D=this.C;break;case 5:d=L(this,Q(this));this.D=this.C;break;case 6:d=L(this,this.J);this.D=this.C;break;case 7:d=L(this,this.I);this.D=this.C;break;case 64:d=L(this,this.F+this.P());this.D=this.C;break;case 65:d=L(this,this.H+
|
||||
this.P());this.D=this.C;break;case 66:d=L(this,this.L+this.P());this.D=this.C;break;case 67:d=L(this,this.G+this.P());this.D=this.C;break;case 68:d=L(this,Hi.call(this,1)+this.P());this.D=this.C;break;case 69:d=M(this,this.M+this.P());this.D=this.C;break;case 70:d=L(this,this.J+this.P());this.D=this.C;break;case 71:d=L(this,this.I+this.P());this.D=this.C;break;case 128:d=L(this,this.F+Q(this));this.D=this.C;break;case 129:d=L(this,this.H+Q(this));this.D=this.C;break;case 130:d=L(this,this.L+Q(this));
|
||||
this.D=this.C;break;case 131:d=L(this,this.G+Q(this));this.D=this.C;break;case 132:d=L(this,Hi.call(this,2)+Q(this));this.D=this.C;break;case 133:d=M(this,this.M+Q(this));this.D=this.C;break;case 134:d=L(this,this.J+Q(this));this.D=this.C;break;case 135:d=L(this,this.I+Q(this));this.D=this.C;break;case 192:d=this.F&65535;break;case 193:d=this.H&65535;break;case 194:d=this.L&65535;break;case 195:d=this.G&65535;break;case 196:d=C(this)&65535;break;case 197:d=this.M&65535;break;case 198:d=this.J&65535;
|
||||
break;case 199:d=this.I&65535;break;default:d=0}a=a[this.aa>>3&7].call(this,d,b.call(this));switch(c){case 192:this.F=this.F&-65536|a;break;case 193:this.H=this.H&-65536|a;break;case 194:this.L=this.L&-65536|a;break;case 195:this.G=this.G&-65536|a;break;case 196:B(this,C(this)&-65536|a);break;case 197:this.M=this.M&-65536|a;break;case 198:this.J=this.J&-65536|a;break;case 199:this.I=this.I&-65536|a;break;default:uf(this,a)}}
|
||||
function He(a){switch((this.aa=this.la())&199){case 0:var b=N(this,this.F);break;case 1:b=N(this,this.H);break;case 2:b=N(this,this.L);break;case 3:b=N(this,this.G);break;case 4:b=N(this,Hi.call(this,0));break;case 5:b=N(this,Q(this));break;case 6:b=N(this,this.J);break;case 7:b=N(this,this.I);break;case 64:b=N(this,this.F+this.P());break;case 65:b=N(this,this.H+this.P());break;case 66:b=N(this,this.L+this.P());break;case 67:b=N(this,this.G+this.P());break;case 68:b=N(this,Hi.call(this,1)+this.P());
|
||||
break;case 69:b=P(this,this.M+this.P());break;case 70:b=N(this,this.J+this.P());break;case 71:b=N(this,this.I+this.P());break;case 128:b=N(this,this.F+Q(this));break;case 129:b=N(this,this.H+Q(this));break;case 130:b=N(this,this.L+Q(this));break;case 131:b=N(this,this.G+Q(this));break;case 132:b=N(this,Hi.call(this,2)+Q(this));break;case 133:b=P(this,this.M+Q(this));break;case 134:b=N(this,this.J+Q(this));break;case 135:b=N(this,this.I+Q(this));break;case 192:b=this.F;break;case 193:b=this.H;break;
|
||||
case 194:b=this.L;break;case 195:b=this.G;break;case 196:b=C(this);break;case 197:b=this.M;break;case 198:b=this.J;break;case 199:b=this.I;break;default:b=0}var c=this.aa>>3&7;switch(c){case 0:var d=this.F;break;case 1:d=this.H;break;case 2:d=this.L;break;case 3:d=this.G;break;case 4:d=C(this);break;case 5:d=this.M;break;case 6:d=this.J;break;case 7:d=this.I;break;default:d=0}a=a.call(this,d,b);switch(c){case 0:this.F=a;break;case 1:this.H=a;break;case 2:this.L=a;break;case 3:this.G=a;break;case 4:B(this,
|
||||
a);break;case 5:this.M=a;break;case 6:this.J=a;break;case 7:this.I=a}}
|
||||
function Ie(a){var b=(this.aa=this.la())&199;switch(b){case 0:var c=N(this,this.F);this.D=this.C;break;case 1:c=N(this,this.H);this.D=this.C;break;case 2:c=N(this,this.L);this.D=this.C;break;case 3:c=N(this,this.G);this.D=this.C;break;case 4:c=N(this,Hi.call(this,0));this.D=this.C;break;case 5:c=N(this,Q(this));this.D=this.C;break;case 6:c=N(this,this.J);this.D=this.C;break;case 7:c=N(this,this.I);this.D=this.C;break;case 64:c=N(this,this.F+this.P());this.D=this.C;break;case 65:c=N(this,this.H+this.P());
|
||||
this.D=this.C;break;case 66:c=N(this,this.L+this.P());this.D=this.C;break;case 67:c=N(this,this.G+this.P());this.D=this.C;break;case 68:c=N(this,Hi.call(this,1)+this.P());this.D=this.C;break;case 69:c=P(this,this.M+this.P());this.D=this.C;break;case 70:c=N(this,this.J+this.P());this.D=this.C;break;case 71:c=N(this,this.I+this.P());this.D=this.C;break;case 128:c=N(this,this.F+Q(this));this.D=this.C;break;case 129:c=N(this,this.H+Q(this));this.D=this.C;break;case 130:c=N(this,this.L+Q(this));this.D=
|
||||
this.C;break;case 131:c=N(this,this.G+Q(this));this.D=this.C;break;case 132:c=N(this,Hi.call(this,2)+Q(this));this.D=this.C;break;case 133:c=P(this,this.M+Q(this));this.D=this.C;break;case 134:c=N(this,this.J+Q(this));this.D=this.C;break;case 135:c=N(this,this.I+Q(this));this.D=this.C;break;case 192:c=this.F;break;case 193:c=this.H;break;case 194:c=this.L;break;case 195:c=this.G;break;case 196:c=C(this);break;case 197:c=this.M;break;case 198:c=this.J;break;case 199:c=this.I;break;default:c=0}switch(this.aa>>
|
||||
3&7){case 0:var d=this.F;break;case 1:d=this.H;break;case 2:d=this.L;break;case 3:d=this.G;break;case 4:d=C(this);break;case 5:d=this.M;break;case 6:d=this.J;break;case 7:d=this.I;break;default:d=0}a=a.call(this,c,d);switch(b){case 192:this.F=a;break;case 193:this.H=a;break;case 194:this.L=a;break;case 195:this.G=a;break;case 196:B(this,a);break;case 197:this.M=a;break;case 198:this.J=a;break;case 199:this.I=a;break;default:vf(this,a)}}
|
||||
function Je(a,b){var c=(this.aa=this.la())&199;switch(c){case 0:var d=N(this,this.F);this.D=this.C;break;case 1:d=N(this,this.H);this.D=this.C;break;case 2:d=N(this,this.L);this.D=this.C;break;case 3:d=N(this,this.G);this.D=this.C;break;case 4:d=N(this,Hi.call(this,0));this.D=this.C;break;case 5:d=N(this,Q(this));this.D=this.C;break;case 6:d=N(this,this.J);this.D=this.C;break;case 7:d=N(this,this.I);this.D=this.C;break;case 64:d=N(this,this.F+this.P());this.D=this.C;break;case 65:d=N(this,this.H+
|
||||
this.P());this.D=this.C;break;case 66:d=N(this,this.L+this.P());this.D=this.C;break;case 67:d=N(this,this.G+this.P());this.D=this.C;break;case 68:d=N(this,Hi.call(this,1)+this.P());this.D=this.C;break;case 69:d=P(this,this.M+this.P());this.D=this.C;break;case 70:d=N(this,this.J+this.P());this.D=this.C;break;case 71:d=N(this,this.I+this.P());this.D=this.C;break;case 128:d=N(this,this.F+Q(this));this.D=this.C;break;case 129:d=N(this,this.H+Q(this));this.D=this.C;break;case 130:d=N(this,this.L+Q(this));
|
||||
this.D=this.C;break;case 131:d=N(this,this.G+Q(this));this.D=this.C;break;case 132:d=N(this,Hi.call(this,2)+Q(this));this.D=this.C;break;case 133:d=P(this,this.M+Q(this));this.D=this.C;break;case 134:d=N(this,this.J+Q(this));this.D=this.C;break;case 135:d=N(this,this.I+Q(this));this.D=this.C;break;case 192:d=this.F;break;case 193:d=this.H;break;case 194:d=this.L;break;case 195:d=this.G;break;case 196:d=C(this);break;case 197:d=this.M;break;case 198:d=this.J;break;case 199:d=this.I;break;default:d=
|
||||
0}a=a[this.aa>>3&7].call(this,d,b.call(this));switch(c){case 192:this.F=a;break;case 193:this.H=a;break;case 194:this.L=a;break;case 195:this.G=a;break;case 196:B(this,a);break;case 197:this.M=a;break;case 198:this.J=a;break;case 199:this.I=a;break;default:vf(this,a)}}
|
||||
function Hi(a){var b=this.la(),c=b>>6;switch(b>>3&7){case 0:var d=this.F;break;case 1:d=this.H;break;case 2:d=this.L;break;case 3:d=this.G;break;case 4:d=0;break;case 5:d=this.M;break;case 6:d=this.J;break;case 7:d=this.I}switch(b&7){case 0:var e=this.F;break;case 1:e=this.H;break;case 2:e=this.L;break;case 3:e=this.G;break;case 4:e=C(this);this.Ca=this.Gb;break;case 5:a?(e=this.M,this.Ca=this.Gb):e=Q(this);break;case 6:e=this.J;break;case 7:e=this.I}return(d<<c)+e|0}
|
||||
function $d(){this.dd[this.la()].call(this)}function ce(){D(this,C(this)&this.O);this.A-=this.B.tc}function Jd(){this.ma=this.Aa;var a=C(this)&this.O;D(this,this.F&this.O);D(this,this.H&this.O);D(this,this.L&this.O);D(this,this.G&this.O);D(this,a);D(this,this.M&this.O);D(this,this.J&this.O);D(this,this.I&this.O);this.A-=this.B.qj;this.ma=-1}
|
||||
function Kd(){this.ma=this.Aa;this.I=this.I&~this.O|A(this);this.J=this.J&~this.O|A(this);this.M=this.M&~this.O|A(this);B(this,C(this)+this.T);this.G=this.G&~this.O|A(this);this.L=this.L&~this.O|A(this);this.H=this.H&~this.O|A(this);this.F=this.F&~this.O|A(this);this.A-=this.B.oj;this.ma=-1}function Ld(){this.ia.call(this,Ug)}function de(){!(this.ra&1)||this.N&131072?y.call(this,6):this.za.call(this,Tg)}function ee(){this.K|=20;this.Ca=this.Gb=this.rb;this.A-=this.B.Hc}
|
||||
function fe(){this.K|=20;this.Ca=this.Gb=this.vb;this.A-=this.B.Hc}function ge(){this.K|=1024;this.ba&1024||(this.T^=6,this.O^=-65536,Ke(this));this.A-=this.B.Hc}function he(){this.K|=2048;this.ba&2048||(this.Jc^=6,this.ta^=-65536,re(this));this.A-=this.B.Hc}function Md(){D(this,this.ya());this.A-=this.B.tc}function Nd(){this.ia.call(this,kh)}function Od(){D(this,this.P());this.A-=this.B.tc}function Pd(){this.ia.call(this,ih)}
|
||||
function Qd(){var a=1,b=0,c=this.ta,d=5;this.ba&192&&(a=this.H&c,b=1,this.ba&256&&(d=4));if(a--){var e=this.L&65535;pf(this,e,1)&&(e=lc(this.oa,e,1,this.da-b-1),this.Bb(this.xa.Kb(this.I&c,1),e),this.I=this.I&~c|this.I+(this.N&1024?-1:1)&c,this.H=this.H&~c|this.H-b&c,this.A-=d,a&&(Ve(this),this.K|=256))}}
|
||||
function Rd(){var a=1,b=0,c=this.ta,d=5;this.ba&192&&(a=this.H&c,b=1,this.ba&256&&(d=4));if(a--){var e=this.L&65535;pf(this,e,this.T)&&(e=lc(this.oa,e,this.T,this.da-b-1),wf(this,this.xa,this.I&c,e),this.I=this.I&~c|this.I+(this.N&1024?-this.T:this.T)&c,this.H=this.H&~c|this.H-b&c,this.A-=d,a&&(Ve(this),this.K|=256))}}
|
||||
function Sd(){var a=1,b=0,c=this.ta,d=5;this.ba&192&&(a=this.H&c,b=1,this.ba&256&&(d=4));if(a--){var e=this.L&65535;if(pf(this,e,1)){var f=this.Ia(this.Ga.sb(this.J&c,1));nc(this.oa,e,1,f,this.da-b-1);this.J=this.J&~c|this.J+(this.N&1024?-1:1)&c;this.H=this.H&~c|this.H-b&c;this.A-=d;a&&(Ve(this),this.K|=256)}}}
|
||||
function Td(){var a=1,b=0,c=this.ta,d=5;this.ba&192&&(a=this.H&c,b=1,this.ba&256&&(d=4));if(a--){var e=vd(this,this.Ga,this.J&c),f=this.L&65535;pf(this,f,this.T)&&(nc(this.oa,f,this.T,e,this.da-b-1),this.J=this.J&~c|this.J+(this.N&1024?-this.T:this.T)&c,this.H=this.H&~c|this.H-b&c,this.A-=d,a&&(Ve(this),this.K|=256))}}function Ii(){var a=this.P();bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}
|
||||
function Ji(){var a=this.P();bf(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}function Ki(){var a=this.P();Xe(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}function Li(){var a=this.P();Xe(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}function Mi(){var a=this.P();$e(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}function Ni(){var a=this.P();$e(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}
|
||||
function Oi(){var a=this.P();Xe(this)||$e(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}function Pi(){var a=this.P();Xe(this)||$e(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}function Qi(){var a=this.P();af(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}function Ri(){var a=this.P();af(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}function Si(){var a=this.P();Ye(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}
|
||||
function Ti(){var a=this.P();Ye(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}function Ui(){var a=this.P();!af(this)!=!bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}function Vi(){var a=this.P();!af(this)==!bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}function Wi(){var a=this.P();$e(this)||!af(this)!=!bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka}
|
||||
function Xi(){var a=this.P();$e(this)||!af(this)!=!bf(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)}function Yi(){this.Rc.call(this,Zi,this.la);this.A-=-1===this.D?1:this.B.Mf}function $i(){this.K|=1;this.ec.call(this,wh)}function aj(){this.K|=1;this.za.call(this,wh)}function bj(){this.Xb.call(this,wh)}function cj(){this.ia.call(this,wh)}function Ud(){this.Rc.call(this,dj,zi)}function Vd(){this.eb.call(this,2==this.T?ej:fj,zi)}
|
||||
function gj(){var a=xf(this),b=A(this);H(this,b);a&&B(this,C(this)+a);this.A-=this.B.vj}function hj(){var a=A(this);H(this,a);this.A-=this.B.sj}function Wd(){this.ma=this.Aa;var a=xf(this),b=this.la()&31;this.A-=11;D(this,this.M);var c=C(this)&this.O;if(0<b){for(this.A-=(b<<2)+(1<b?1:0);--b;)this.M=this.M&~this.O|this.M-this.T&this.O,D(this,vd(this,this.W,this.M&this.O));D(this,c)}this.M=this.M&~this.O|c;B(this,C(this)&~this.W.ta|C(this)-a&this.W.ta);this.ma=-1}
|
||||
function Xd(){this.ma=this.Aa;B(this,C(this)&~this.W.ta|this.M&this.W.ta);this.M=this.M&~this.O|A(this)&this.O;this.A-=5;this.ma=-1}function ij(){Ei.call(this,xf(this));this.A-=this.B.uj}function jj(){Ei.call(this,0);this.A-=this.B.tj}function kj(a){this.hi=a;this.ia.call(this,gh)}function lj(){this.K|=36;this.A-=this.B.Hc}function Yd(){be.call(this)}function Id(){y.call(this,6)}
|
||||
function be(){H(this,this.Uc-this.fa.va);ub(this,"Undefined opcode "+ra(this.Ia(this.da),2,!0)+" at "+ra(this.da,8,!0));Rc(this)}
|
||||
var Ed=[function(){this.ec.call(this,Pg)},function(){this.za.call(this,Qg)},function(){this.Xb.call(this,Pg)},function(){this.ia.call(this,Qg)},function(){this.F=this.F&-256|Pg.call(this,this.F&255,this.la());this.A--},function(){this.F=this.F&~this.O|Qg.call(this,this.F&this.O,this.ya());this.A--},function(){wd(this,this.xa.ha,this.T,2);this.A-=this.B.Qd},function(){this.ma=this.Aa;yd(this,A(this));this.A-=this.B.$b;this.ma=-1},function(){this.ec.call(this,Bh)},function(){this.za.call(this,Ch)},
|
||||
function(){this.Xb.call(this,Bh)},function(){this.ia.call(this,Ch)},function(){this.F=this.F&-256|Bh.call(this,this.F&255,this.la());this.A--},function(){this.F=this.F&~this.O|Ch.call(this,this.F&this.O,this.ya());this.A--},function(){wd(this,this.fa.ha,this.T,2);this.A-=this.B.Qd},function(){Se(this,A(this));this.A-=this.B.$b},function(){this.ec.call(this,Ng)},function(){this.za.call(this,Og)},function(){this.Xb.call(this,Ng)},function(){this.ia.call(this,Og)},function(){this.F=this.F&-256|Ng.call(this,
|
||||
this.F&255,this.la());this.A--},function(){this.F=this.F&~this.O|Og.call(this,this.F&this.O,this.ya());this.A--},function(){wd(this,this.W.ha,this.T,2);this.A-=this.B.Qd},function(){this.ma=this.Aa;rd(this,A(this));this.A-=this.B.$b;this.ma=-1},function(){this.ec.call(this,Dh)},function(){this.za.call(this,Eh)},function(){this.Xb.call(this,Dh)},function(){this.ia.call(this,Eh)},function(){this.F=this.F&-256|Dh.call(this,this.F&255,this.la());this.A--},function(){this.F=this.F&~this.O|Eh.call(this,
|
||||
this.F&this.O,this.ya());this.A--},function(){wd(this,this.Ga.ha,this.T,2);this.A-=this.B.Qd},function(){this.ma=this.Aa;xd(this,A(this));this.A-=this.B.$b;this.ma=-1},function(){this.ec.call(this,Rg)},function(){this.za.call(this,Sg)},function(){this.Xb.call(this,Rg)},function(){this.ia.call(this,Sg)},function(){this.F=this.F&-256|Rg.call(this,this.F&255,this.la());this.A--},function(){this.F=this.F&~this.O|Sg.call(this,this.F&this.O,this.ya());this.A--},function(){this.K|=20;this.Ca=this.Gb=this.xa;
|
||||
this.A-=this.B.Hc},function(){var a=this.F&255,b=Ze(this),c=Xe(this);9<(a&15)||b?(a+=6,b=16):b=0;159<a||c?(a+=96,c=1):c=0;a&=255;this.F=this.F&-256|a;cf(this,a,128);c?df(this):ef(this);b?mf(this):kf(this);this.A-=this.B.Pd},function(){this.ec.call(this,ii)},function(){this.za.call(this,ji)},function(){this.Xb.call(this,ii)},function(){this.ia.call(this,ji)},function(){this.F=this.F&-256|ii.call(this,this.F&255,this.la());this.A--},function(){this.F=this.F&~this.O|ji.call(this,this.F&this.O,this.ya());
|
||||
this.A--},function(){this.K|=20;this.Ca=this.Gb=this.fa;this.A-=this.B.Hc},function(){var a=this.F&255,b=Ze(this),c=Xe(this);9<(a&15)||b?(a-=6,b=16):b=0;159<a||c?(a-=96,c=1):c=0;a&=255;this.F=this.F&-256|a;cf(this,a,128);c?df(this):ef(this);b?mf(this):kf(this);this.A-=this.B.Pd},function(){this.ec.call(this,qi)},function(){this.za.call(this,ri)},function(){this.Xb.call(this,qi)},function(){this.ia.call(this,ri)},function(){this.F=this.F&-256|qi.call(this,this.F&255,this.la());this.A--},function(){this.F=
|
||||
this.F&~this.O|ri.call(this,this.F&this.O,this.ya());this.A--},function(){this.K|=20;this.Ca=this.Gb=this.W;this.A-=this.B.Hc},function(){var a,b=this.F&255,c=this.F>>8&255;if(9<(b&15)||Ze(this)){b+=6;80286<=this.ca&&255<b&&c++;c++;var d=a=1}else d=a=0;this.F=this.F&-65536|(c<<8|b)&65295;d?df(this):ef(this);a?mf(this):kf(this);this.A-=this.B.Pd},function(){this.ec.call(this,eh)},function(){this.za.call(this,fh)},function(){this.Xb.call(this,eh)},function(){this.ia.call(this,fh)},function(){eh.call(this,
|
||||
this.F&255,this.la());this.A--},function(){fh.call(this,this.F&this.O,this.ya());this.A--},function(){this.K|=20;this.Ca=this.Gb=this.Ga;this.A-=this.B.Hc},function(){var a,b=this.F&255,c=this.F>>8&255;if(9<(b&15)||Ze(this)){b=b-6&15;c=c-1&255;var d=a=1}else d=a=0;this.F=this.F&-65536|c<<8|b;d?df(this):ef(this);a?mf(this):kf(this);this.A-=this.B.Pd},function(){this.F=vi.call(this,this.F)},function(){this.H=vi.call(this,this.H)},function(){this.L=vi.call(this,this.L)},function(){this.G=vi.call(this,
|
||||
this.G)},function(){B(this,vi.call(this,C(this)))},function(){this.M=vi.call(this,this.M)},function(){this.J=vi.call(this,this.J)},function(){this.I=vi.call(this,this.I)},function(){this.F=ti.call(this,this.F)},function(){this.H=ti.call(this,this.H)},function(){this.L=ti.call(this,this.L)},function(){this.G=ti.call(this,this.G)},function(){B(this,ti.call(this,C(this)))},function(){this.M=ti.call(this,this.M)},function(){this.J=ti.call(this,this.J)},function(){this.I=ti.call(this,this.I)},function(){D(this,
|
||||
this.F&this.O);this.A-=this.B.tc},function(){D(this,this.H&this.O);this.A-=this.B.tc},function(){D(this,this.L&this.O);this.A-=this.B.tc},function(){D(this,this.G&this.O);this.A-=this.B.tc},function(){D(this,C(this)-2&65535);this.A-=this.B.tc},function(){D(this,this.M&this.O);this.A-=this.B.tc},function(){D(this,this.J&this.O);this.A-=this.B.tc},function(){D(this,this.I&this.O);this.A-=this.B.tc},function(){this.F=this.F&~this.O|A(this);this.A-=this.B.$b},function(){this.H=this.H&~this.O|A(this);
|
||||
this.A-=this.B.$b},function(){this.L=this.L&~this.O|A(this);this.A-=this.B.$b},function(){this.G=this.G&~this.O|A(this);this.A-=this.B.$b},function(){B(this,C(this)&~this.O|A(this));this.A-=this.B.$b},function(){this.M=this.M&~this.O|A(this);this.A-=this.B.$b},function(){this.J=this.J&~this.O|A(this);this.A-=this.B.$b},function(){this.I=this.I&~this.O|A(this);this.A-=this.B.$b},Ii,Ji,Ki,Li,Mi,Ni,Oi,Pi,Qi,Ri,Si,Ti,Ui,Vi,Wi,Xi,Ii,Ji,Ki,Li,Mi,Ni,Oi,Pi,Qi,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,function(){this.eb.call(this,
|
||||
mj,this.ya);this.A-=-1===this.D?1:this.B.Mf},Yi,function(){this.eb.call(this,mj,this.P);this.A-=-1===this.D?1:this.B.Mf},function(){this.ec.call(this,ki)},function(){this.za.call(this,li)},function(){this.Xb.call(this,oi)},function(){this.ia.call(this,pi)},$i,aj,bj,cj,function(){this.K|=1;this.za.call(this,Ah)},function(){this.K|=1;this.Ca=this.Gb=this.bg;this.ia.call(this,qh)},function(){this.ia.call(this,zh);switch(this.aa>>3&7){case 0:var a=this.F;this.F=this.ua;yd(this,a);break;case 1:a=this.H;
|
||||
this.H=this.ua;Se(this,a);break;case 2:a=this.L;this.L=this.ua;rd(this,a);break;case 3:a=this.G;this.G=this.ua;xd(this,a);break;case 4:a=C(this);B(this,this.ua);80386<=this.ca?this.rb.load(a):yd(this,a);break;case 5:a=this.M;this.M=this.ua;80386<=this.ca?this.vb.load(a):Se(this,a);break;case 6:a=this.J;this.J=this.ua;rd(this,a);break;case 7:a=this.I,this.I=this.ua,xd(this,a)}},function(){this.K|=1;this.ma=this.Aa;this.ua=A(this);this.eb.call(this,nj,Bi);this.ma=-1},function(){this.A-=3},function(){var a=
|
||||
this.F;this.F=this.F&~this.O|this.H&this.O;this.H=this.H&~this.O|a&this.O;this.A-=3},function(){var a=this.F;this.F=this.F&~this.O|this.L&this.O;this.L=this.L&~this.O|a&this.O;this.A-=3},function(){var a=this.F;this.F=this.F&~this.O|this.G&this.O;this.G=this.G&~this.O|a&this.O;this.A-=3},function(){var a=this.F,b=C(this);this.F=this.F&~this.O|b&this.O;B(this,b&~this.O|a&this.O);this.A-=3},function(){var a=this.F;this.F=this.F&~this.O|this.M&this.O;this.M=this.M&~this.O|a&this.O;this.A-=3},function(){var a=
|
||||
this.F;this.F=this.F&~this.O|this.J&this.O;this.J=this.J&~this.O|a&this.O;this.A-=3},function(){var a=this.F;this.F=this.F&~this.O|this.I&this.O;this.I=this.I&~this.O|a&this.O;this.A-=3},function(){this.F=2==this.T?this.F&-65536|this.F<<24>>24&65535:this.F<<16>>16;this.A-=2},function(){this.L=2==this.T?this.L&-65536|(this.F&32768?65535:0):this.F&-2147483648?-1:0;this.A-=this.B.Ci},function(){Ci.call(this,this.ya(),xf(this));this.A-=this.B.Fi},function(){this.A-=3},function(){var a=Ad(this);a&131072&&
|
||||
3>this.Yb?y.call(this,13,0):(D(this,a&-196609),this.A-=this.B.tc)},function(){if(this.N&131072&&3>this.Yb)y.call(this,13,0);else{var a=A(this);a=a&65535|this.N&-65536;Bd(this,a);this.A-=this.B.$b}},function(){var a=this.F>>8&255;a&1?df(this):ef(this);a&4?(this.resultType&=-3,this.N|=4):(this.resultType&=-3,this.N&=-5);a&16?mf(this):kf(this);a&64?nf(this):lf(this);a&128?(this.resultType&=-17,this.N|=128):(this.resultType&=-17,this.N&=-129);this.A-=this.B.Ob},function(){this.F=this.F&-65281|(Ad(this)&
|
||||
213)<<8;this.A-=this.B.Ob},function(){var a=this.F&-256;var b=Q(this);b=this.Ia(this.Ca.sb(b,1));this.F=a|b;this.A-=this.B.Jg},function(){this.F=this.F&~this.O|vd(this,this.Ca,Q(this));this.A-=this.B.Jg},function(){var a=Q(this),b=this.F;this.Bb(this.Ca.Kb(a,1),b);this.A-=this.B.Kg},function(){wf(this,this.Ca,Q(this),this.F);this.A-=this.B.Kg},function(){var a=1,b=0,c=this.ta,d=this.B.Lg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Ng,this.ba&256||(this.A-=this.B.Mg));if(a--){var e=this.Ia(this.Ca.sb(this.J&
|
||||
c,1));this.Bb(this.xa.Kb(this.I&c,1),e);e=this.N&1024?-1:1;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I+e&c;this.A-=d;this.H=this.H&~c|this.H-b&c;a&&(Ve(this),this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.Lg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Ng,this.ba&256||(this.A-=this.B.Mg));if(a--){wf(this,this.xa,this.I&c,vd(this,this.Ca,this.J&c));var e=this.N&1024?-this.T:this.T;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I+e&c;this.A-=d;this.H=this.H&~c|this.H-b&c;a&&(Ve(this),
|
||||
this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.wg;this.ba&192&&(a=this.H&c,b=1,d=this.B.yg,this.ba&256||(this.A-=this.B.xg));if(a--){var e=rf(this,this.Ca,this.J),f=rf(this,this.xa,this.I);this.D=this.C;eh.call(this,e,f);e=this.N&1024?-1:1;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I+e&c;this.H=this.H&~c|this.H-b&c;this.A-=d-this.B.zb;a&&$e(this)==(this.ba&64)&&(Ve(this),this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.wg;this.ba&192&&(a=this.H&c,b=1,d=this.B.yg,this.ba&256||
|
||||
(this.A-=this.B.xg));if(a--){var e=sf(this,this.Ca,this.J&c),f=sf(this,this.xa,this.I&c);this.D=this.C;fh.call(this,e,f);e=this.N&1024?-this.T:this.T;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I+e&c;this.H=this.H&~c|this.H-b&c;this.A-=d-this.B.zb;a&&$e(this)==(this.ba&64)&&(Ve(this),this.K|=256)}},function(){cf(this,this.F&this.la(),128);this.A-=this.B.Pd},function(){cf(this,this.F&this.ya(),this.wb);this.A-=this.B.Pd},function(){var a=1,b=0,c=this.ta,d=this.B.Wg;this.ba&192&&(a=this.H&c,b=
|
||||
1,d=this.B.Yg,this.ba&256||(this.A-=this.B.Xg));if(a--){var e=this.F;this.Bb(this.xa.Kb(this.I&c,1),e);this.H=this.H&~c|this.H-b&c;80546<=this.qd&&80564>=this.qd&&!(this.ba&2048)!=(103!=this.Ia(this.da))&&(c^=-65536);this.I=this.I&~c|this.I+(this.N&1024?-1:1)&c;this.A-=d;a&&(Ve(this),this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.Wg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Yg,this.ba&256||(this.A-=this.B.Xg));a--&&(wf(this,this.xa,this.I&c,this.F),this.I=this.I&~c|this.I+(this.N&1024?-this.T:
|
||||
this.T)&c,this.H=this.H&~c|this.H-b&c,this.A-=d,a&&(Ve(this),this.K|=256))},function(){var a=1,b=0,c=this.ta,d=this.B.Dg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Fg,this.ba&256||(this.A-=this.B.Eg));if(a--){var e=this.Ia(this.Ca.sb(this.J&c,1));this.F=this.F&-256|e;this.J=this.J&~c|this.J+(this.N&1024?-1:1)&c;this.H=this.H&~c|this.H-b&c;this.A-=d;a&&(Ve(this),this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.Dg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Fg,this.ba&256||(this.A-=this.B.Eg));if(a--){var e=
|
||||
vd(this,this.Ca,this.J&c);this.F=this.F&~this.O|e;this.J=this.J&~c|this.J+(this.N&1024?-this.T:this.T)&c;this.H=this.H&~c|this.H-b&c;this.A-=d;a&&(Ve(this),this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.Qg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Sg,this.ba&256||(this.A-=this.B.Rg));if(a--){var e=this.F&255,f=rf(this,this.xa,this.I);this.D=this.C;eh.call(this,e,f);this.I=this.I&~c|this.I+(this.N&1024?-1:1)&c;this.H=this.H&~c|this.H-b&c;this.A-=d-this.B.zb;a&&$e(this)==(this.ba&64)&&(Ve(this),
|
||||
this.K|=256)}},function(){var a=1,b=0,c=this.ta,d=this.B.Qg;this.ba&192&&(a=this.H&c,b=1,d=this.B.Sg,this.ba&256||(this.A-=this.B.Rg));if(a--){var e=this.F&this.O,f=sf(this,this.xa,this.I&c);this.D=this.C;fh.call(this,e,f);this.I=this.I&~c|this.I+(this.N&1024?-this.T:this.T)&c;this.H=this.H&~c|this.H-b&c;this.A-=d-this.B.zb;a&&$e(this)==(this.ba&64)&&(Ve(this),this.K|=256)}},function(){this.F=this.F&-256|this.la();this.A-=this.B.Ob},function(){this.H=this.H&-256|this.la();this.A-=this.B.Ob},function(){this.L=
|
||||
this.L&-256|this.la();this.A-=this.B.Ob},function(){this.G=this.G&-256|this.la();this.A-=this.B.Ob},function(){this.F=this.F&-65281|this.la()<<8;this.A-=this.B.Ob},function(){this.H=this.H&-65281|this.la()<<8;this.A-=this.B.Ob},function(){this.L=this.L&-65281|this.la()<<8;this.A-=this.B.Ob},function(){this.G=this.G&-65281|this.la()<<8;this.A-=this.B.Ob},function(){this.F=this.F&~this.O|this.ya();this.A-=this.B.Ob},function(){this.H=this.H&~this.O|this.ya();this.A-=this.B.Ob},function(){this.L=this.L&
|
||||
~this.O|this.ya();this.A-=this.B.Ob},function(){this.G=this.G&~this.O|this.ya();this.A-=this.B.Ob},function(){B(this,C(this)&~this.O|this.ya());this.A-=this.B.Ob},function(){this.M=this.M&~this.O|this.ya();this.A-=this.B.Ob},function(){this.J=this.J&~this.O|this.ya();this.A-=this.B.Ob},function(){this.I=this.I&~this.O|this.ya();this.A-=this.B.Ob},gj,hj,gj,hj,function(){this.ia.call(this,rh)},function(){this.ia.call(this,ph)},function(){this.K|=1;this.Rc.call(this,oj,this.la)},function(){this.K|=1;
|
||||
this.eb.call(this,oj,this.ya)},ij,jj,ij,jj,function(){if(this.N&131072&&3>this.Yb)y.call(this,13,0);else{var a=this.B.Wi;this.sc=-1;Di.call(this,3,null,a)}},function(){var a=this.la();if(this.N&131072&&3>this.Yb)y.call(this,13,0);else{a:{var b=this.kf[a];if(void 0!==b)for(var c=0;c<b.length;c++)if(!b[c](this.da)){b=!1;break a}b=!0}b?(this.sc=-1,Di.call(this,a,null,0)):this.A--}},function(){if(bf(this))if(this.N&131072&&3>this.Yb)y.call(this,13,0);else{var a=this.B.Xi;this.sc=-1;Di.call(this,4,null,
|
||||
a)}else this.A-=this.B.Yi},function(){if(this.N&131072&&3>this.Yb)y.call(this,13,0);else{this.uc=this.W.ha;this.ma=this.Aa;this.A-=this.B.Ui;if(this.ra&1&&this.N&16384){var a=this.ga(this.ka.va+0);sd(this.fa,a,!1)}else{a=this.La;var b=A(this),c=A(this),d=A(this);if(this.N&131072)d=d&131071|this.N&-131072;else if(d&131072){var e=A(this),f=A(this),g=A(this),h=A(this),k=A(this),m=A(this);td(this,!0,!0);rd(this,f);B(this,e);yd(this,g);xd(this,h);this.rb.load(k);this.vb.load(m)}null!=Cd(this,b,c,!1)&&
|
||||
(Bd(this,d,a),this.$f&&Ne(this,this.da))}this.uc=this.ma=-1}},function(){this.Rc.call(this,dj,xi)},function(){this.eb.call(this,2==this.T?ej:fj,xi)},function(){this.Rc.call(this,dj,yi)},function(){this.eb.call(this,2==this.T?ej:fj,yi)},function(){var a=this.la();if(a){var b=this.F&255;this.F=this.F&-65536|b/a<<8|b%a;cf(this,this.F,128);this.A-=this.B.zi}else Gi.call(this)},function(){var a=this.F&255,b=(this.F>>8&255)*this.la()|0,c=a+b|0;this.F=this.F&-65536|c&255;We(this,a,b,c,191);this.A-=this.B.yi},
|
||||
function(){this.F=this.F&-256|(Xe(this)?255:0);this.A-=2},function(){this.F=this.F&-256|rf(this,this.Ca,this.G+(this.F&255));this.A-=this.B.xj},function(){kj.call(this,216)},function(){kj.call(this,217)},function(){kj.call(this,218)},function(){kj.call(this,219)},function(){kj.call(this,220)},function(){kj.call(this,221)},function(){kj.call(this,222)},function(){kj.call(this,223)},function(){var a=this.P(),b=this.H-1&this.ta;this.H=this.H&~this.ta|b;b&&!$e(this)?(H(this,F(this)+a),this.A-=this.B.ej):
|
||||
this.A-=this.B.Gg},function(){var a=this.P(),b=this.H-1&this.ta;this.H=this.H&~this.ta|b;b&&$e(this)?(H(this,F(this)+a),this.A-=this.B.Hg):this.A-=this.B.Ig},function(){var a=this.P(),b=this.H-1&this.ta;this.H=this.H&~this.ta|b;b?(H(this,F(this)+a),this.A-=this.B.dj):this.A-=this.B.Gg},function(){var a=this.P();this.H&this.ta?this.A-=this.B.Ig:(H(this,F(this)+a),this.A-=this.B.Hg)},function(){var a=this.la();pf(this,a,1)&&(this.F=this.F&-256|lc(this.oa,a,1,this.da-2)&255,this.A-=this.B.Bg)},function(){var a=
|
||||
this.la();pf(this,a,this.T)&&(this.F=this.F&~this.O|lc(this.oa,a,this.T,this.da-2)&this.O,this.A-=this.B.Bg)},function(){var a=this.la();pf(this,a,1)&&(nc(this.oa,a,1,this.F&255,this.da-2),this.A-=this.B.Pg)},function(){var a=this.la();pf(this,a,this.T)&&(nc(this.oa,a,this.T,this.F&this.O,this.da-2),this.A-=this.B.Pg)},function(){var a=this.ya(),b=F(this);a=b+a;D(this,b);H(this,a);this.A-=this.B.Di},function(){var a=this.ya();H(this,F(this)+a);this.A-=this.B.Cg},function(){Cd(this,this.ya(),xf(this));
|
||||
this.A-=this.B.$i},function(){var a=this.P();H(this,F(this)+a);this.A-=this.B.Cg},function(){var a=this.L&65535;pf(this,a,1)&&(this.F=this.F&-256|lc(this.oa,a,1,this.da-1)&255,this.A-=this.B.Ag)},function(){var a=this.L&65535;pf(this,a,this.T)&&(this.F=this.F&~this.O|lc(this.oa,a,this.T,this.da-1)&this.O,this.A-=this.B.Ag)},function(){var a=this.L&65535;pf(this,a,1)&&(nc(this.oa,a,1,this.F&255,this.da-1),this.A-=this.B.Og)},function(){var a=this.L&65535;pf(this,a,2)&&(nc(this.oa,a,this.T,this.F&this.O,
|
||||
this.da-1),this.A-=this.B.Og)},lj,lj,function(){this.K|=132;this.A-=this.B.Hc},function(){this.K|=68;this.A-=this.B.Hc},function(){this.N&131072?y.call(this,13,0):(this.Qa|=4,this.A-=2,this.N&512||Rc(this))},function(){Xe(this)?ef(this):df(this);this.A-=2},function(){this.fc=!1;this.Rc.call(this,pj,Ai);this.fc&&(this.F=this.F&~this.O|this.Ba&this.O)},function(){this.fc=!1;this.eb.call(this,qj,Ai);this.fc&&(this.F=this.F&~this.O|this.Ba&this.O,this.L=this.L&~this.O|this.Sa&this.O)},function(){ef(this);
|
||||
this.A-=2},function(){df(this);this.A-=2},function(){this.La>this.Yb?y.call(this,13,0):(this.N&=-513,this.A-=this.B.Bi)},function(){this.La>this.Yb?y.call(this,13,0):(this.N|=512,this.K|=4,this.A-=2)},function(){this.N&=-1025;this.A-=2},function(){this.N|=1024;this.A-=2},function(){this.Rc.call(this,Fd,Ai)},function(){this.eb.call(this,Gd,Ai)}],Zi=[Pg,Bh,Ng,Dh,Rg,ii,qi,eh],mj=[Qg,Ch,Og,Eh,Sg,ji,ri,fh],nj=[function(a,b){this.A-=-1===this.D?this.B.$b:this.B.pj;return b},hh,hh,hh,hh,hh,hh,hh],oj=[function(a,
|
||||
b){this.A-=-1===this.D?this.B.hj:this.B.fj;return b},T,T,T,T,T,T,T],dj=[function(a,b){var c=a;if(b&=this.Ma){if(b&=7){var d=a<<b-1;c=(a<<b|a>>8-b)&255}else d=a<<7;hf(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ma){if(b&=7){var d=a<<8-b;c=(a>>>b|d)&255}else d=a;hf(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ma){var d=jf(this);(b%=9)?(c=(a<<b|d<<b-1|a>>9-b)&255,d=a<<b-1):d<<=7;hf(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ma){var d=jf(this);(b%=9)?(c=(a>>b|d<<
|
||||
8-b|a<<9-b)&255,d=a<<8-b):d<<=7;hf(this,c,d,128)}return c},function(a,b){var c=a;if(b&=this.Ma){var d=0;8<b?c=0:(d=a<<b-1,c=d<<1&255);cf(this,c,128,d&128,(c^d)&128)}return c},function(a,b){if(b&=this.Ma)b=8<b?0:a>>>b-1,a=b>>>1&255,cf(this,a,128,b&1,a&128);return a},T,function(a,b){if(b&=this.Ma)9<b&&(b=9),b=a<<24>>24>>b-1,a=b>>1&255,cf(this,a,128,b&1);return a}],ej=[function(a,b){var c=a;if(b&=this.Ma){if(b&=15){var d=a<<b-1;c=(a<<b|a>>16-b)&65535}else d=a<<15;hf(this,c,d,32768)}return c},function(a,
|
||||
b){var c=a;if(b&=this.Ma){if(b&=15){var d=a<<16-b;c=(a>>>b|d)&65535}else d=a;hf(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ma){var d=jf(this);(b%=17)?(c=(a<<b|d<<b-1|a>>17-b)&65535,d=a<<b-1):d<<=15;hf(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ma){var d=jf(this);(b%=17)?(c=(a>>b|d<<16-b|a<<17-b)&65535,d=a<<16-b):d<<=15;hf(this,c,d,32768)}return c},function(a,b){var c=a;if(b&=this.Ma){var d=0;16<b?c=0:(d=a<<b-1,c=d<<1&65535);cf(this,c,32768,d&32768,(c^d)&32768)}return c},
|
||||
function(a,b){if(b&=this.Ma)b=16<b?0:a>>>b-1,a=b>>>1&65535,cf(this,a,32768,b&1,a&32768);return a},T,function(a,b){if(b&=this.Ma)17<b&&(b=17),b=a<<16>>16>>b-1,a=b>>1&65535,cf(this,a,32768,b&1);return a}],fj=[function(a,b){var c=a;if(b&=this.Ma)c=a<<b|a>>>32-b,hf(this,c,a<<b-1,-2147483648);return c},function(a,b){var c=a;if(b&=this.Ma){var d=a<<32-b;c=a>>>b|d;hf(this,c,d,-2147483648)}return c},function(a,b){var c=a;if(b&=this.Ma)c=jf(this),c=a<<b|c<<b-1|a>>>32-b>>>1,hf(this,c,a<<b-1,-2147483648);return c},
|
||||
function(a,b){var c=a;if(b&=this.Ma)c=jf(this),c=a>>>b|c<<32-b|a<<32-b<<1,hf(this,c,a<<32-b,-2147483648);return c},function(a,b){var c=a;if(b&=this.Ma)a<<=b-1,c=a<<1,cf(this,c,-2147483648,a&-2147483648,(c^a)&-2147483648);return c},function(a,b){if(b&=this.Ma)b=a>>>b-1,a=b>>>1,cf(this,a,-2147483648,b&1,a&-2147483648);return a},T,function(a,b){if(b&=this.Ma)b=a>>b-1,a=b>>1,cf(this,a,-2147483648,b&1);return a}],pj=[function(a,b){b=this.la();cf(this,a&b,128);this.A-=-1===this.C?this.B.$g:this.B.Zg;this.K|=
|
||||
2;return a},T,function(a){this.A-=-1===this.C?this.B.Te:this.B.Se;return a^255},function(a){var b=-a|0;We(this,0,a,b,191,!0);this.A-=-1===this.C?this.B.Te:this.B.Se;return b&255},function(a){this.Ba=(this.F&255)*a&65535;this.Ba&65280?(df(this),ff(this)):(ef(this),gf(this));this.fc=!0;this.A-=-1===this.C?this.B.lj:this.B.kj;this.K|=2;return a},function(a){var b=(this.F<<24>>24)*(a<<24>>24)|0;this.Ba=b&65535;127<b||-128>b?(df(this),ff(this)):(ef(this),gf(this));this.fc=!0;this.A-=-1===this.C?this.B.Ri:
|
||||
this.B.Qi;this.K|=2;return a},function(a,b){if(!a)return Gi.call(this),a;var c=(b=this.F&65535)/a;if(255<c)return Gi.call(this),a;this.Ba=c&255|(b%a&255)<<8;this.fc=!0;this.A-=-1===this.C?this.B.Ji:this.B.Ii;this.K|=2;return a},function(a,b){if(!a)return Gi.call(this),a;var c=a<<24>>24,d=(b=this.F<<16>>16)/c|0;if(d!=d<<24>>24||8086==this.ca&&-128==d)return Gi.call(this),a;this.Ba=d&255|(b%c&255)<<8;this.fc=!0;this.A-=-1===this.C?this.B.Ni:this.B.Mi;this.K|=2;return a}],qj=[function(a,b){b=this.ya();
|
||||
cf(this,a&b,this.wb);this.A-=-1===this.C?this.B.$g:this.B.Zg;this.K|=2;return a},T,function(a){this.A-=-1===this.C?this.B.Te:this.B.Se;return a^this.O},function(a){var b=-a|0;We(this,0,a,b,this.wb|63,!0);this.A-=-1===this.C?this.B.Te:this.B.Se;return b&this.O},function(a,b){2==this.T?(b=this.F&65535,b=b*a|0,this.Ba=b&65535,this.Sa=b>>16&65535):(nh.call(this,a,this.F),80563==this.qd&&68657152==this.F&&129==a&&(this.Sa=0));this.Sa?(df(this),ff(this)):(ef(this),gf(this));this.fc=!0;this.A-=-1===this.C?
|
||||
this.B.nj:this.B.mj;this.K|=2;return a},function(a,b){2==this.T?(b=this.F&65535,b=(b<<16>>16)*(a<<16>>16)|0,this.Ba=b&65535,this.Sa=b>>16&65535,b=32767<b||-32768>b):(mh.call(this,a,this.F),b=this.Sa!=this.Ba>>31);b?(df(this),ff(this)):(ef(this),gf(this));this.fc=!0;this.A-=-1===this.C?this.B.Ti:this.B.Si;this.K|=2;return a},function(a,b){if(2==this.T){if(!a)return Gi.call(this),a;b=65536*(this.L&65535)+(this.F&65535);var c=b/a;if(65536<=c)return Gi.call(this),a;this.Ba=c&65535;this.Sa=b%a&65535}else{if(!ui.call(this,
|
||||
this.F,this.L,a))return Gi.call(this),a;this.Ba|=0;this.Sa|=0}this.fc=!0;this.A-=-1===this.C?this.B.Li:this.B.Ki;this.K|=2;return a},function(a,b){if(2==this.T){if(!a)return Gi.call(this),a;var c=a<<16>>16,d=(b=this.L<<16|this.F&65535)/c|0;if(d!=d<<16>>16||8086==this.ca&&-32768==d)return Gi.call(this),a;this.Ba=d&65535;this.Sa=b%c&65535}else{b=this.F;c=this.L;d=a;var e=0,f=0;0>d&&(d=-d|0,e=1-e);0>c&&(b=-b|0,c=~c+(b?0:1)|0,f=1,e=1-e);!ui.call(this,b,c,d)||this.Ba>2147483647+e||this.Sa>2147483647+f?
|
||||
b=!1:(e&&(this.Ba=-this.Ba),f&&(this.Sa=-this.Sa),b=!0);if(!b)return Gi.call(this),a;this.Ba|=0;this.Sa|=0}this.fc=!0;this.A-=-1===this.C?this.B.Pi:this.B.Oi;this.K|=2;return a}],Fd=[function(a){var b=a+1|0;We(this,a,1,b,190);this.A-=-1===this.C?this.B.Re:this.B.Qe;return b&255},function(a){var b=a-1|0;We(this,a,1,b,190,!0);this.A-=-1===this.C?this.B.Re:this.B.Qe;return b&255},T,T,T,T,T,T],Gd=[function(a){var b=a+1|0;We(this,a,1,b,this.wb|62);this.A-=-1===this.C?this.B.Re:this.B.Qe;return b&this.O},
|
||||
function(a){var b=a-1|0;We(this,a,1,b,this.wb|62,!0);this.A-=-1===this.C?this.B.Re:this.B.Qe;return b&this.O},function(a){D(this,F(this));H(this,a);this.A-=-1===this.C?this.B.Hi:this.B.Gi;this.K|=2;return a},function(a){if(-1===this.C)return T.call(this,a);this.ma=this.Aa;Ci.call(this,a,this.ga(this.C+this.T));this.A-=this.B.Ei;this.K|=2;this.ma=-1;return a},function(a){H(this,a);this.A-=-1===this.C?this.B.bj:this.B.aj;this.K|=2;return a},function(a){if(-1===this.C)return T.call(this,a);Cd(this,a,
|
||||
this.ga(this.C+this.T));this.A-=this.B.Zi;this.K|=2;return a},function(a){var b=a;this.K&512&&(a=a-2&65535,80286>this.ca&&(b=a));D(this,b);this.A-=-1===this.C?this.B.tc:this.B.rj;this.K|=2;return a},T];function ie(){this.ia.call(this,ni);this.A-=-1===this.C?6:13}function je(){this.za.call(this,mi);this.A-=-1===this.C?12:19}var ae=Array(256);ae[0]=function(){16>(this.Ia(this.da)&56)&&(this.K|=1);this.eb.call(this,this.ei,Ai)};ae[1]=function(){this.Ia(this.da)&16||(this.K|=1);this.eb.call(this,rj,Ai)};
|
||||
ae[2]=function(){!(this.ra&1)||this.N&131072?y.call(this,6):this.ia.call(this,oh)};ae[3]=function(){!(this.ra&1)||this.N&131072?y.call(this,6):this.ia.call(this,uh)};
|
||||
ae[5]=function(){this.La?y.call(this,13,0,0,!0):(of(this,this.ga(2054)),this.I=this.ga(2086),this.J=this.ga(2088),this.M=this.ga(2090),this.G=this.ga(2094),this.L=this.ga(2096),this.H=this.ga(2098),this.F=this.ga(2100),od(this.xa,2102,this.ga(2084)),od(this.fa,2108,this.ga(2082)),od(this.W,2114,this.ga(2080)),od(this.Ga,2120,this.ga(2078)),Bd(this,this.ga(2072)),H(this,this.ga(2074)),B(this,this.ga(2092)),this.Jb=this.ga(2126)|this.Ia(2128)<<16,this.Oc=this.Jb+this.ga(2130),this.Wb=this.ga(2138)|
|
||||
this.Ia(2140)<<16,this.Qc=this.Wb+this.ga(2142),od(this.lc,2132,this.ga(2076)),od(this.ka,2144,this.ga(2070)),this.A-=195)};ae[6]=function(){this.La?y.call(this,13,0):(this.ra&=-9,this.A-=2)};ae[11]=Id;ae[166]=Id;ae[255]=Id;var G=[];G[5]=Id;
|
||||
G[7]=function(){if(this.La)y.call(this,13,0,0,!0);else{var a=this.xa.sb(this.I&this.ta,204);if(-1!==a){this.ra=this.ea(a);td(this);this.ra&-2147483648?le(this):oe(this);var b=this.ea(a+168),c=(b&24576)>>13;Bd(this,this.ea(a+4),c);this.Jb=this.ea(a+112);this.Oc=this.Jb+this.ea(a+116);this.Wb=this.ea(a+100);this.Qc=this.Wb+this.ea(a+104);md(this.lc,this.ea(a+56),this.ea(a+120),this.ea(a+124),this.ea(a+128));md(this.ka,this.ea(a+52),this.ea(a+84),this.ea(a+88),this.ea(a+92));this.I=this.ea(a+12);this.J=
|
||||
this.ea(a+16);this.M=this.ea(a+20);this.G=this.ea(a+28);this.L=this.ea(a+32);this.H=this.ea(a+36);this.F=this.ea(a+40);md(this.vb,this.ea(a+60),this.ea(a+132),this.ea(a+136),this.ea(a+140));md(this.rb,this.ea(a+64),this.ea(a+144),this.ea(a+148),this.ea(a+152));md(this.Ga,this.ea(a+68),this.ea(a+156),this.ea(a+160),this.ea(a+164));md(this.W,this.ea(a+72),b,this.ea(a+172),this.ea(a+176));md(this.fa,this.ea(a+76),this.ea(a+180),this.ea(a+184),this.ea(a+188));md(this.xa,this.ea(a+80),this.ea(a+192),this.ea(a+
|
||||
196),this.ea(a+200));H(this,this.ea(a+8));B(this,this.ea(a+24))}this.A-=122<<(a&3?1:0)}};G[16]=$i;G[17]=aj;G[18]=bj;G[19]=cj;G[32]=function(){if(this.La)y.call(this,13,0);else{var a=this.la();switch((a&56)>>3){case 0:var b=this.ra;break;case 2:b=this.td;break;case 3:b=this.Vc;break;default:be.call(this);return}qe(this,a&7,b);this.A-=6}};G[33]=function(){if(this.La)y.call(this,13,0);else{var a=this.la(),b=(a&56)>>3;4==b||5==b?be.call(this):(qe(this,a&7,this.Cb[b]),this.A-=22)}};
|
||||
G[34]=function(){if(this.La)y.call(this,13,0);else{var a=this.la(),b=pe(this,a&7);switch((a&56)>>3){case 0:this.ra=b;td(this);this.ra&-2147483648?le(this):oe(this);this.A-=10;break;case 2:this.td=b;this.A-=4;break;case 3:this.Vc=b;Tb(this);this.A-=5;break;default:be.call(this)}}};G[35]=function(){if(this.La)y.call(this,13,0);else{var a=this.la(),b=(a&56)>>3;4==b||5==b?be.call(this):(a=pe(this,a&7),a!=this.Cb[b]&&(Oe(this,!1),this.Cb[b]=a,Oe(this,!0)),this.A-=4>b?22:14)}};
|
||||
G[36]=function(){if(this.La)y.call(this,13,0);else{var a=this.la(),b=(a&56)>>3;6>b?be.call(this):(qe(this,a&7,this.nf[b]),this.A-=12)}};G[38]=function(){if(this.La)y.call(this,13,0);else{var a=this.la(),b=(a&56)>>3;6>b?be.call(this):(this.nf[b]=pe(this,a&7),this.A-=12)}};G[128]=function(){var a=this.ya();bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[129]=function(){var a=this.ya();bf(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};
|
||||
G[130]=function(){var a=this.ya();Xe(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[131]=function(){var a=this.ya();Xe(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};G[132]=function(){var a=this.ya();$e(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[133]=function(){var a=this.ya();$e(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};G[134]=function(){var a=this.ya();Xe(this)||$e(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};
|
||||
G[135]=function(){var a=this.ya();Xe(this)||$e(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};G[136]=function(){var a=this.ya();af(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[137]=function(){var a=this.ya();af(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};G[138]=function(){var a=this.ya();Ye(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[139]=function(){var a=this.ya();Ye(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};
|
||||
G[140]=function(){var a=this.ya();!af(this)!=!bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[141]=function(){var a=this.ya();!af(this)==!bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[142]=function(){var a=this.ya();$e(this)||!af(this)!=!bf(this)?(H(this,F(this)+a),this.A-=this.B.Ja):this.A-=this.B.Ka};G[143]=function(){var a=this.ya();$e(this)||!af(this)!=!bf(this)?this.A-=this.B.Ka:(H(this,F(this)+a),this.A-=this.B.Ja)};G[144]=function(){wi.call(this,Fh)};
|
||||
G[145]=function(){wi.call(this,Fh)};G[146]=function(){wi.call(this,Gh)};G[147]=function(){wi.call(this,Hh)};G[148]=function(){wi.call(this,Ih)};G[149]=function(){wi.call(this,Jh)};G[150]=function(){wi.call(this,Kh)};G[151]=function(){wi.call(this,Lh)};G[152]=function(){wi.call(this,Mh)};G[153]=function(){wi.call(this,Nh)};G[154]=function(){wi.call(this,Oh)};G[155]=function(){wi.call(this,Ph)};G[156]=function(){wi.call(this,Qh)};G[157]=function(){wi.call(this,Rh)};G[158]=function(){wi.call(this,Sh)};
|
||||
G[159]=function(){wi.call(this,Th)};G[160]=function(){wd(this,this.rb.ha,this.T,2);this.A-=this.B.Qd};G[161]=function(){this.ma=this.Aa;var a=A(this);this.rb.load(a);this.A-=this.B.$b;this.ma=-1};G[163]=function(){this.za.call(this,ah);-1!==this.C&&(this.A-=6)};G[164]=function(){this.za.call(this,2==this.T?Uh:Wh);this.A-=-1===this.C?3:7};G[165]=function(){this.za.call(this,2==this.T?Yh:Zh);this.A-=-1===this.C?3:7};G[168]=function(){wd(this,this.vb.ha,this.T,2);this.A-=this.B.Qd};
|
||||
G[169]=function(){this.ma=this.Aa;var a=A(this);this.vb.load(a);this.A-=this.B.$b;this.ma=-1};G[171]=function(){this.za.call(this,dh);-1!==this.C&&(this.A-=5)};G[172]=function(){this.za.call(this,2==this.T?$h:ei);this.A-=-1===this.C?3:7};G[173]=function(){this.za.call(this,2==this.T?gi:hi);this.A-=-1===this.C?3:7};G[175]=function(){this.ia.call(this,2==this.T?jh:lh)};G[178]=function(){this.ia.call(this,vh)};G[179]=function(){this.za.call(this,ch);-1!==this.C&&(this.A-=5)};
|
||||
G[180]=function(){this.ia.call(this,sh)};G[181]=function(){this.ia.call(this,th)};
|
||||
G[182]=function(){this.Xb.call(this,xh);switch(this.aa>>3&7){case 0:this.F=this.F&~this.O|this.F&255;break;case 1:this.H=this.H&~this.O|this.H&255;break;case 2:this.L=this.L&~this.O|this.L&255;break;case 3:this.G=this.G&~this.O|this.G&255;break;case 4:this.kc=this.kc&~this.O|this.F>>8&255;this.F=this.ua;break;case 5:this.M=this.M&~this.O|this.H>>8&255;this.H=this.ua;break;case 6:this.J=this.J&~this.O|this.L>>8&255;this.L=this.ua;break;case 7:this.I=this.I&~this.O|this.G>>8&255,this.G=this.ua}this.A-=
|
||||
-1===this.C?3:6};G[183]=function(){ud(this,2);this.ia.call(this,yh);switch(this.aa>>3&7){case 0:this.F=this.F&65535;break;case 1:this.H=this.H&65535;break;case 2:this.L=this.L&65535;break;case 3:this.G=this.G&65535;break;case 4:this.kc=this.kc&65535;break;case 5:this.M=this.M&65535;break;case 6:this.J=this.J&65535;break;case 7:this.I=this.I&65535}this.A-=-1===this.C?3:6};G[186]=function(){this.eb.call(this,sj,this.la)};G[187]=function(){this.za.call(this,bh);-1!==this.C&&(this.A-=5)};
|
||||
G[188]=function(){this.ia.call(this,Vg)};G[189]=function(){this.ia.call(this,Wg)};
|
||||
G[190]=function(){this.Xb.call(this,xh);switch(this.aa>>3&7){case 0:this.F=this.F&~this.O|(this.F&255)<<24>>24&this.O;break;case 1:this.H=this.H&~this.O|(this.H&255)<<24>>24&this.O;break;case 2:this.L=this.L&~this.O|(this.L&255)<<24>>24&this.O;break;case 3:this.G=this.G&~this.O|(this.G&255)<<24>>24&this.O;break;case 4:this.kc=this.kc&~this.O|this.F<<16>>24&this.O;this.F=this.ua;break;case 5:this.M=this.M&~this.O|this.H<<16>>24&this.O;this.H=this.ua;break;case 6:this.J=this.J&~this.O|this.L<<16>>24&
|
||||
this.O;this.L=this.ua;break;case 7:this.I=this.I&~this.O|this.G<<16>>24&this.O,this.G=this.ua}this.A-=-1===this.C?3:6};G[191]=function(){ud(this,2);this.ia.call(this,yh);switch(this.aa>>3&7){case 0:this.F=this.F<<16>>16;break;case 1:this.H=this.H<<16>>16;break;case 2:this.L=this.L<<16>>16;break;case 3:this.G=this.G<<16>>16;break;case 4:this.kc=this.kc<<16>>16;break;case 5:this.M=this.M<<16>>16;break;case 6:this.J=this.J<<16>>16;break;case 7:this.I=this.I<<16>>16}this.A-=-1===this.C?3:6};
|
||||
var Pe=[function(){this.A-=2+(-1===this.C?0:1);return this.lc.ha},function(){this.A-=2+(-1===this.C?0:1);return this.ka.ha},function(a){this.K|=2;this.lc.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.K|=2;-1!==this.ka.load(a)&&(this.Za(this.ka.bc+4,this.ka.nb|=512),this.ka.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.K|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.gb.load(a)&&2048!=(this.gb.nb&2560)&&(this.gb.ic>=this.La&&this.gb.ic>=(a&3)||7168==(this.gb.nb&
|
||||
7168)))return nf(this),a;lf(this);return a},function(a){this.K|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.gb.load(a)&&512==(this.gb.nb&2560)&&this.gb.ic>=this.La&&this.gb.ic>=(a&3))return nf(this),a;lf(this);return a},T,T],Hd=[Zd,Zd,Zd,Zd,Zd,Zd,T,T],rj=[function(a){if(-1===this.C)y.call(this,6);else{a=this.Oc-this.Jb;var b=this.Jb;80286==this.ca?b|=-16777216:80386<=this.ca&&2!=this.T&&(a|=b<<16);this.Ta(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)y.call(this,6);else{a=this.Qc-this.Wb;
|
||||
var b=this.Wb;80286==this.ca?b|=-16777216:80386<=this.ca&&2!=this.T&&(a|=b<<16);this.Ta(this.C+2,b);this.A-=12}return a},function(a){-1===this.C||this.N&131072?y.call(this,6):(this.Jb=this.ea(this.C+2)&(this.O|this.O<<8),a&=65535,this.Oc=this.Jb+a,this.K|=2,this.A-=11);return a},function(a){-1===this.C||this.N&131072?y.call(this,6):(this.Wb=this.ea(this.C+2)&(this.O|this.O<<8),a&=65535,this.Qc=this.Wb+a,this.K|=2,this.A-=12);return a},function(){this.A-=2+(-1===this.C?0:1);return this.ra},T,function(a){this.N&
|
||||
131072?y.call(this,6):(of(this,a),this.A-=-1===this.C?3:6,this.K|=2);return a},T],sj=[T,T,T,T,Xg,$g,Zg,Yg];
|
||||
function U(a){u.call(this,"ChipSet",a);var b=a.model;b&&!tj[b]&&q("Unrecognized ChipSet model: "+b);this.ca=tj[b]||uj;this.B=[];b=vj(a[wj]);this.B[0]=[b,b];null==b&&(this.L=[360,360],(b=a.floppies)&&b.length&&(this.L=b),xj(this,yj,this.L.length),xj(this,zj,a.monitor||(this.ca<Gf?"mono":"ega")));b=vj(a[Aj]);this.B[1]=[b,b];this.za=this.ka=1;this.ca>=Gf&&(this.za=this.ka=2);this.M=a.scaleTimers||!1;this.Sa=a.dateRTC;this.La=this.Ma=!1;this.Ga=0;if(a=a.sound)this.Ga="number"!=typeof a||0>a||1<a?.5:a,
|
||||
this.Da=this.N=null,window&&(this.Da=window.AudioContext||window.webkitAudioContext),this.Da&&(this.N=new this.Da);this.reset(!0)}ja(U,u);l=U.prototype;
|
||||
l.jc=function(a,b,c,d){this.oa=b;this.R=c;this.Ea=d;this.na=a;this.rd=Ab(a,"FPU");xj(this,Bj,this.rd?1:0,!0);this.C=Ab(a,"Keyboard");a=Mc(a,"sound");null!=a&&(d=+a||0,this.Ga="true"==a||0>d||1<d?.5:d);this.Ba=c.V.zd/Cj;kc(b,this,Dj);mc(b,this,Ej);this.ca<Gf?this.ca!=Fj?(kc(b,this,Gj),mc(b,this,Hj)):(kc(b,this,Ij),mc(b,this,Jj)):(kc(b,this,Kj),mc(b,this,Lj),(this.ca|0)==Mj&&(kc(b,this,Nj),mc(b,this,Oj)));v(this)};
|
||||
l.Ab=function(a,b,c){switch(b){case wj:return this.ja[b]=c,Pj(this,0,b),!0;case Aj:if((this.ca|0)==Qj||this.ca==Fj)return this.ja[b]=c,Pj(this,1,b),!0;break;case Rj:return this.ja[b]=c,!0}return!1};l.Rb=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};l.Qb=function(a){return a?this.save():!0};
|
||||
l.reset=function(a){var b;Sj(this);this.D=Array(this.za);for(b=0;b<this.za;b++)Tj(this,b);this.ac=Array(this.ka);Uj(this,Vj,Wj);1<this.ka&&Uj(this,Xj,Yj);this.fa=this.ua=null;this.pa=Array((this.ca|0)==Mj?6:3);for(b=0;b<this.pa.length;b++)Zj(this,b);this.ia=this.Ca=this.H=this.xa=null;this.da=Kf;this.ca==Fj&&(this.ba=0);if(this.ca>=Gf){this.F=ak;this.J=0;this.I=bk;this.qa=0;this.K=ck|dk;512<=ek(this)&&(this.K|=fk);+gk(this,zj,void 0)==hk&&(this.K|=ik);(this.ca|0)==Mj&&(this.K=this.K|jk|kk);this.ra=
|
||||
lk|mk;this.G=Array(8);this.W=0;a&&(this.A=Array(nk));ok(this,this.Sa);for(a=pk;a<=qk;a++)this.A[a]=0;for(a=rk;a<sk;a++)void 0===this.A[a]&&(this.A[a]=0);a=0|+gk(this,zj,void 0)<<tk.Zf&tk.hc;a|=+gk(this,Bj,void 0)?uk:0;b=+gk(this,yj,void 0);a|=b?b-1<<vk.Zf&vk.hc|vk.Yj:0;this.A[wk]=a;this.A[xk]=yk(this,0)<<4|yk(this,1);zk(this)}};
|
||||
function ok(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.qb("CMOS date invalid ("+b+"), using "+c)):b&&a.qb("CMOS date: "+c);a.A[Ak]=c.getSeconds();a.A[Bk]=0;a.A[Ck]=c.getMinutes();a.A[Dk]=0;a.A[Ek]=c.getHours();a.A[Fk]=0;a.A[Gk]=c.getDay()+1;a.A[Hk]=c.getDate();a.A[Ik]=c.getMonth()+1;b=c.getFullYear();a.A[Jk]=b%100;b/=100;a.A[Kk]=b%10|b/10<<4;a.A[Lk]=38;a.A[ed]=Mk;a.A[Nk]=0;a.A[Ok]=Pk;a.ma=a.X=0;a.Qa=a.Aa=null}
|
||||
function Qk(a){var b=a.Aa;a.X=Xc(a.R,a.M)+b;a.A[ed]&fd&&Vc(a.R,b)}function zk(a){for(var b=0,c=xk;c<sk;c++)b+=a.A[c];a.A[Rk]=b&255;a.A[sk]=b>>8}
|
||||
l.save=function(){var a=new Qe(this);a.set(0,[this.B]);for(var b=[],c=0;c<this.D;c++){for(var d=this.D[c],e=d,f=[],g=0;g<e.Tb.length;g++){var h=e.Tb[g];f[g]=[h.Nd,h.qf,h.cc,h.hb,h.ib,h.mode,h.sf,h.tn,h.un]}b[c]=[d.Fb,d.dg,d.Wh,d.Ib,f,d.fg]}a.set(1,[b]);b=[];for(c=0;c<this.ac.length;c++)d=this.ac[c],b[c]=[d.Ne,d.Kc,d.ld,d.Xc,d.Ub,d.xc,d.Hd,d.Ge];a.set(2,[b]);b=[];for(c=0;c<this.pa.length;c++)d=this.pa[c],b[c]=[d.cc,d.zc,d.ib,d.Id,d.gg,d.mode,d.cf,d.Zc,d.hd,d.Lc,d.je,d.Ld,d.kd,d.Fb,d.oe];a.set(3,[this.ua,
|
||||
b,this.fa]);a.set(4,[this.xa,this.H,this.Ca,this.ia,this.da]);this.ca>=Gf&&(a.set(5,[this.F,this.J,this.I,this.qa,this.K,this.ra]),a.set(6,[this.G[7],this.G,this.W,this.A,this.ma,this.X]));return a.data()};
|
||||
l.restore=function(a){var b;var c=a[0];Array.isArray(c[0])?this.B=c[0]:(this.B[0][0]=c[0],this.B[1][0]=c[1]&15,this.B[0][1]=c[2],this.B[1][1]=c[3]&15);Sj(this);c=a[1];for(b=0;b<this.za;b++)Tj(this,b,1==c.length?c[0][b]:c);c=a[2];for(b=0;b<this.ka;b++)Uj(this,b,0===b?Wj:Yj,c[0][b]);c=a[3];this.ua=c[0];this.fa=c[2];for(b=0;b<this.pa.length;b++)Zj(this,b,c[1][b]);c=a[4];this.xa=c[0];this.H=c[1];this.Ca=c[2];this.ia=c[3];this.da=c[4];if(c=a[5])this.F=c[0],this.J=c[1],this.I=c[2],this.qa=c[3],this.K=c[4],
|
||||
this.ra=c[5];if(c=a[6])this.G=c[1],this.G[7]=c[0],this.W=c[2],this.A=c[3],this.ma=c[4],this.X=c[5],ok(this);return!0};l.start=function(){Sk(this)};l.stop=function(){Sk(this)};function Tj(a,b,c){var d=a.D[b];d||(d={Tb:Array(4)});c=c&&5<=c.length?c:Tk;d.Fb=c[0];d.dg=c[1];d.Wh=c[2];d.Ib=c[3];d.Ml=b<<2;for(var e=0;e<d.Tb.length;e++)Uk(d,e,c[4][e]);d.fg=c[5]||0;a.D[b]=d}
|
||||
function Uk(a,b,c){var d=a.Tb[b];d||(d={qf:[0,0],cc:[0,0],hb:[0,0],ib:[0,0]});c=c&&8==c.length?c:Vk;d.Nd=c[0];d.qf[0]=c[1][0];d.qf[1]=c[1][1];d.cc[0]=c[2][0];d.cc[1]=c[2][1];d.hb[0]=c[3][0];d.hb[1]=c[3][1];d.ib[0]=c[4][0];d.ib[1]=c[4][1];d.mode=c[5];d.sf=c[6];d.controller=a;d.mi=b;Wk(d,c[8],c[9]);a.Tb[b]=d}function Wk(a,b,c,d){"string"==typeof b&&(b=mb(b));b&&(a.done=null,a.tn=b.id,a.un=c,a.zf=b,a.jg=b[c],a.Of=d)}
|
||||
function Uj(a,b,c,d){var e=a.ac[b];e||(e={Kc:[null,null,null,null]});d=d&&8==d.length?d:Xk;e.port=c;e.Ro=b<<3;e.Ne=d[0];e.Kc[0]=d[1][0];e.Kc[1]=d[1][1];e.Kc[2]=d[1][2];e.Kc[3]=d[1][3];e.ld=d[2];e.Xc=d[3];e.Ub=d[4];e.xc=d[5];e.Hd=d[6];e.Ge=d[7];a.ac[b]=e}
|
||||
function Zj(a,b,c){var d=a.pa[b];d||(d={cc:[0,0],zc:[0,0],ib:[0,0],Id:[0,0]});c=c&&13<=c.length?c:Yk;d.cc[0]=c[0][0];d.cc[1]=c[0][1];d.zc[0]=c[1][0];d.zc[1]=c[1][1];d.ib[0]=c[2][0];d.ib[1]=c[2][1];d.Id[0]=c[3][0];d.Id[1]=c[3][1];d.gg=c[4];d.mode=c[5];d.cf=c[6];d.Zc=c[7];d.hd=c[8];d.Lc=c[9];d.je=c[10];d.Ld=c[11];d.kd=c[12];d.Fb=c[13]||0;d.oe=c[14]||!1;a.pa[b]=d}
|
||||
function Pj(a,b,c){for(var d="",e=a.ja[c],f=1;8>=f;f++){var g="pcjs-bitCell";f||(g+=" pcjs-bitCellLeft");d+='<div id="'+(c+"-"+f)+'" class="'+g+'" data-value="0">'+f+"</div>\n"}e.innerHTML=d;Zk(a,b,c,!0)}function $k(a,b,c){if(b=(a=V[a.ca|0])&&a[b])for(var d in b)if(a=b[d],a.hc&1<<c)return a;return null}
|
||||
function gk(a,b,c){for(var d=null,e=V[a.ca]||V[a.ca|0]||V[Qj],f=0;f<e.length;f++){var g=e[f];if(g&&(g=g[b])){a=a.B[f][c?0:1]&g.hc;for(var h in g.Fc)if(g.Fc[h]==a&&(d=h,"number"==typeof+d))break;break}}return d}function yk(a,b){if(b<+gk(a,yj,void 0)){if(!a.L)return al;if(b<a.L.length)switch(a.L[b]){case 160:case 180:case 320:case 360:return al;case 720:return bl;case 1200:return cl;case 1440:return dl}}return el}function ek(a,b){return+gk(a,fl,b)+ +gk(a,gl,b)}
|
||||
function vj(a,b){if(a){b=0;for(var c=1,d=0;d<a.length;d++)"0"==a.charAt(d)&&(b|=c),c<<=1}return b}function xj(a,b,c,d){for(var e=V[a.ca]||V[a.ca|0]||V[Qj],f=0;f<e.length;f++){var g=e[f];if(g&&(g=g[b]))for(var h in g.Fc)if(h==c){a.B[f][d?0:1]&=~g.hc;a.B[f][d?0:1]|=g.Fc[h];return}}}function hl(a,b){a.setAttribute("data-value",b?"1":"0");a.style.color=b?"#ffffff":"#000000";a.style.backgroundColor=b?"#000000":"#ffffff"}function Sj(a){Zk(a,0,wj);Zk(a,1,Aj);il(a)}
|
||||
function Zk(a,b,c,d){if(c=a.ja[c]){d=d?a.B[b][0]:a.B[b][1]=a.B[b][0];c=jb(c,"pcjs-bitCell");for(var e=0;e<c.length;e++){var f=$k(a,b,e);c[e].setAttribute("title",f&&f.ed||"Reserved");hl(c[e],!(d&1<<e));c[e].onclick=function(a,b){return function(){var c="1"!=b.getAttribute("data-value");hl(b,c);var d=b.getAttribute("id").split("-"),e=1<<+d[1]-1;switch(d[0]){case wj:a.B[0][0]=a.B[0][0]&~e|(c?0:e);break;case Aj:a.B[1][0]=a.B[1][0]&~e|(c?0:e)}il(a)}}(a,c[e])}}}
|
||||
function il(a){var b=a.ja[Rj];if(null!=b){var c=""+(ek(a,!0)+"Kb");c+=", "+(+ +gk(a,Bj,!0)?"":"No ")+"FPU";c+=", "+{0:"Enhanced Color",1:"TV",2:"Color",3:"Monochrome"}[+gk(a,zj,!0)]+" Monitor";c+=", "+ +gk(a,yj,!0)+" Floppy Drives";if(null!=a.B[0][1]&&a.B[0][1]!=a.B[0][0]||null!=a.B[1][1]&&a.B[1][1]!=a.B[1][0])c+=" (Reset required)";b.textContent=c}}
|
||||
function jl(a,b,c){a=a.D[b];var d=a.Tb[c],e=d.hb[a.Ib];a.Ib^=1;b||c!=kl||a.Ib||(d.hb[0]++,255<d.hb[0]&&(d.hb[0]=0,d.hb[1]++,255<d.hb[1]&&(d.hb[1]=0)));return e}function ll(a,b,c,d){a=a.D[b];c=a.Tb[c];c.hb[a.Ib]=c.qf[a.Ib]=d;a.Ib^=1}function ml(a,b,c){a=a.D[b];var d=a.Tb[c],e=d.ib[a.Ib];a.Ib^=1;b||c!=kl||a.Ib||(d.ib[0]--,0>d.ib[0]&&(d.ib[0]=255,d.ib[1]--,0>d.ib[1]&&(d.ib[1]=255)));return e}function nl(a,b,c,d){a=a.D[b];c=a.Tb[c];c.ib[a.Ib]=c.cc[a.Ib]=d;a.Ib^=1}
|
||||
function ol(a,b){a=a.D[b];b=a.Fb|pl;a.Fb&=~ql;return b}function rl(a,b,c){a=a.D[b];b=c&3;a.Fb=a.Fb&~(16<<b)|(c&4)<<b+2;a.Wh=c}function sl(a,b,c){b=a.D[b];var d=c&tl,e=b.Tb[d];e.Nd=!!(c&ul);e.Nd||vl(a,b.Ml+d)}function wl(a,b){a=a.D[b];for(b=0;b<a.Tb.length;b++)Uk(a,b)}function xl(a,b,c){return a.D[b].Tb[c].sf}function yl(a,b,c,d){a.D[b].Tb[c].sf=d}function zl(a,b,c,d,e){Wk(a.D[b>>2].Tb[b&3],c,d,e)}function vl(a,b,c){b=a.D[b>>2].Tb[b&3];b.zf&&b.jg&&b.Of?(c&&(b.done=c),b.Nd||Al(a,b,!0)):c&&c(!0)}
|
||||
function Al(a,b,c){c&&(b.count=b.ib[1]<<8|b.ib[0],b.type=b.mode&Bl,b.gi=b.Af=!1);for(var d=!1;0<=b.count&&(c=b.sf<<16|b.hb[1]<<8|b.hb[0],b.type==Cl?(d=!0,function(c){b.jg.call(b.zf,b.Of,-1,function(e,g){0>e&&(b.gi||(b.gi=!0),e=255);b.Nd||a.oa.Bb(c,e);(d=g)&&setTimeout(function(){Dl(b)||Al(a,b)},0)})}(c)):b.type==El?(c=a.oa.Ia(c),0>b.jg.call(b.zf,b.Of,c)&&(b.Af=!0)):b.type!=Fl&&(b.Af=!0)),!d&&!Dl(b););}
|
||||
function Dl(a){if(!a.Af&&0<=--a.count&&(a.mode&Gl?(a.hb[0]--,0>a.hb[0]&&(a.hb[0]=255,a.hb[1]--,0>a.hb[1]&&(a.hb[1]=255))):(a.hb[0]++,255<a.hb[0]&&(a.hb[0]=0,a.hb[1]++,255<a.hb[1]&&(a.hb[1]=0))),!a.Nd))return!1;var b=a.controller;b.Fb=b.Fb&~(16<<a.mi)|1<<a.mi;a.mode&Hl||(a.Nd=!0,a.zf=a.Of=null);a.done&&(a.done(!a.Af),a.done=null);return!0}function Il(a,b){var c=0;a=a.ac[b];if(null!=a.Ge)switch(a.Ge&Jl){case Kl:c=a.Ub;break;case Ll:c=a.xc}return c}
|
||||
function Ml(a,b,c){b=a.ac[b];if(c&Nl)b.ld=0,b.Kc[b.ld++]=c,b.Xc=0,b.Hd=7,b.Ub=b.xc=0,b.Ge=Ol|Kl;else if(c&Ol)b.Ge=c;else{var d=c&Pl;if(d&Ql){var e=0;if((d&Rl)==Rl)c&=Sl,e=1<<c;else for(c=b.Hd+1;;){c&=7;d=1<<c;if(b.xc&d){e=d;break}if(c++==b.Hd)break}b.xc&e&&(b.xc&=~e,Tl(a))}else d==Ul&&(b.Hd=c&Sl)}}function Vl(a,b,c){var d=a.ac[b];d.ld<d.Kc.length?(d.Kc[d.ld++]=c,2==d.ld&&d.Kc[0]&Wl&&d.ld++,3!=d.ld||d.Kc[0]&Xl||d.ld++):(d.Xc=c,d=a.R,d.K|=4,Tl(a,b||253!=c?0:6))}
|
||||
function Jf(a,b,c){var d=a.ac[b>>3];b=1<<(b&7);d.Ub&b||(d.Ub|=b,d.Ne=c||0,Tl(a))}function Hf(a,b){var c=a.ac[b>>3];b=1<<(b&7);c.Ub&b&&(c.Ub&=~b,Tl(a))}function Tl(a,b){var c=-1;if(1<a.ka){var d=a.ac[1];c=~(d.xc|d.Xc)&d.Ub}d=a.ac[0];0<=c&&(d.Ub=c?d.Ub|1<<Yl:d.Ub&~(1<<Yl));c=~(d.xc|d.Xc)&d.Ub;a=a.R;a.U&&(a.Qa=c?a.Qa|1:a.Qa&-2);c&&b&&(d.Ne=b)}
|
||||
function zf(a,b){void 0===b&&(b=0);var c=-1,d=a.ac[b];if(d.Ne)c=-2,d.Ne--;else for(var e=d.Ub&((d.xc|d.Xc)^255),f=d.Hd+1;;){f&=7;var g=1<<f;if(d.xc&g)break;if(e&g){b||f!=Yl?c=d.Kc[1]+f:c=zf(a,1);0<=c&&(d.xc|=g,d.Ub&=~g);break}if(f++==d.Hd)break}return c}function Zl(a,b,c){var d=b?3:0;b=a.pa[d+c];b.oe?(a=b.Fb,b.oe=!1):(b.Zc==b.hd&&$l(a,d+c),b.je?(a=b.Id[b.Zc++],b.Zc==b.hd&&(b.je=!1)):(am(a,d+c),a=b.ib[b.Zc++]));return a}
|
||||
function bm(a,b,c,d){var e=b?3:0,f=a.pa[e+c];f.Zc==f.hd&&$l(a,e+c);f.cc[f.Zc++]=d;f.Zc==f.hd&&(f.Ld&&f.mode!=cm&&f.mode!=dm||(f.je=!1,f.ib[0]=f.zc[0]=f.cc[0],f.ib[1]=f.zc[1]=f.cc[1],f.kd=Xc(a.R,a.M),f.Ld=!0,f.Lc=f.mode!=cm,b==em&&c==fm&&(Hf(a,gm),d=hm(a,fm)*a.Ba|0,f.mode==dd&&(d>>=1),Vc(a.R,d))),b==em&&c==im&&Sk(a))}
|
||||
function jm(a,b,c){var d=0,e=c&km;b?(d=3,a.fa=c):a.ua=c;if(e==lm){if(!(c&mm))for(e=0;2>=e;e++)if(c&nm<<e){b=d+e;var f=a.pa[b];f.oe||(am(a,b),f.Fb=f.gg|f.mode|f.cf|(f.Zc<f.hd?om:0)|(f.Lc?pm:0),f.oe=!0)}if(!(c&qm))for(e=0;2>=e;e++)c&nm<<e&&rm(a,d+e)}else{e>>=sm;f=c&tm;var g=c&um;c&=vm;if(c==wm)rm(a,d+e);else{d+=e;var h=a.pa[d];h.cf=c;h.mode=g;h.gg=f;h.cc=[0,0];h.ib=[0,0];h.Id=[0,0];h.Lc=!1;h.je=!1;h.Ld=!1;h.oe=!1;$l(a,d);b==em&&e==fm&&Hf(a,gm);b==em&&e==im&&255==a.ac[0].Xc&&a.H==(xm|ym|zm|Am)&&(e=a.pa[0],
|
||||
e.zc[0]=e.cc[0],e.zc[1]=e.cc[1],e.kd=Xc(a.R,a.M))}}}function hm(a,b){a=a.pa[b];(b=a.cc[1]<<8|a.cc[0])||(b=1==a.hd?256:65536);return b}function cd(a,b){a=a.pa[b];(b=a.zc[1]<<8|a.zc[0])||(b=1==a.hd?256:65536);return b}function rm(a,b){am(a,b);var c=a.pa[b];c.Id[0]=c.ib[0];c.Id[1]=c.ib[1];c.je=!0;$l(a,b)}function $l(a,b){a=a.pa[b];a.Zc=a.cf==Bm?1:0;a.hd=a.cf==Cm?2:1}
|
||||
function am(a,b,c){var d=a.pa[b];if(d.Ld&&(b!=im||a.H&xm)){var e=Xc(a.R,a.M),f=(e-d.kd)/a.Ba|0;0>f&&(d.kd=e,f=0);var g=hm(a,b),h=cd(a,b)-f;d.mode==cm?(0>=h&&(h=0),h||(d.Lc=!0,d.Ld=!1,b||Jf(a,gm))):d.mode==Dm?(d.Lc=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.zc[0]=h&255,d.zc[1]=h>>8&255,d.kd=e,!b&&d.Lc&&Jf(a,gm))):d.mode==dd&&(h-=f,0>=h&&(d.Lc=!d.Lc,h=g+h,0>=h&&(h=g),d.zc[0]=h&255,d.zc[1]=h>>8&255,d.kd=e,!b&&d.Lc&&Jf(a,gm)));d.ib[0]=h&255;d.ib[1]=h>>8&255;c&&(a.kd=0)}return d}
|
||||
function bd(a,b){for(var c=0;c<a.pa.length;c++)am(a,c,b);if(a.ca>=Gf){b=a.R.V.zd;c=Xc(a.R,a.M);null==a.Aa&&(a.ma=Xc(a.R,a.M),a.Qa=1024,a.Aa=Math.floor(a.R.V.zd/a.Qa),Qk(a));c>=a.X&&(a.A[Nk]|=Em,a.A[ed]&fd&&(a.A[Nk]|=Fm,Jf(a,Gm)),a.X=c+a.Aa);a.A[Ak]==a.A[Bk]&&a.A[Ck]==a.A[Dk]&&a.A[Ek]==a.A[Fk]&&(a.A[Nk]|=Hm,a.A[ed]&Im&&(a.A[Nk]|=Fm,Jf(a,Gm)));var d=c-a.ma,e=Math.floor(d/b);if(e&&!(a.A[ed]&Jm)){for(;e--;)if(60<=++a.A[Ak]&&(a.A[Ak]=0,60<=++a.A[Ck]&&(a.A[Ck]=0,24<=++a.A[Ek]))){a.A[Ek]=0;a.A[Gk]=a.A[Gk]%
|
||||
7+1;var f=a.A[Jk];var g=Ca[a.A[Ik]-1];28==g&&0===f%4&&(f%100||0===f%400)&&g++;f=g;++a.A[Hk]>f&&(a.A[Hk]=1,12<++a.A[Ik]&&(a.A[Ik]=1,a.A[Jk]=(a.A[Jk]+1)%100))}a.A[Lk]|=Km;a.A[Nk]|=Lm;a.A[ed]&Mm&&(a.A[Nk]|=Fm,Jf(a,Gm))}a.ma=c-d%b}}l.ml=function(){var a=this.xa;this.ia&Nm&&(this.H&Om?a=this.B[0][1]:this.C&&(a=Tm(this.C)));return a};l.Nm=function(a,b){this.xa=b};l.nl=function(){return this.H};l.Om=function(a,b){Um(this,b)};
|
||||
function Um(a,b){var c=!!(b&Vm),d=!!(a.H&Vm);a.H=b;a.C&&Wm(a.C,!(b&Om),!!(b&Am));c!=d&&Sk(a,c)}l.ol=function(){var a=0;a=(this.ca|0)==Qj?this.H&ym?a|this.B[1][1]&Xm:a|this.B[1][1]>>4&1:this.H&Ym?a|this.B[0][1]>>4:a|this.B[0][1]&15;this.H&xm&&am(this,im).Lc&&(a=this.H&Vm?a|Zm:a|$m);return a};l.Pm=function(a,b){this.Ca=b};l.pl=function(){return this.ia};l.Qm=function(a,b){this.ia=b};l.uk=function(){var a=this.C?Tm(this.C):0;this.ba&=~an;return a};l.Vl=function(){};l.tk=function(){return this.H};
|
||||
l.Ul=function(a,b){Um(this,b)};l.vk=function(){return this.ba};l.wk=function(){var a=this.qa;this.F&=~(an|bn);this.C&&cn(this.C);return a};l.Xl=function(a,b){if(this.F&dn)switch(this.J){case en:fn(this,b);break;case gn:hn(this,b);break;default:if(fn(this,this.I&~bk),this.C){a=this.C;var c=b,d=-1;switch(a.F||c){case jn:d=kn;a.Pb=[];ln(a,mn);break;case nn:a.F&&(c=0);ln(a,kn);a.F=c;break;case on:a.F&&(c=0),ln(a,kn),a.F=c}pn(this,d)}}this.J=b;this.F&=~dn};
|
||||
l.xk=function(){return this.H&~(qn|rn)|(Xc(this.R)&64?rn:0)};l.Yl=function(a,b){Um(this,b)};l.yk=function(){var a=this.F&255;this.F&bn&&(this.F|=an,this.F&=~bn);return a};
|
||||
l.Wl=function(a,b){this.J=b;this.F|=dn;a=0;this.J>=sn&&(a=this.J^15,this.J=sn);switch(this.J){case tn:pn(this,this.I);break;case un:fn(this,this.I|bk);break;case vn:fn(this,this.I&~bk);this.C&&cn(this.C);break;case wn:this.C&&(this.C.Pb=[]);fn(this,this.I|bk);pn(this,xn);hn(this,lk|mk);break;case yn:pn(this,zn);break;case An:pn(this,this.K);break;case Bn:pn(this,this.ra);break;case Cn:pn(this,this.I&bk?0:Dn);break;case sn:a&1&&ke(this.R)}};
|
||||
function fn(a,b){a.I=b;a.F=a.F&~En|b&Fn;a.C&&Wm(a.C,!!(b&Gn),!(b&bk))}function pn(a,b,c){0<=b&&(a.qa=b,c?a.F|=an:(a.F&=~an,a.F|=bn))}function hn(a,b){a.ra=b;Pb(a.oa,!!(b&mk));b&lk||ke(a.R)}function Hn(a,b){a.ca<Gf?(Jf(a,In,4),a.ba|=an):a.I&bk||a.F&(an|bn)||(pn(a,b,!0),Jn(a.C),Jf(a,In,120))}l.Qk=function(){return this.W};l.pm=function(a,b){this.W=b;this.da=b&Kn?Kf:Ln};
|
||||
l.Rk=function(a,b){a=this.W&Mn;if(a<=Ok){var c=this.A[a];if(a<Lk){var d=!1;a!=Ek&&a!=Fk||this.A[ed]&Mk||(12>c?c=c?c:12:c=(c-=12)?c+128:140,d=!0);this.A[ed]&Nn||(d&&128<c&&(c-=48),c=c%10|c/10<<4)}else a==Lk&&(this.A[a]&=~Km)}else c=this.A[a];null!=b&&a==Nk&&(this.A[a]&=On,c&Fm&&Hf(this,Gm),c&Em&&this.A[ed]&fd&&Qk(this));return c};
|
||||
l.qm=function(a,b){a=this.W&Mn;var c=b^this.A[a];if(a<=Ok){var d=b;if(a<Lk){var e=!1;this.A[ed]&Nn||(d=10*(d>>4)+(d&15),e=!0);if(a==Ek||a==Fk)e&&23<d&&(d+=48),this.A[ed]&Mk||(12>=d?d=12==d?0:d:(d-=116,d=24==d?12:d))}}else d=b;this.A[a]=d;a==ed&&c&fd&&b&fd&&Qk(this)};l.Aj=function(a,b){this.da=b};l.Am=function(){};l.Bm=function(){this.rd&&Cf(this.rd)};
|
||||
function Sk(a,b){if(a.N){void 0!==b?a.La=b:b=!!(a.La&&a.R&&a.R.Y.cb);var c=Math.round(Cj/hm(a,im));if(20>c||2E4<c)b=!1;b&&Pn(a)?(a.U.frequency.setValueAtTime(c,0),a.aa.gain.value=a.Ga):a.aa&&(a.aa.gain.value=0)}}
|
||||
function Pn(a,b){if(a.N){if(b){if(a.Ma)return!0;a.U=null;a.Ma=!0}if(a.U)return!0;try{if(a.U=a.N.createOscillator(),"start"in a.U)return a.aa=a.N.createGain(),a.U.connect(a.aa),a.aa.connect(a.N.destination),a.aa.gain.value=0,a.U.type="square",a.U.start(0),!0}catch(c){a.wa("AudioContext exception: "+c.message),a.N=null}}return!1}var Qj=5150,uj=5150.9,Gf=5170,Fj=5160.101,Mj=5180,tj={5150:Qj,5160:5160,5170:Gf,att6300:Fj,mpc1600:5150.101,z150:5160.15,compaq:5150.102,other:uj};tj.deskpro386=Mj;
|
||||
var wj="sw1",Aj="sw2",Rj="swdesc",hk=3,pl=1,ql=15,tl=3,ul=4,Bl=12,Fl=0,Cl=4,El=8,Hl=16,Gl=32,kl=0,Vj=0,Wj=32,Xj=1,Yj=160,Nl=16,Xl=1,Wl=2,Sl=7,Pl=224,Ql=32,Rl=96,Ul=192,Ol=8,Kl=2,Ll=3,Jl=3,gm=0,In=1,Yl=2,Gm=8,If=13,em=0,fm=0,im=2,tm=1,um=14,cm=0,Dm=4,dd=6,dm=8,vm=48,wm=0,Bm=32,Cm=48,km=192,lm=192,sm=6,nm=2,mm=16,qm=32,om=64,pm=128,Cj=1193181,xm=1,Vm=2,ym=4,zm=8,Ym=8,Am=64,Om=128,Xm=15,$m=16,Zm=32,Nm=16,vk={Yj:1,ONE:0,Ho:64,Fo:128,wo:192,hc:192,Zf:6},uk=2,tk={Go:16,Tn:32,xo:48,hc:48,Zf:4},yj=1,Bj=3,
|
||||
zj=4,fl=5,gl=6,V={};V[Qj]=[{},{}];V[Qj][0][yj]={hc:192,Fc:{1:0,2:64,3:128,4:192},ed:"Number of Floppy Drives"};V[Qj][0][Bj]={hc:2,Fc:{0:0,1:2},ed:"FPU"};V[Qj][0][zj]={hc:48,Fc:{0:0,1:16,2:32,3:48,none:0,tv:16,color:32,cga:32,mda:48,mono:48,ega:0,vga:0},ed:"Monitor Type"};V[Qj][0][fl]={hc:12,Fc:{16:0,32:4,48:8,64:12},ed:"Base Memory (16Kb Increments)"};V[Qj][1][gl]={hc:31,Fc:{0:0,32:1,64:2,96:3,128:4,160:5,192:6,224:7,256:8,288:9,320:10,352:11,384:12,416:13,448:14,480:15,512:16,544:17,576:18},ed:"Expansion Memory (32Kb Increments)"};
|
||||
V[5160]=[{},{}];V[5160][0][yj]=V[Qj][0][yj];V[5160][0][Bj]=V[Qj][0][Bj];V[5160][0][zj]=V[Qj][0][zj];V[5160][0][fl]={hc:12,Fc:{64:0,128:4,192:8,256:12},ed:"Base Memory (64Kb Increments)"};V[5160][1][gl]=V[Qj][1][gl];V[Fj]=[{},{}];V[Fj][0][fl]={hc:143,Fc:{128:1,256:130,512:8,640:141},ed:"Base Memory (128Kb Increments)"};V[Fj][0][Bj]={hc:16,Fc:{0:0,1:16},ed:"FPU"};V[Fj][1][2]={hc:1,Fc:{0:0,1:1},ed:"Floppy Type"};V[Fj][1][yj]=V[Qj][0][yj];V[Fj][1][zj]=V[Qj][0][zj];
|
||||
var Fn=4,Gn=8,bk=16,xn=85,zn=0,jk=4,kk=8,fk=16,ck=32,ik=64,dk=128,lk=1,mk=2,Dn=1,rn=16,qn=192,tn=32,en=96,wn=170,yn=171,un=173,vn=174,An=192,Bn=208,gn=209,Cn=224,sn=240,an=1,En=4,dn=8,ak=16,bn=256,Ak=0,Bk=1,Ck=2,Dk=3,Ek=4,Fk=5,Gk=6,Hk=7,Ik=8,Jk=9,Lk=10,ed=11,Nk=12,Ok=13,rk=14,xk=16,wk=20,pk=21,qk=24,sk=46,Rk=47,Kk=50,Mn=63,nk=64,Kn=128,Km=128,Jm=128,fd=64,Im=32,Mm=16,Nn=4,Mk=2,Fm=128,Em=64,Hm=32,Lm=16,On=15,Pk=128,el=0,al=1,cl=2,bl=3,dl=4,Ln=128,Kf=0,Tk=[0,null,null,0,Array(4),0],Vk=[!0,[0,0],[0,
|
||||
0],[0,0],[0,0]],Xk=[0,Array(4)],Yk=[[0,0],[0,0],[0,0],[0,0]],Dj={0:function(){return jl(this,0,0)},1:function(){return ml(this,0,0)},2:function(){return jl(this,0,1)},3:function(){return ml(this,0,1)},4:function(){return jl(this,0,2)},5:function(){return ml(this,0,2)},6:function(){return jl(this,0,3)},7:function(){return ml(this,0,3)},8:function(){return ol(this,0)},13:function(){return this.D[0].fg},32:function(){return Il(this,Vj)},33:function(){return this.ac[Vj].Xc},64:function(){return Zl(this,
|
||||
em,fm)},65:function(){return Zl(this,em,1)},66:function(){return Zl(this,em,im)},67:function(){return em?this.fa:this.ua},129:function(){return xl(this,0,2)},130:function(){return xl(this,0,3)},131:function(){return xl(this,0,1)},135:function(){return xl(this,0,0)}},Gj={96:U.prototype.ml,97:U.prototype.nl,98:U.prototype.ol,99:U.prototype.pl},Kj={96:U.prototype.wk,97:U.prototype.xk,100:U.prototype.yk,112:U.prototype.Qk,113:U.prototype.Rk,128:function(){return this.G[7]},132:function(){return this.G[0]},
|
||||
133:function(){return this.G[1]},134:function(){return this.G[2]},136:function(){return this.G[3]},137:function(){return xl(this,1,2)},138:function(){return xl(this,1,3)},139:function(){return xl(this,1,1)},140:function(){return this.G[4]},141:function(){return this.G[5]},142:function(){return this.G[6]},143:function(){return xl(this,1,0)},160:function(){return Il(this,Xj)},161:function(){return this.ac[Xj].Xc},192:function(){return jl(this,1,0)},194:function(){return ml(this,1,0)},196:function(){return jl(this,
|
||||
1,1)},198:function(){return ml(this,1,1)},200:function(){return jl(this,1,2)},202:function(){return ml(this,1,2)},204:function(){return jl(this,1,3)},206:function(){return ml(this,1,3)},208:function(){return ol(this,1)},218:function(){return this.D[1].fg}},Ij={96:U.prototype.uk,97:U.prototype.tk,100:U.prototype.vk,102:function(){return this.B[0][1]},103:function(){return this.B[1][1]}},Nj={72:function(){return Zl(this,1,0)},73:function(){return Zl(this,1,1)},74:function(){return Zl(this,1,2)},75:function(){return this.fa}},
|
||||
Ej={0:function(a,b){ll(this,0,0,b)},1:function(a,b){nl(this,0,0,b)},2:function(a,b){ll(this,0,1,b)},3:function(a,b){nl(this,0,1,b)},4:function(a,b){ll(this,0,2,b)},5:function(a,b){nl(this,0,2,b)},6:function(a,b){ll(this,0,3,b)},7:function(a,b){nl(this,0,3,b)},8:function(a,b){this.D[0].dg=b},9:function(a,b){rl(this,0,b)},10:function(a,b){sl(this,0,b)},11:function(a,b){this.D[0].Tb[b&3].mode=b},12:function(){this.D[0].Ib=0},13:function(){wl(this,0)},32:function(a,b){Ml(this,Vj,b)},33:function(a,b){Vl(this,
|
||||
Vj,b)},64:function(a,b){bm(this,em,fm,b)},65:function(a,b){bm(this,em,1,b)},66:function(a,b){bm(this,em,im,b)},67:function(a,b){jm(this,em,b)},129:function(a,b){yl(this,0,2,b)},130:function(a,b){yl(this,0,3,b)},131:function(a,b){yl(this,0,1,b)},135:function(a,b){yl(this,0,0,b)}},Hj={96:U.prototype.Nm,97:U.prototype.Om,98:U.prototype.Pm,99:U.prototype.Qm,160:U.prototype.Aj},Lj={96:U.prototype.Xl,97:U.prototype.Yl,100:U.prototype.Wl,112:U.prototype.pm,113:U.prototype.qm,128:function(a,b){this.G[7]=
|
||||
b},132:function(a,b){this.G[0]=b},133:function(a,b){this.G[1]=b},134:function(a,b){this.G[2]=b},136:function(a,b){this.G[3]=b},137:function(a,b){yl(this,1,2,b)},138:function(a,b){yl(this,1,3,b)},139:function(a,b){yl(this,1,1,b)},140:function(a,b){this.G[4]=b},141:function(a,b){this.G[5]=b},142:function(a,b){this.G[6]=b},143:function(a,b){yl(this,1,0,b)},160:function(a,b){Ml(this,Xj,b)},161:function(a,b){Vl(this,Xj,b)},192:function(a,b){ll(this,1,0,b)},194:function(a,b){nl(this,1,0,b)},196:function(a,
|
||||
b){ll(this,1,1,b)},198:function(a,b){nl(this,1,1,b)},200:function(a,b){ll(this,1,2,b)},202:function(a,b){nl(this,1,2,b)},204:function(a,b){ll(this,1,3,b)},206:function(a,b){nl(this,1,3,b)},208:function(a,b){this.D[1].dg=b},210:function(a,b){rl(this,1,b)},212:function(a,b){sl(this,1,b)},214:function(a,b){this.D[1].Tb[b&3].mode=b},216:function(){this.D[1].Ib=0},218:function(){wl(this,1)},240:U.prototype.Am,241:U.prototype.Bm},Jj={96:U.prototype.Vl,97:U.prototype.Ul,160:U.prototype.Aj},Oj={72:function(a,
|
||||
b){bm(this,1,0,b)},73:function(a,b){bm(this,1,1,b)},74:function(a,b){bm(this,1,2,b)},75:function(a,b){jm(this,1,b)}};Sa(function(){for(var a=jb(document,"pcx86","chipset"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new U(d);ib(d,c);il(d)}});
|
||||
function Qn(a){u.call(this,"ROM",a);this.A=null;this.G=a.addr;this.C=a.size;this.F=a.alias;this.B=a.notify;this.I=null;if(this.B){var b=this.B.indexOf("[");if(0<b){try{this.I=eval(this.B.substr(b))}catch(c){}this.B=this.B.substr(0,b)}}if(this.D=this.J=a.file)a=ta(sa(this.D)),"json"!=a&&"hex"!=a&&(this.D=Fa()+"/api/v1/dump?file="+this.J+"&format=bytes&decimal=true")}ja(Qn,u);
|
||||
Qn.prototype.jc=function(a,b,c,d){this.na=a;this.oa=b;this.R=c;this.Ea=d;if(this.D){var e=this,f="Loading "+this.D+"...";Ea(this.D,null,!0,function(a,b,c){Rn(e,a,b,c)},function(){e.qb(f,tb)})}};Qn.prototype.Rb=function(){this.H&&(this.Ea&&this.Ea.A(this.id,0,this.G>>>4,0,this.G,this.C,this.H),delete this.H);return!0};Qn.prototype.Qb=function(){return!0};
|
||||
function Rn(a,b,c,d){if(d)a.wa("Unable to load system ROM (error "+d+": "+b+")",0>d);else{ab(a.Dd,b,c);if("["==c.charAt(0)||"{"==c.charAt(0))try{var e=eval("("+c+")"),f=e.bytes,g=e.longs||e.data;if(f)a.A=f;else if(g)for(a.A=Array(4*g.length),d=c=0;c<g.length;c++)a.A[d++]=g[c]&255,a.A[d++]=g[c]>>8&255,a.A[d++]=g[c]>>16&255,a.A[d++]=g[c]>>24&255;else a.A=e;a.H=e.symbols;if(!a.A.length){q("Empty ROM: "+b);return}if(1==a.A.length){q(a.A[0]);return}}catch(h){a.wa("ROM data error: "+h.message);return}else for(b=
|
||||
c.replace(/\n/gm," ").replace(/ +$/,"").split(" "),a.A=Array(b.length),e=0;e<b.length;e++)a.A[e]=qa(b[e],16);Sn(a)}}
|
||||
function Sn(a){if(!vb(a))if(!a.J)v(a);else if(a.A&&a.oa){a.C||(a.C=a.A.length);if(a.A.length!=a.C)ub(a,"ROM size ("+ra(a.A.length,8,!0)+") does not match specified size ("+ra(a.C,8,!0)+")");else{var b=a.G;if(Qb(a.oa,b,a.C,cc)){for(var c=0;c<a.A.length;c++){var d=a.oa,e=b+c;d.X[(e&d.D)>>>d.B].df(e&d.C,a.A[c]&255,e)}b=!0}else b=!1;if(b){b=[];"number"==typeof a.F?b.push(a.F):null!=a.F&&a.F.length&&(b=a.F);for(c=0;c<b.length;c++){d=a;e=b[c];var f=Xb(d.oa,d.G,d.C);Wb(d.oa,e,d.C,f)}a.B&&((b=mb(a.B,a.id))?
|
||||
(c=a.A,d=a.I,b.Oa==Tn?Un(b,c,d||[12640,8752],8):b.Oa==Vn&&Un(b,c,d||[14221,16269],8),v(b)):a.wa("Unable to find component: "+a.B));delete a.A}}v(a)}}Sa(function(){for(var a=jb(document,"pcx86","rom"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Qn(d);ib(d,c)}});function Wn(a){u.call(this,"RAM",a);this.B=a.addr;this.A=a.size;this.F=a.test;this.D=!!this.A;this.C=!1}ja(Wn,u);l=Wn.prototype;l.jc=function(a,b,c,d){this.oa=b;this.R=c;this.Ea=d;this.U=Ab(a,"ChipSet");v(this)};
|
||||
l.Rb=function(a,b){return!b&&(this.reset(),a&&this.controller&&!this.restore(a))?!1:!0};l.Qb=function(a){return a&&this.controller?this.save():!0};
|
||||
l.reset=function(){if(!this.B&&!this.D&&this.U){var a=1024*ek(this.U);this.A&&a!=this.A&&(ac(this.oa,this.B,this.A),this.C=!1);this.A=a}!this.C&&this.A&&Qb(this.oa,this.B,this.A,1)&&(this.C=!0,"ramCPQ"==this.Be&&(this.controller=new Xn(this),Qb(this.oa,Yn,4,4,this.controller)));if(this.C){if(this.F||ic(this.oa,1138,4660),"ramCPQ"!=this.Be&&this.U&&(a=this.U,a.A)){var b=1048576>this.B?pk:23,c=a.A[b]|a.A[b+1]<<8;c+=this.A>>10;a.A[b]=c&255;a.A[b+1]=c>>8;zk(a)}}else q("No RAM allocated")};
|
||||
l.save=function(){var a=new Qe(this);this.controller&&a.set(0,this.controller.save());return a.data()};l.restore=function(a){return this.controller?this.controller.restore(a[0]):!0};function Xn(a){this.F=a;this.C=Zn;this.D=$n;this.B=ao;this.A=null}l=Xn.prototype;l.save=function(){return[this.C,this.B]};l.restore=function(a){this.Bb(0,a[0]&255);this.Bb(2,a[1]&255);return!0};l.Ia=function(a){var b=255;2>a?b=a&1?this.D>>8:this.D&255:4>a&&(b=a&1?this.B>>8:this.B&255);return b};
|
||||
l.Bb=function(a,b){if(a)2==a&&(this.B=this.B&-256|b);else if(b!=(this.C&255)){a=this.F.oa;if(b&bo)this.A&&(Wb(a,co,eo,this.A),this.A=null);else{this.A||(this.A=Xb(a,co,eo));var c=Xb(a,fo,eo);Wb(a,co,eo,c,b&go?1:cc)}this.C=this.C&-256|b}};l.ki=function(){return ho};l.kg=function(){return io};var Yn=-2134900736,fo=16646144,co=917504,eo=131072,bo=1,go=2,Zn=65535,$n=2575,ao=2,ho=[null,0],io=[function(a){return this.controller.Ia(a)},null,null,function(a,b){this.controller.Bb(a,b)},null,null];
|
||||
Sa(function(){for(var a=jb(document,"pcx86","ram"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Wn(d);ib(d,c)}});function jo(a){u.call(this,"Keyboard",a);ko(this,a.model);this.da=La("Mobi");this.ba=La("MSIE");this.X=0;this.aa=this.ig=!1;this.A=[];this.ia=50;this.W=0;this.D=null;this.G=a.autoType;this.M=!1;this.J=this.K=null;this.exports={type:this.lg,wait:this.zn};v(this)}ja(jo,u);l=jo.prototype;
|
||||
l.Ab=function(a,b,c,d){var e=this,f=a+"-"+b;if(void 0===this.ja[f])switch(b){case "kbd":case "screen":return c.onkeydown=function(a){return lo(e,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(mo(e.na)){e.B="";var b=!W[a]||!!(e.Vb&no);b||oo(e,a,!0);a=b}else a=!1;return a},c.onkeyup=function(a){return lo(e,a,!1)},!0;case "caps-lock":return this.ja[f]=c,c.onclick=function(a){a.preventDefault();e.na&&Yc(e.na);oo(e,po,!0)},!0;case "num-lock":return this.ja[f]=c,c.onclick=function(a){a.preventDefault();
|
||||
e.na&&Yc(e.na);oo(e,qo,!0)},!0;case "scroll-lock":return this.ja[f]=c,c.onclick=function(a){a.preventDefault();e.na&&Yc(e.na);oo(e,ro,!0)},!0;default:var g=b.toUpperCase().replace(/-/g,"_");if(void 0!==so[g]&&"button"==a)return this.ja[f]=c,c.onclick=function(a,b,c){return function(b){b.preventDefault();a.na&&Yc(a.na);a.B="";to(a,c,!0);oo(a,c,!0)}}(this,g,so[g]),!0;if(void 0!==uo[b])return this.X++,this.ja[f]=c,a=function(a,b,c){return function(b){b.preventDefault();a.na&&Yc(a.na);a.B="";oo(a,c)}}(this,
|
||||
b,uo[b]),b=function(a,b,c){return function(){vo(a,c)}}(this,b,uo[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0;if(d)return this.ja[f]=c,c.onclick=function(a){a.preventDefault();e.na&&Yc(e.na);return e.lg(d)},!0}return!1};
|
||||
function wo(a,b,c){if(a.X){for(var d in p)if(b==p[d]){b=+d;(d=pa[d])&&(b=d);break}for(var e in uo)if((d=uo[e]==b)||(d=b,d>=n.fd&&d<=n.z&&(d-=n.fd-n.Fd),d=uo[e]==d),d){(a=a.ja["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}}l.jc=function(a,b,c,d){this.na=a;this.oa=b;this.R=c;this.Ea=d;var e=this;this.ka=Nc(this.R,this.id+".inject",function(){xo(e)});this.U=Ab(a,"ChipSet");this.G=Mc(a,"autoType")||this.G;Me(c,33,this.El.bind(this))};
|
||||
l.El=function(){if(10==(this.R.F>>8&255))if(this.M=!0,this.J)this.J(),this.J=null,this.M=!1;else{var a=this.G;!this.D&&a&&(this.D=a,this.lg(this.D))}return!0};function ko(a,b){var c=0;a.ca=null;"string"==typeof b&&(a.ca=b.toUpperCase(),c=yo.indexOf(a.ca),0>c&&(c=0));if(b=yo[c])a.fa=parseInt(b.substr(2),10)}function Wm(a,b,c){a.L!==c&&(a.L=a.N=c)&&(a.H=!0);a.I!==b&&(a.I=b)&&!a.N&&Jn(a,!0);a.I&&a.N&&(a.Pb=[],ln(a,mn),a.N=!1)}function ln(a,b){a.U&&(a.Pb.unshift(b),a.H=!0,Hn(a.U,b))}
|
||||
function cn(a){if(a.Pb.length&&a.H){var b=a.Pb[0];a.U&&Hn(a.U,b)}}function Tm(a){var b=0;a.Pb.length&&(b=a.Pb[0]);return b}function Jn(a,b){0<a.Pb.length&&(a.Pb.shift(),(a.H=b)&&a.Pb.length&&a.U&&Hn(a.U,a.Pb[0]))}l.Rb=function(a,b){return!b&&(this.reset(),a&&this.restore&&!this.restore(a))?!1:!0};l.Qb=function(a){return a?this.save():!0};l.reset=function(){if(!this.ca&&this.U)switch(this.U.ca){case Qj:case 5160:ko(this,yo[0]);break;default:ko(this,yo[1])}zo(this)};
|
||||
l.save=function(){var a=new Qe(this),b=[];b[0]=this.L;b[1]=this.I;a.set(0,b);return a.data()};l.restore=function(a){return zo(this,a[0])};function zo(a,b){var c=0;b?a.D=a.G:(b=[],a.D=null);a.L=b[c++];a.I=b[c];a.F=0;a.Vb=a.C=0;a.Pb=[];a.H=!0;a.B="";return!0}
|
||||
l.lg=function(a,b){if(a&&!this.B){if(a){for(var c,d=/(?:^|[^$])\$([a-z]+)/g;c=d.exec(a);){switch(c[1]){case "date":var e=za("n-j-Y");break;case "time":e=za("h:i:s");break;default:continue}a=a.replace("$"+c[1],e)}a=a.replace(/\$\$/g,"$$")}this.B=a;this.W=b||150;xo(this);return!0}return!1};
|
||||
function xo(a){for(var b=0;0<a.B.length&&!b;)if(b=a.B.charAt(0),a.B=a.B.substr(1),b=b.charCodeAt(0),240<=b){a.W=100*(b-240)||150;b=0;break}b&&(10==b&&(b=13),oo(a,b,!0));a.B.length?Zc(a.R,a.ka,a.W):a.K&&(a.K(),a.K=null)}l.zn=function(a,b){var c=!1;switch(b){case "DOS":this.M?c=!0:this.J=a;break;default:this.B.length?this.K=a:c=!0}return c};
|
||||
function to(a,b,c,d){if(W[b]){var e=Math.floor(b/1E3)&2;if(b=Ao[b]||0){!e||b&Bo||(b>>=1);if(b&Co){if(!1===d)return!0;d=null}null==d?d=!((c?a.C:a.Vb)&b):d||b&Do&&(b=Do);if(c){a.C&=~b;d&&(a.C|=b);c=b;var f,g;for(g in Eo)d="led-"+g,e=Eo[g],c&&c!=e||!(f=a.ja[d])||(f.style.backgroundColor=a.C&e?"#00ff00":"#000000")}else a.Vb&=~b,d&&(a.Vb|=b);return!0}}return!1}
|
||||
function oo(a,b,c){if((W[b]||W[b+=1E3])&&a.R&&a.R.Y.cb){Ao[b]&&a.A.length&&0<a.A[0].bd&&(a.A[0].bd=0);for(var d,e=0;e<a.A.length;e++)if(d=a.A[e],d.Xd==b){if(!c||0<=d.bd){e=-1;break}0<e&&(0<a.A[0].bd&&(a.A[0].bd=0),a.A.splice(e,1));break}0>e||(e==a.A.length&&(d={},d.Xd=b,d.Vb=a.Vb,wo(a,b,!0),e++),0<e&&a.A.splice(0,0,d),d.Ie=!0,d.bd=c?-1:Ao[b]?0:1,Fo(a,d))}}
|
||||
function vo(a,b,c){if(!W[b]||!(c||a.R&&a.R.Y.cb))return!1;for(var d=!1,e=0;e<a.A.length;e++){var f=a.A[e];if(f.Xd==b||f.Xd==p[b]){a.A.splice(e,1);f.mh&&clearTimeout(f.mh);f.Ie&&!c&&Go(a,f.Xd,!1);wo(a,b,!1);d=!0;break}}!a.A.length&&a.aa&&(to(a,po),a.aa=!1);return d}function Fo(a,b){if(!a.R||!a.R.Y.cb)vo(a,b.Xd,!0);else if(Go(a,b.Xd,b.Ie)&&b.bd){if(0>b.bd){if(!b.Ie){vo(a,b.Xd);return}b.Ie=!1;var c=a.ia}else c=1==b.bd++?500:100;b.mh=setTimeout(function(a){return function(){Fo(a,b)}}(a),c)}}
|
||||
function Ho(a,b,c){var d=b;if(b>=n.Fd&&b<=n.pf)!(a.Vb&(Io|Jo|Ko))==c&&(d=b+(n.fd-n.Fd));else if(b>=n.fd&&b<=n.z)!!(a.Vb&(Io|Jo|Ko))==c&&(d=b-(n.fd-n.Fd));else if(!!(a.Vb&(Io|Jo))==c){if(a=p[b])d=a}else if(a=pa[b])d=a;return d}l.Pf=function(a){a||(this.Vb&=~Do)};
|
||||
function lo(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode;if(!mo(a.na))return!1;a.B="";nb(a.Dd);var h=Ho(a,g,!0);a.ig&&h==n["`"]&&(g=h=27);if(W[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),to(a,h,!1,c)){if(20==g||144==g||145==g)a.ba||(c=e=!0);if(!(c||91!=g&&93!=g))for(var k=0;k<a.A.length;k++){var m=a.A[k];m.Ie=!1;0<m.bd&&(m.bd=0)}}else 8==g&&(a.Vb&(Lo|Mo))==Lo&&(h=No),d=!1;else if(W[h]&&a.Vb&(Oo|Po)&&(d=!1),d&&c||a.Vb&Qo)f=!0;d||b.preventDefault();f||a.da&&d||(c?oo(a,h,e):vo(a,h)||(b=Ho(a,g,!1),b!=h&&vo(a,b)));
|
||||
return d}
|
||||
function Go(a,b,c){var d=!1;to(a,b,!0,c);var e=W[b]||W[b+1E3];if(void 0!==e){e==Ro&&(a.Vb&(Lo|Mo))==(Lo|Mo)&&(e=So);d=[];var f=e&255;if(83<f&&83==a.fa)return!1;d.push(f|(c?0:To));for(b=b>=n.Fd&&b<=n.pf||b>=n.fd&&b<=n.z;e>>>=8;){var g=0,h=e&255;f==Uo||f==Vo?d.push(f|(c?0:To)):(h==X?a.C&(Io|Jo)||a.C&Ko&&b||(g=h):h==Wo?a.C&(Lo|Xo)||(g=h):h==Yo?a.C&(Mo|Zo)||(g=h):d.push(f|(c?0:To)),g&&(c?d.unshift(g):d.push(g|To)))}for(c=0;c<d.length;c++)e=a,f=d[c],e.Pb&&(e.Pb.length<$o?(e.Pb.push(f),1==e.Pb.length&&e.U&&
|
||||
Hn(e.U,f)):e.Pb.length==$o&&e.Pb.push(ap));d=!0}return d}var yo=["US83","US84","US101"],po=1020,qo=1144,ro=1145,bp=n.Sj+4E3,No=4008,Ro=14,Wo=29,X=42,Yo=56,So=83,To=128,Uo=224,Vo=225,Jo=1,Io=2,Xo=4,Lo=8,Oo=12,Zo=16,Mo=32,Po=48,no=128,Qo=192,Bo=85,Do=255,Ko=512,Co=3584,Ao={};Ao[3016]=Jo;Ao[1016]=Io;Ao[1017]=Lo;Ao[1018]=Mo;Ao[1091]=no;Ao[1093]=64;Ao[1224]=no;Ao[po]=Ko;Ao[qo]=1024;Ao[ro]=2048;
|
||||
var so={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,SYSREQ:4027,CTRL_C:bp,CTRL_BREAK:No,CTRL_ALT_DEL:4046,CTRL_ALT_INS:4045,CTRL_ALT_ENTER:4013},uo={esc:1027,1:n["1"],2:n["2"],3:n["3"],4:n["4"],5:n["5"],6:n["6"],7:n["7"],8:n["8"],9:n["9"],0:n["0"],"-":n["-"],"=":n["="],bs:1008,tab:1009,q:n.Q,w:n.Lh,e:n.E,r:n.Gh,t:n.Ih,y:n.Nh,u:n.Jh,i:n.yh,o:n.Eh,p:n.Fh,"[":n["["],"]":n["]"],enter:13,ctrl:1017,a:n.Fd,s:n.Hh,
|
||||
d:n.uh,f:n.vh,g:n.wh,h:n.xh,j:n.zh,k:n.Ah,l:n.Bh,";":n[";"],quote:n["'"],"`":n["`"],shift:1016,"\\":n["\\"],z:n.pf,x:n.Mh,c:n.th,v:n.Kh,b:n.sh,n:n.Dh,m:n.Ch,",":n[","],".":n["."],"/":n["/"],"right-shift":3016,prtsc:1044,alt:1018,space:1032,"caps-lock":po,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":qo,"scroll-lock":ro,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035,
|
||||
"num-down":1040,"num-pgdn":1034,"num-ins":1045,"num-del":1046,sysreq:84},Eo={"caps-lock":Ko,"num-lock":1024,"scroll-lock":2048},W={1027:1};W[n["1"]]=2;W[n["!"]]=2|X<<8;W[n["2"]]=3;W[n["@"]]=3|X<<8;W[n["3"]]=4;W[n["#"]]=4|X<<8;W[n["4"]]=5;W[n.$]=5|X<<8;W[n["5"]]=6;W[n["%"]]=6|X<<8;W[n["6"]]=7;W[n["^"]]=7|X<<8;W[n["7"]]=8;W[n["&"]]=8|X<<8;W[n["8"]]=9;W[n["*"]]=9|X<<8;W[n["9"]]=10;W[n["("]]=10|X<<8;W[n["0"]]=11;W[n[")"]]=11|X<<8;W[n["-"]]=12;W[n._]=12|X<<8;W[n["="]]=13;W[n["+"]]=13|X<<8;W[1008]=Ro;
|
||||
W[1009]=15;W[n.q]=16;W[n.Q]=16|X<<8;W[n.xn]=17;W[n.Lh]=17|X<<8;W[n.e]=18;W[n.E]=18|X<<8;W[n.r]=19;W[n.Gh]=19|X<<8;W[n.t]=20;W[n.Ih]=20|X<<8;W[n.y]=21;W[n.Nh]=21|X<<8;W[n.vn]=22;W[n.Jh]=22|X<<8;W[n.qk]=23;W[n.yh]=23|X<<8;W[n.Sl]=24;W[n.Eh]=24|X<<8;W[n.p]=25;W[n.Fh]=25|X<<8;W[n["["]]=26;W[n["{"]]=26|X<<8;W[n["]"]]=27;W[n["}"]]=27|X<<8;W[13]=28;W[1017]=Wo;W[n.fd]=30;W[n.Fd]=30|X<<8;W[n.sn]=31;W[n.Hh]=31|X<<8;W[n.d]=32;W[n.uh]=32|X<<8;W[n.mk]=33;W[n.vh]=33|X<<8;W[n.nk]=34;W[n.wh]=34|X<<8;W[n.pk]=35;
|
||||
W[n.xh]=35|X<<8;W[n.Fl]=36;W[n.zh]=36|X<<8;W[n.k]=37;W[n.Ah]=37|X<<8;W[n.Gl]=38;W[n.Bh]=38|X<<8;W[n[";"]]=39;W[n[":"]]=39|X<<8;W[n["'"]]=40;W[n['"']]=40|X<<8;W[n["`"]]=41;W[n["~"]]=41|X<<8;W[1016]=X;W[n["\\"]]=43;W[n["|"]]=43|X<<8;W[n.z]=44;W[n.pf]=44|X<<8;W[n.x]=45;W[n.Mh]=45|X<<8;W[n.dk]=46;W[n.th]=46|X<<8;W[n.wn]=47;W[n.Kh]=47|X<<8;W[n.ck]=48;W[n.sh]=48|X<<8;W[n.n]=49;W[n.Dh]=49|X<<8;W[n.Kl]=50;W[n.Ch]=50|X<<8;W[n[","]]=51;W[n["<"]]=51|X<<8;W[n["."]]=52;W[n[">"]]=52|X<<8;W[n["/"]]=53;
|
||||
W[n["?"]]=53|X<<8;W[3016]=54;W[1044]=55;W[1018]=Yo;W[1032]=57;W[po]=58;W[1112]=59;W[1113]=60;W[1114]=61;W[1115]=62;W[1116]=63;W[1117]=64;W[1118]=65;W[1119]=66;W[1120]=67;W[1121]=68;W[qo]=69;W[ro]=70;W[1036]=71;W[1038]=72;W[1033]=73;W[1109]=74;W[1037]=75;W[1101]=76;W[1039]=77;W[1107]=78;W[1035]=79;W[1040]=80;W[1034]=81;W[1045]=82;W[1046]=So;W[4027]=84;W[1122]=87;W[1123]=88;W[1091]=91;W[1093]=93;W[1224]=91;W[bp]=46|Wo<<8;W[No]=70|Wo<<8;W[4046]=So|Wo<<8|Yo<<16;W[4045]=82|Wo<<8|Yo<<16;
|
||||
W[4013]=28|Wo<<8|Yo<<16;var jn=255,nn=243,on=237,mn=170,kn=250,ap=255,$o=20;Sa(function(){for(var a=jb(document,"pcx86","keyboard"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new jo(d);ib(d,c)}});
|
||||
function cp(a,b,c,d){if(void 0!==b&&(!c||c.length)){this.video=a;var e=dp[b],f=a.da||e[5];if(!c||6>c.length)c=[!1,0,null,null,0,Array(b<Tn?ep:fp)];this.Oa=b;this.ab=e[2];this.Hb=e[3];this.Yc=d||e[4];65536<=this.Yc&&720896<=this.ab&&(this.Hb=Math.min(this.Yc>>2,32768));this.dc=c[0];this.Ec=c[1];this.af=c[2];this.Z=c[3];this.oc=c[4]&255;this.Sf=c[4]>>8&255;this.Ua=c[5];this.pg=ep;this.Bd=this.Ua[gp]|this.Ua[hp]<<8;this.rf=63;if(b>=Tn){this.rf=255;this.pg=fp;b=c[6];void 0===b&&(b=[!1,0,Array(ip),0,f==
|
||||
hk?0:jp,0,0,Array(kp),0,0,0,Array(lp),0,[this.ab,this.Hb,this.Yc],Array(this.Yc>>2),mp|np|op|pp|qp,0,-1,0,-1,0,-1,0,0,0,0,rp,sp,0,0,tp,Array(up)]);this.He=b[0];this.Sd=b[1];this.vc=b[2];this.ih=b[3];this.bf=b[4];this.Vf=b[5];this.Vd=b[6];this.Ud=b[7];this.Ij=b[8];this.Jj=b[9];this.Td=b[10];this.od=b[11];this.pb=b[12];d=b[13];"number"==typeof d&&(d=[this.ab,this.Hb,d]);this.ab=d[0];this.Hb=d[1];d=this.Yc>>2;if((this.ud=b[14])&&this.ud.length<d){e=this.ud;for(var g=0,h=Array(d),k=0;k<e.length-1;){for(var m=
|
||||
e[k++],r=e[k++];m--;)h[g]=r,g+=2;g==d&&(g=1)}this.ud=h}(d=b[15])&&(d&qp?d&=~qp:d=vp[d&65280]|vp[d&255]);this.Xf(d);this.eh=b[16];this.Ya=b[17];this.Ac=b[18];this.ub=b[19];this.Ve=b[20];this.md=b[21];this.Ad=b[22];this.qg=b[23];this.rg=b[24];this.Bd=b[25];this.fh=this.We=0;this.Oa==Vn&&(this.jh=b[26],this.Tf=b[27],this.cd=b[28],this.wc=b[29],this.Uf=b[30],this.we=b[31])}f=wp[f]||wp[hk];this.tg=a.R.V.zd/f.Lf|0;this.Nl=this.tg*f.Qf/100|0;this.ug=this.tg*f.Kf|0;this.Pl=this.ug*f.Rf/100|0;this.vg=c[7]||
|
||||
0}}
|
||||
function xp(a){var b=[];if(void 0!==a.Oa){b[0]=a.dc;b[1]=a.Ec;b[2]=a.af;b[3]=a.Z;b[4]=a.oc|a.Sf<<8;b[5]=a.Ua;if(a.Oa>=Tn){var c=[];c[0]=a.He;c[1]=a.Sd;c[2]=a.vc;c[3]=a.ih;c[4]=a.bf;c[5]=a.Vf;c[6]=a.Vd;c[7]=a.Ud;c[8]=a.Ij;c[9]=a.Jj;c[10]=a.Td;c[11]=a.od;c[12]=a.pb;c[13]=[a.ab,a.Hb,a.Yc];var d;if(d=a.ud){var e=0,f=[];if(void 0!==d[0])for(var g=0;2>g;g++)for(var h=g;h<d.length;){for(var k=d[h],m=h+2;m<d.length&&d[m]===k;)m+=2;f[e++]=m-h>>1;f[e++]=k;h=m}f.length<d.length&&(d=f)}c[14]=d;c[15]=a.og|qp;
|
||||
c[16]=a.eh;c[17]=a.Ya;c[18]=a.Ac;c[19]=a.ub;c[20]=a.Ve;c[21]=a.md;c[22]=a.Ad;c[23]=a.qg;c[24]=a.rg;c[25]=a.Bd;a.Oa==Vn&&(c[26]=a.jh,c[27]=a.Tf,c[28]=a.cd,c[29]=a.wc,c[30]=a.Uf,c[31]=a.we);b[6]=c}b[7]=a.vg}return b}cp.prototype.ki=function(a){return[this.ud,a-this.ab]};cp.prototype.kg=function(){return this.A};cp.prototype.Xf=function(a){if(null!=a&&a!=this.og){var b=a&yp,c=zp[b];c||b&np&&(c=zp[np]);b=a&Ap;var d=zp[b];d||b&pp&&(d=zp[pp]);this.A||(this.A=Array(6));this.A[0]=c;this.A[1]=d;this.og=a}};
|
||||
function Bp(a,b){var c=a.Ua[b];if(null!=c&&a.Oa>=Tn){var d=0,e=0,f=0;switch(b){case Cp:d=Dp;a.Oa==Vn&&(e=Ep);break;case Fp:a.Oa==Tn&&(d=Gp);break;case Hp:d=Ip;a.Oa==Vn&&(e=Jp);break;case Kp:d=Lp;a.Oa==Vn&&(e=Mp);break;case Np:d=Op;a.Oa==Vn&&(f=Pp);break;case Qp:d=Rp,a.Oa==Vn&&(f=Sp)}d&&(c|=a.Ua[Tp]&d?256:0,c|=a.Ua[Tp]&e?512:0,c|=a.Ua[Up]&f?512:0)}return c}
|
||||
var hp=12,gp=13,ep=18,Cp=6,Tp=7,Dp=1,Lp=2,Ip=4,Op=8,Rp=16,Gp=32,Ep=32,Mp=64,Jp=128,Up=9,Pp=32,Sp=64,Fp=10,Hp=16,Kp=18,Np=21,Qp=24,fp=25,Vp={},Wp=(Vp[0]=255,Vp[1]=255,Vp[2]=255,Vp[3]=15,Vp[4]=127,Vp[5]=31,Vp[6]=127,Vp[7]=127,Vp[8]=3,Vp[9]=31,Vp[10]=127,Vp[11]=31,Vp[hp]=63,Vp[gp]=255,Vp[14]=63,Vp[15]=255,Vp[16]=63,Vp[17]=255,Vp),ip=20,jp=1,rp=1,kp=5,sp=255,tp=0,up=256,lp=9,mp=1024,np=4096,yp=65280,op=0,pp=16,Ap=255,qp=-2147483648,vp=[];vp[2]=mp;vp[3]=mp|np;vp[16]=1280;vp[512]=op;vp[1024]=op|32;
|
||||
vp[1536]=op|96;vp[2560]=op|160;vp[3584]=op|224;vp[768]=op|pp;vp[4096]=1;vp[8192]=2;vp[24576]=98;vp[40960]=162;vp[57344]=226;var zp=[];zp[mp]=function(a){a+=this.G;return(this.controller.pb=this.S[a])>>this.controller.eh&255};zp[mp|16384]=function(a){return(this.controller.pb=this.S[(a&-4)+this.G])>>((a&3)<<3)&255};zp[mp|np]=function(a){a+=this.G;var b=this.controller.pb=this.S[a&-2];return(a&1?b>>8:b)&255};
|
||||
zp[1280]=function(a){a+=this.G;a=this.controller.pb=this.S[a];for(var b=this.controller.rg,c=this.controller.qg&b,d=0,e=128;e;)(a&b)==c&&(d|=e),c>>>=1,b>>>=1,e>>=1;return d};zp[op]=function(a,b){a+=this.G;b=(b|b<<8|b<<16|b<<24)&this.controller.md|this.controller.Ad;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[op|32]=function(a,b){a+=this.G;b=b>>this.controller.Ac|b<<8-this.controller.Ac&255;b=(b|b<<8|b<<16|b<<24)&this.controller.md|this.controller.Ad;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[op|96]=function(a,b){a+=this.G;b=b>>this.controller.Ac|b<<8-this.controller.Ac&255;b=(b|b<<8|b<<16|b<<24)&this.controller.md|this.controller.Ad;b&=this.controller.pb;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[op|160]=function(a,b){a+=this.G;b=b>>this.controller.Ac|b<<8-this.controller.Ac&255;b=(b|b<<8|b<<16|b<<24)&this.controller.md|this.controller.Ad;b|=this.controller.pb;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[op|224]=function(a,b){a+=this.G;b=b>>this.controller.Ac|b<<8-this.controller.Ac&255;b=(b|b<<8|b<<16|b<<24)&this.controller.md|this.controller.Ad;b^=this.controller.pb;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};zp[op|4]=function(a,b){var c=(a&-4)+this.G;a=(a&3)<<3;b=b<<a&this.controller.Ya|this.S[c]&~(255<<a&this.controller.Ya);this.S[c]!=b&&(this.S[c]=b,this.Fa=!0)};
|
||||
zp[op|pp]=function(a,b){a+=this.G;var c=a&-2;b=(b|b<<8|b<<16|b<<24)&this.controller.ub|this.controller.pb&~this.controller.ub;a=this.controller.Ya&(c==a?16711935:-16711936);b=b&a|this.S[c]&~a;this.S[c]!=b&&(this.S[c]=b,this.Fa=!0)};zp[1]=function(a){a+=this.G;var b=this.S[a]&~this.controller.Ya|this.controller.pb&this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[1|pp]=function(a){a+=this.G;var b=a&-2;a=this.controller.Ya&(b==a?16711935:-16711936);a=this.S[b]&~a|this.controller.pb&a;this.S[b]!=a&&(this.S[b]=a,this.Fa=!0)};zp[2]=function(a,b){a+=this.G;b=Xp[b&15];b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[98]=function(a,b){a+=this.G;b=Xp[b&15];b&=this.controller.pb;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};zp[162]=function(a,b){a+=this.G;b=Xp[b&15];b|=this.controller.pb;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
zp[226]=function(a,b){a+=this.G;b=Xp[b&15];b^=this.controller.pb;b=b&this.controller.ub|this.controller.pb&~this.controller.ub;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};zp[3]=function(a,b){a+=this.G;b=b>>this.controller.Ac|b<<8-this.controller.Ac&255;b=(b|b<<8|b<<16|b<<24)&this.controller.ub;b=this.controller.Ve&b|this.controller.pb&~b;b=b&this.controller.Ya|this.S[a]&~this.controller.Ya;this.S[a]!=b&&(this.S[a]=b,this.Fa=!0)};
|
||||
function Y(a,b,c,d,e){u.call(this,"Video",a);var f=this,g;this.Oc=La("Gecko/");this.ca=a.model;var h=Yp[this.ca]||Yp.mda;this.Oa=h[0];this.Yc=a.memory||0;this.Uc=a.switches;this.Lb=a.randomize;null==this.Lb&&(this.Lb=1);this.ba=a.mode;if(null==this.ba||null==Zp[this.ba])this.ba=h[1];this.Jb=a.charCols;this.sc=a.charRows;if(void 0===this.Jb||void 0===this.sc)this.Jb=Zp[this.ba][0],this.sc=Zp[this.ba][1];this.X=a.screenWidth;this.ia=a.screenHeight;this.Qc=a.scale;this.rd=12<=Math.round(this.X/this.Jb);
|
||||
this.M=b;this.J=c;this.F=(this.Df=d)||b||null;this.Yb=a.screenColor||"black";this.Tc=(1-(Oa("flicker")||a.flicker||0)).toString();this.Eb=!1;b&&(b.style.backgroundColor=this.Yb);e&&(e.style.backgroundColor=this.Yb);b=a.smoothing;(c=Oa("smoothing"))&&(b="true"==c);null!=b&&(g=Ma(this.J,"imageSmoothingEnabled"))&&(this.J[g]=b);this.Vc=a.touchScreen;this.gb=$p;this.K=null;this.qd=a.autoLock;this.ab=this.Hb=0;this.qa=[];this.fa=Array(this.Oa==Vn?256:16);this.Ga=!1;if(this.N=e)if(g=Ma(e,"requestFullscreen")||
|
||||
Ma(e,"requestFullScreen")){this.N.A=e[g];if(e=Ma(document,"on","fullscreenchange")){var k=Ma(document,"fullscreenElement")||Ma(document,"fullScreenElement");document.addEventListener(e,function(){aq(f,!!k)},!1)}(e=Ma(document,"on","fullscreenerror"))&&document.addEventListener(e,function(){aq(f,null)},!1)}if(this.F&&(this.F.onfocus=function(){return f.Pf(!0)},this.F.onblur=function(){return f.Pf(!1)},this.F.Md=(g=Ma(this.F,"requestPointerLock"))&&this.F[g],this.F.B=(g=Ma(this.F,"exitPointerLock"))&&
|
||||
this.F[g],this.F.Md&&(e=Ma(document,"on","pointerlockchange")))){var m=Ma(document,"pointerLockElement");document.addEventListener(e,function(){f.Xe(!(!m||document[m]!==f.F))},!1)}(this.xa=a.fontROM)&&"json"!=ta(this.xa)&&(this.xa=Fa()+"/api/v1/dump?file="+this.xa+"&format=bytes")}ja(Y,u);l=Y.prototype;
|
||||
l.jc=function(a,b,c,d){var e=this;this.oa=b;this.R=c;this.Ea=d;c=+Mc(a,"randomize");0<=c&&1>=c&&(this.Lb=c);c=(c=Yp[this.ca])&&c[0];c!==bq&&(kc(b,this,cq),mc(b,this,dq));c!==eq&&(kc(b,this,fq),mc(b,this,gq));this.Oa>=Tn&&(kc(b,this,hq),mc(b,this,iq));this.Oa==Vn&&(kc(b,this,jq),mc(b,this,kq));if((this.C=Ab(a,"Keyboard"))&&this.M){for(var f in this.ja)0<f.indexOf("lock")&&this.C.Ab("led",f,this.ja[f]);this.C.Ab(this.Df?"textarea":"canvas","screen",this.F)}this.wb=9;(this.U=Ab(a,"ChipSet"))&&this.Uc&&
|
||||
this.Oa==Tn&&(this.wb=vj(this.Uc,this.wb));"mouse"==this.Vc?(this.K=Ab(a,"Mouse"))&&lq(this,mq):"keygrid"==this.Vc&&this.C&&lq(this,nq);this.gb||lq(this,oq);if(this.xa){var g="Loading "+this.xa+"...";Ea(this.xa,null,!0,function(a,b,c){pq(e,a,b,c)},function(){e.qb(g,tb)})}Nc(this.R,this.id,function(){qq(e)},1E3/rq)};
|
||||
l.Ab=function(a,b,c){var d=this;if(!this.ja[b])switch(this.ja[b]=c,b){case "fullScreen":return this.N&&this.N.A?c.onclick=function(){if(d.N){if(d.N.A){var a="100%";if(screen&&screen.width&&screen.height){var b=screen.width/screen.height,c=d.X/d.ia;b>c&&(a=Math.round(c/b*100)+"%")}d.Oc?(d.M.style.width=a,d.M.style.width=a,d.M.style.display="block",d.M.style.margin="auto"):(d.N.style.width=a,d.N.style.height="auto");d.N.style.backgroundColor=d.Yb;d.N.A()}d.F&&d.F.focus()}}:c.parentNode.removeChild(c),
|
||||
!0;case "lockPointer":return this.td=c.textContent,this.F&&this.F.Md?c.onclick=function(){d.Md(!0)}:c.parentNode.removeChild(c),!0;case "refresh":return c.onclick=function(){qq(d,!0)},!0}return!1};function aq(a,b){!b&&a.N&&(a.Oc?a.M.style.width=a.M.style.height="":a.N.style.width=a.N.style.height="");a.C&&(a.C.ig=b)}l.Md=function(a){var b=!1;this.F&&(a?this.F.Md&&(this.F.Md(),this.K&&this.K.Xe(!0),b=!0):this.F.B&&(this.F.B(),this.K&&this.K.Xe(!1),b=!0),this.F&&this.F.focus());return b};
|
||||
l.Xe=function(a){this.K&&(this.K.Xe(a),this.C&&(this.C.ig=a));var b=this.ja.lockPointer;b&&(b.textContent=a?"Press Esc to Unlock Pointer":this.td)};function lq(a,b){var c=a.F;c&&!a.gb&&(a.gb=b,c.addEventListener("touchstart",function(b){Pn(a.U,b);a.gb!=oq&&sq(a,b,!0)},!1),b!=oq&&(c.addEventListener("touchmove",function(b){sq(a,b)},!0),c.addEventListener("touchend",function(b){sq(a,b,!1)},!1),a.mb=a.rb=a.dd=-1,a.lc=!1,a.Cb=null,a.kc=!1,a.sd=function(){a.kc=!0;a.K.ie(tq,!0)}))}
|
||||
l.Pf=function(a){this.C&&this.C.Pf(a)};
|
||||
function sq(a,b,c){var d=0,e=0;var f=a.M;do isNaN(f.offsetLeft)||(d+=f.offsetLeft,e+=f.offsetTop);while(f=f.offsetParent);var g=a.X/a.M.offsetWidth,h=a.ia/a.M.offsetHeight;if(b.targetTouches&&b.targetTouches.length){f=b.targetTouches[0].pageX;var k=b.targetTouches[0].pageY}else f=b.pageX,k=b.pageY;f=(f-d)*g;k=(k-e)*h;if(a.gb==nq)c&&oo(a.C,uq[k/(a.ia/3)|0][f/(a.X/3)|0],!0);else if(a.K){e=a.lc;d=b.timeStamp-a.dd;!0===c?(a.lc=500<d,a.dd=b.timeStamp,a.Cb=setTimeout(a.sd,500)):null!=a.Cb&&(clearTimeout(a.Cb),
|
||||
a.Cb=null);void 0===c&&(a.lc=!1);e||b.preventDefault();if(!1===c){a.kc?(a.K.ie(tq,!1),a.kc=!1,b=!0):b=!1;if(b)return;if(200>d){a.K.ie(tq,!0);a.K.ie(tq,!1);return}}if(c||0>a.mb||0>a.rb)a.mb=f,a.rb=k;c=Math.round(f-a.mb);b=Math.round(k-a.rb);a.mb=f;a.rb=k;a.K.mg(c,b,a.mb,a.rb)}}l.Rb=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Qb=function(a){return a?this.save():!0};
|
||||
l.reset=function(){var a=0;this.U&&(a=+gk(this.U,zj,void 0));this.ca||(this.Oa=a==hk?eq:bq);this.ba=vq;switch(this.Oa){case Vn:a=7;break;case Tn:var b=wq[this.wb];b&&(a=b[0]);a||(a=4);break;case eq:a=hk;this.ba=xq;break;default:a=2}this.da!==a&&(this.da=a);this.B=null;this.W=this.Wb=new cp(this,eq);this.I=this.Db=new cp(this,bq);this.Oa<Tn?this.A=new cp:(this.A=new cp(this,this.Oa,null,this.Yc),yq(this));zq(this);this.ma=null;Aq(this,this.ba);if(this.B.ab&&this.Lb){a=this.B.ab+this.Sa;for(b=this.B.ab;b<
|
||||
a;b+=2){var c=65536*Math.random()|0;if(4==this.da||7==this.da){var d=b>>1&255;c=c>>8&~Bq;c>>4==(c&15)&&(c^=15)}else d=c&255,c=(c&256?Cq|Dq:Eq|Fq)|Gq&c>>8;ic(this.oa,b,d|c<<8)}qq(this,!0)}};function yq(a){a.A.bf&jp?(a.W=a.Wb,a.I=a.A):(a.W=a.A,a.I=a.Db)}l.save=function(){var a=new Qe(this);a.set(0,xp(this.Wb));a.set(1,xp(this.Db));a.set(2,[this.da,this.ba,this.ma]);a.set(3,xp(this.A));return a.data()};
|
||||
l.restore=function(a){var b=a[2];this.da=b[0];this.ba=b[1];this.ma=b[2];this.B=null;this.W=this.Wb=new cp(this,eq,a[0]);this.I=this.Db=new cp(this,bq,a[1]);this.A=new cp(this,this.Oa,a[3],this.Yc);this.A.dc&&yq(this);zq(this);if(!Hq(this))return!1;Iq(this);return!0};
|
||||
function pq(a,b,c,d){if(d)a.wa("Unable to load font ROM (error "+d+": "+b+")",0>d);else{ab(a.Dd,b,c);try{var e=eval("("+c+")"),f=e.bytes||e;if(!f.length){q("Empty font ROM: "+b);return}if(1==f.length){q(f[0]);return}if(8192==f.length)Un(a,f,[6144,0]);else if(2048==f.length)Un(a,f,[0]);else{a.wa("Unrecognized font data length ("+f.length+")");return}}catch(g){a.wa("Font ROM data error: "+g.message);return}(a.J||a.Ea)&&v(a)}}
|
||||
function Jq(a,b){if(1==b)return a.fa[0]=Kq[Eq],a.fa[1]=Kq[Cq],a.fa;if(2==b){var c=a.B.af;if(a.B===a.A){var d=a.A.vc[0];c=d&7;d&16&&(c|=8);18!=a.A.vc[1]&&(c|=32)}a.fa[0]=Kq[c&15];c=c&32?Lq:Mq;for(d=0;d<c.length;d++)a.fa[d+1]=Kq[c[d]];return a.fa}if(a.I===a.Db)return Kq;a.Ga&&b&&!a.fa[16]&&(a.Ga=!1);if(!a.Ga){c=a.A;d=c.we;var e;if(8==b)for(e=0;256>e;e++){var f=d[e]||0;var g=f<<2&252;var h=f>>4&252;f=f>>10&252;a.fa[e]=[g,h,f,255]}else{var k=d&&d[255];b=null!=c.vc[15]?c.vc:Nq;for(e=0;16>e;e++)f=b[e]&
|
||||
63,k?(f|=(c.vc[20]&12)<<4,c.vc[16]&128&&(f&=-49,f|=(c.vc[20]&3)<<4),f=d[f],g=f<<2&252,h=f>>4&252,f=f>>10&252):(g=(f&4?170:0)|(f&32?85:0),h=(f&2?170:0)|(f&16?85:0),f=(f&1?170:0)|(f&8?85:0)),a.fa[e]=[g,h,f,255]}a.Ga=!0}return a.fa}function Un(a,b,c,d){a.vb=b;a.Qa=c;a.Ca=d}
|
||||
function zq(a,b){var c=!1;if(window&&a.vb&&(!b||a.G)){var d=0,e=a.Ca?a.Ca:8,f=Jq(a);null!=a.Qa[0]&&Oq(a,Pq,a.Qa[0],d,e,8,a.vb,f)&&(c=!0);d=a.Ca?0:2048;e=a.Ca?a.Ca:9;null!=a.Qa[1]&&(Oq(a,Qq,a.Qa[1],d,e,14,a.vb,Rq,Sq)&&(c=!0),a.Ca&&Oq(a,a.Oa,a.Qa[1],0,a.Ca,14,a.vb,f)&&(c=!0))}b||(a.aa=-1,a.za=-1,a.ra=0);return c}function Oq(a,b,c,d,e,f,g,h,k){var m=!1;null!=c&&(Tq(a,b,c,d,e,f,g,h,k)&&(m=!0),a.rd&&Tq(a,b<<1,c,d,e,f,g,h,k)&&(m=!0));return m}
|
||||
function Tq(a,b,c,d,e,f,g,h,k){var m=!1,r=b&1?0:1,x=a.qa[b],t=16>h.length?h.length:16;x||(x={qc:e<<r,rc:f<<r,be:Array(t),Qh:h.slice(0,t),Ee:k,cg:Array(t)});for(k=0;k<t;k++){var z=h[k],E=x.be[k]?x.Qh[k]:[];if(z[0]!==E[0]||z[1]!==E[1]||z[2]!==E[2]){var O,K;m=x;E=k;var ca=z,na=r,db=c,sc=d,ai=e,Uf=f,Zt=g,$t=[0,0,0,0],Vf=document.createElement("canvas");Vf.width=m.qc<<4;Vf.height=m.rc<<4;var Pm=Vf.getContext("2d"),Wf=8>Uf||!sc?Uf:8,bi=Pm.createImageData(m.qc,m.rc);for(K=0;256>K;K++){for(z=0;z<Uf;z++)for(var au=
|
||||
m.Ee&&E&1&&z>=Uf-2,bu=Zt[z<Wf?db+K*Wf+z:sc+K*Wf+z-Wf],ci=0;ci<=na;ci++)for(O=0;O<ai;O++){var Qm=O<<na,Rm=(z<<na)+ci,Sm=au||bu&128>>(8<=O&&192<=K&&223>=K?7:O)?ca:$t;Uq(bi,Qm,Rm,Sm);na&&Uq(bi,Qm+1,Rm,Sm)}Pm.putImageData(bi,(K&15)*m.qc,(K>>4)*m.rc)}m.be[E]="#"+ra(ca[0],2)+ra(ca[1],2)+ra(ca[2],2);m.Qh[E]=ca;m.cg[E]=Vf;m=!0}}a.qa[b]=x;return m}function Vq(a){0<a.ra||0<=a.aa?0>a.za&&(a.za=0):a.za=-1}
|
||||
function Iq(a){if(a.G){for(var b=10;15>=b;b++)if(null==a.B.Ua[b])return;var c=a.B.Ua[10];b=c&31;var d=a.B.Ua[11]&Wp[11],e=a.B.Ua[9]&Wp[9],f=!1;a.B===a.A&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)Wq(a);else{c=a.B.Ua[15];c|=(a.B.Ua[14]&a.B.rf)<<8;a.aa!=c&&(Wq(a),a.aa=c);d=d-b+1;if(a.Wc!=b||a.Ic!=d)a.Wc=b,a.Ic=d;a.ua=e+1;Vq(a)}}}
|
||||
function Wq(a){if(0<=a.aa){if(void 0!==a.L){var b=Xq<<8,c=a.L[a.aa];if(c&b){c&=~b;b=a.aa%a.D;var d=a.aa/a.D|0;a.G&&a.qa[a.G]&&(a.Ba&&Yq(a,b,d,c,a.Ba),Yq(a,b,d,c));a.L[a.aa]=c}}a.aa=-1}}
|
||||
function Zq(a){var b=a.B;a.Nc=!1;var c=b.od[5];if(null!=c){var d=mp;var e=op,f=b.od[3]&31;switch(c&3){case 0:if(f){e=op|32;switch(f&24){case 8:e=op|96;break;case 16:e=op|160;break;case 24:e=op|224}b.Ac=f&7}break;case 1:e=1;break;case 2:switch(f&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.Oa==Vn&&(e=3,b.Ac=f&7)}c&8&&(d=1280);b=b.Ud[4];null!=b&&(b&4||(d|=np,e|=pp),c&64&&(b&8&&(d|=16384,e|=4),a.Nc=!0));d|=e}return d}
|
||||
function $q(a,b){var c=a.B;return c&&null!=b&&b!=c.og?(c.Xf(b),a.oa.Xf(c.ab,c.Hb,c.kg(),!0),!0):!1}
|
||||
function Hq(a,b){var c=a.ma,d=a.B;if(d)if(d.Oa==eq)c=xq;else if(d.Oa>=Tn){c=null;var e=d.Yc>>2,f=32768<e?32768:e,g=d.od[6];if(null!=g){switch(g&12){case 0:d.ab=655360;d.Hb=e;c=ar;break;case 4:d.ab=655360;d.Hb=e;c=a.da==hk?br:cr;break;case 8:d.ab=720896;d.Hb=f;c=xq;break;case 12:d.ab=753664,d.Hb=f,c=a.da==hk?dr:vq}var h=80==(d.od[5]&80);!h||d.ab==a.ab&&d.Hb==a.Hb||(b=!0);e=Bp(d,Cp);f=d.Ua[Up];var k=d.Ua[23],m=d.Ud[1]&8;c!=ar&&(g&1?655360==d.ab||h||k&1?d.od[5]&64?c=f&31?143>=d.Ua[Kp]?er:fr:gr:f&128||
|
||||
350>e?c=m?hr:ir:480<=e&&(c=a.da==hk?jr:kr):c=m?7-c:lr:c-=m?2:0);h=Zq(a)}}else d.Ec&8?(d.Ec&2?(c=d.Ec&16?lr:mr,d.Ec&4||--c):(c=d.Ec&1?vq:nr,d.Ec&4&&--c),a.Eb&&(a.M.style.opacity="1",a.Eb=!1)):!a.Eb&&1>+a.Tc&&(a.Eb=!0,a.M.style.opacity=a.Tc,d=a.R,d.Y.Yf=!0,Qc(d));else a.ma=null,null==c&&(c=a.ba);if(!Aq(a,c,b))return!1;$q(a,h);return!0}
|
||||
function Aq(a,b,c){if(null!=b&&(b!=a.ma||c)){a.pd=0;a.ma=b;a.Ga=!1;b=a.B||(b==xq?a.W:a.I);if(b!=a.B||b.ab!=a.ab||b.Hb!=a.Hb){Wq(a);if(a.ab){if(!ac(a.oa,a.ab,a.Hb))return!1;a.B&&(a.B.dc=!1)}a.B=b;b.dc=!0;a.ab=b.ab;a.Hb=b.Hb;if(!Qb(a.oa,b.ab,b.Hb,3,b===a.A?b:null))return!1}a:{a.G=0;a.D=a.Jb;a.H=a.sc;a.Ma=a.D;a.Gb=Zp[xq][2];b=0;if(c=Zp[a.ma])a.D=c[0],a.H=c[1],a.Gb=c[2],b=c[3],a.G=c[4],4!=a.da&&7!=a.da||a.B!==a.A||a.G!=Pq||(7==(a.A.Ua[Up]&31)?a.H=350>Bp(a.A,Kp)?43:50:a.G=a.Oa);a.Sc=a.D*a.H|0;a.Rc=a.Sc/
|
||||
a.Gb|0;a.Sa=a.Rc;a.Xb=0;void 0!==b&&(a.Sa=(a.Sa<<1)+b|0,a.Xb=a.Sa+b>>1);if(a.qa.length){a.ka=a.X/a.D|0;a.pa=a.ia/a.H|0;if(a.G){b=a.qa[a.G];if(!b)break a;c=a.qa[a.G<<1];a.Qc&&80==a.D?c&&a.ka>=3*c.qc>>2&&(a.G<<=1,b=c):(c&&a.ka>=c.qc&&(a.G<<=1,b=c),a.Qc||(a.ka=b.qc,a.pa=b.rc));a.eb=a.fb=0;b&&(a.eb=a.D*b.qc,a.fb=a.H*b.rc)}else a.ka=a.pa=1,a.eb=a.D,a.fb=a.H;a.La=a.J.createImageData(a.eb,a.fb);a.Aa=document.createElement("canvas");a.Aa.width=a.eb;a.Aa.height=a.fb;a.Ba=a.Aa.getContext("2d");a.uc=a.Dc=0;
|
||||
a.ec=a.X;a.fc=a.ia;b=a.X-a.D*a.ka;c=a.ia-a.H*a.pa;0<b&&(a.uc=b>>1,a.ec-=b);0<c&&(a.Dc=c>>1,a.fc-=c);if(b||c)a.J.fillStyle=a.M.style.backgroundColor,a.J.fillRect(0,0,a.X,a.ia)}}or(a,!0);qq(a)}return!0}function Uq(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function pr(a){a.ra=-1;a.Da=!1;var b=a.Rc;if(void 0===a.L||a.L.length!=b)a.L=Array(b)}function or(a,b){b||(a.Ga=!1);pr(a)}
|
||||
function Yq(a,b,c,d,e){var f=d&255,g=d>>8;d=g&15;var h=a.qa[a.G];h.Ee&&(d=h.Ee[d]);var k=g>>4&15;h.Ee&&(k=h.Ee[k]);e?(b*=h.qc,c*=h.rc,e.fillStyle=h.be[k],e.fillRect(b,c,h.qc,h.rc)):(b=b*a.ka+a.uc,c=c*a.pa+a.Dc,a.J.fillStyle=h.be[k],a.J.fillRect(b,c,a.ka,a.pa));g&qr&&(k=(f&15)*h.qc,f=(f>>4)*h.rc,e?e.drawImage(h.cg[d],k,f,h.qc,h.rc,b,c,h.qc,h.rc):a.J.drawImage(h.cg[d],k,f,h.qc,h.rc,b,c,a.ka,a.pa));g&Xq&&(f=a.Wc,g=a.Ic,e?(a.ua&&a.ua!==h.rc&&(f=f*h.rc/a.ua|0,g=g*h.rc/a.ua|0),e.fillStyle=h.be[d],e.fillRect(b,
|
||||
c+f,h.qc,g)):(a.ua&&a.ua!==a.pa&&(f=f*a.pa/a.ua|0,g=g*a.pa/a.ua|0),a.J.fillStyle=h.be[d],a.J.fillRect(b,c+f,a.ka,g)))}
|
||||
function qq(a,b){b=void 0===b?!1:b;if(a.Y.Sb){var c=!1,d=a.B;d&&(d!==a.A?d.Ec&8&&(c=!0):d.Sd&32&&(c=!0));if(c||b){if(b)pr(a);else if(void 0===a.L)return;c=!1;!(b||++a.pd&15)&&0<=a.za&&(a.za++,c=!0);var e=a.Sc,f=a.ab,g=f,h=g+a.Hb;a.ma>=er&&(f=g=655360,h=g+65536);if(rr(a,d)&8||d.We&&d.We<d.fh){var k=d.Ua[gp];k|=(d.Ua[hp]&d.rf)<<8;d.Bd!==k&&(d.Bd=k,or(a));d.We=0}var m=d.Bd<<(a.G?1:0);g+=m;k=a.Sa;a.Oa>=Tn&&d.Ua[19]&&d.Ua[19]<<1!=d.Ua[1]+1&&(a.Ma=d.Ua[19]<<(a.G?1:d.Ua[20]&64?3:4),k=(a.Ma*(a.H-1)+a.D)/
|
||||
a.Gb|0,a.ma<=xq&&(k<<=1));var r=d=0;g+k>h&&(r=k,g>=h?(d=f+(g-h),k=0):(d=f,k=h-g,r-=k));h=a.aa-(m>>1);g=sr(a,f,g,k,0,h,e,b,c);r&&(g+=sr(a,f,d,r,0+g,h,e,b,c));g&&(a.Da=!0)}}}
|
||||
function sr(a,b,c,d,e,f,g,h,k){var m=d>>1;m>g&&(m=g);var r=c+d;if(h=!h&&a.Da){h=a.oa;for(var x=!0,t=c>>>h.B,z=h.A-(c&h.C);0<d&&t<h.X.length;)h.X[t].Fa&&(h.X[t].Fa=x=!1,h.X[t].fi=!0),d-=z,z=h.A,t++;h=x}if(h){if(!k)return m;if(!a.ra){f-=e;if(0>f)return m;c+=f<<1;e+=f;g=e+1}}if(a.G){if(a.qa[a.G]){b=c;c=e;k=f=e=0;h=qr<<8;d=1048575;t=a.B.Ec&32;a.Oa>=Tn&&(t=a.B.vc[16]&8);x=a.aa-a.B.Bd;t&&(k=Bq<<8,d&=~k,a.za&2||(d&=~h));for(a.ra=0;b<r&&c<g;)t=hc(a.oa,b),t|=h,t&k&&(a.ra++,t&=d),c==x&&(t|=a.za&1?Xq<<8:0),
|
||||
a.Da&&t===a.L[c]||(Yq(a,c%a.D,c/a.D|0,t,a.Ba),a.L[c]=t,f++),b+=2,e++,c++;f&&a.Ba&&a.J.drawImage(a.Aa,0,0,a.eb,a.fb,a.uc,a.Dc,a.ec,a.fc);Vq(a)}}else{if(a.Xb){b=c;m=r-b>>1;g=0;c=a.Gb;e=b;f=16==c?65536:196608;k=16==c?1:2;h=Jq(a,k);x=d=0;t=a.D;z=0;var E=a.H,O=0;for(a.ra=0;e<r;){var K=hc(a.oa,e);if(a.Da&&K===a.L[g])d+=c;else{a.L[g]=K;K=K>>8|(K&255)<<8;var ca=f,na=16;d<t&&(t=d);for(var db=0;db<c;db++){var sc=(K&(ca>>=k))>>(na-=k);Uq(a.La,d++,x,h[sc])}d>z&&(z=d);x<E&&(E=x);x>=O&&(O=x+1)}e+=2;g++;if(d>=a.D){d=
|
||||
0;x+=2;if(x>a.H)break;x==a.H&&(x=1,e=b+a.Xb)}}t<a.D&&(a.Ba.putImageData(a.La,0,0,t,E,z-t,O-E),a.J.drawImage(a.Aa,0,0,a.D,a.H,0,0,a.X,a.ia));a=m}else{if(a.Nc){m=0;g=r-c;e=Jq(a,8);f=a.B.ud;h=k=0;d=a.D;x=0;t=a.H;z=0;E=a.B.Ud[4]&8?4:1;O=a.B.vc[19]&15;K=a.Ma>a.D?a.Ma-a.D-O>>3:0;for(a.ra=0;c<r;){ca=f[c-b];db=4;O||(a.Da&&ca===a.L[m]?(k+=db,db=0):a.L[m]=ca,m++);if(db){k<d&&(d=k);for(na=0;na<db;na++)Uq(a.La,k++,h,e[ca&255]),ca>>=8;k>x&&(x=k);h<t&&(t=h);h>=z&&(z=h+1)}c+=E;if(k>=a.D){k=0;if(++h>a.H)break;c+=
|
||||
K}}O&&(g=0)}else{m=0;g=r-c;e=Jq(a);f=a.B.ud;h=k=0;d=a.D;x=0;t=a.H;z=0;E=a.B.vc[19]&15;O=a.Ma>a.D?a.Ma-a.D-E>>3:0;for(a.ra=0;c<r;){K=c++-b;K=f[K];na=8;E?k?(ca=a.D-k,na>ca&&(na=ca)):(K<<=E,na-=E,a.Da=!1):(a.Da&&K===a.L[m]?(k+=na,na=0):a.L[m]=K,m++);if(na){k<d&&(d=k);for(ca=0;ca<na;ca++)db=tr[K&2155905152]||0,Uq(a.La,k++,h,e[db]),K<<=1;k>x&&(x=k);h<t&&(t=h);h>=z&&(z=h+1)}if(k>=a.D){k=0;if(++h>a.H)break;c+=O}}E&&(g=0)}d<a.D&&(a.Ba.putImageData(a.La,0,0,d,t,x-d,z-t),a.J.drawImage(a.Aa,0,0,a.D,a.H,0,0,
|
||||
a.X,a.ia));a=g}m=a}return m}function rr(a,b){var c=0;a=Xc(a.R)-b.vg;0>a&&(b.vg=a,a=-a|0);a%b.tg>b.Nl&&(c|=1);a%b.ug>b.Pl&&(c|=9);b.fh=a/b.ug|0;return c}l.il=function(){return ur(this.W)};l.Km=function(a,b){a=this.W;a.Sf=a.oc;a.oc=b&31};l.hl=function(){return vr(this.W)};l.Jm=function(a,b){wr(this,this.W,b)};l.jl=function(){return this.W.Ec};l.Lm=function(a,b){this.W.Ec=b;Hq(this,!1)};l.kl=function(){return xr(this,this.W)};l.zj=function(a,b){this.A.Vf=this.A.Vf&-4|b&3};l.Dk=function(){return this.A.Sd};
|
||||
l.ak=function(){return this.A.vc[this.A.Sd&31]};l.yj=function(a,b){a=this.A;var c=a.Sd&32;if(a.He){a.He=!1;var d=a.Sd&31;if(16<=d||!c)if(yr||a.vc[d]!==b)a.vc[d]=b,or(this,!1)}else a.Sd=b,a.He=!0,b&32&&!c&&zq(this,!0)&&qq(this,!0),b=a.Ua[gp],b|=(a.Ua[hp]&a.rf)<<8,a.Bd!=b&&(a.Bd=b,or(this)),a.We=0};l.ul=function(){var a=0;if(this.Oa==Tn)a=3-((this.A.bf&12)>>2),a=(this.wb&1<<a)<<4-a;else{var b=this.A.we[0];45!=(b&63)&&2880!=(b&4032)&&184320!=(b&258048)&&(a|=16)}a|=this.A.ih&-17;return this.A.ih=a};
|
||||
l.Mm=function(a,b){this.A.bf=b;yq(this)};l.vl=function(){return this.A.jh};l.Um=function(a,b){this.A.jh=b};l.sl=function(){return this.A.Vd};l.Sm=function(a,b){this.A.Vd=b};l.rl=function(){return this.A.Ud[this.A.Vd]};l.Rm=function(a,b){if(yr||this.A.Ud[this.A.Vd]!==b)this.A.Ud[this.A.Vd]=b;switch(this.A.Vd){case 2:this.A.Ya=Xp[b&15];break;case 4:$q(this,Zq(this))&&qq(this,!0)}};l.Uk=function(){return this.A.Tf};l.tm=function(a,b){if(yr||this.A.Tf!==b)this.A.Tf=b};l.Vk=function(){return this.A.Uf};
|
||||
l.um=function(a,b){this.A.cd=b;this.A.Uf=3;this.A.wc=0};l.vm=function(a,b){this.A.cd=b;this.A.Uf=tp;this.A.wc=0};l.Tk=function(){var a=this.A.we[this.A.cd]>>this.A.wc&63;this.A.wc+=6;12<this.A.wc&&(this.A.wc=0,this.A.cd=this.A.cd+1&up-1);return a};l.sm=function(a,b){a=this.A.we[this.A.cd];b=a&~(63<<this.A.wc)|(b&63)<<this.A.wc;a!==b&&(this.A.we[this.A.cd]=b,or(this,!1));this.A.wc+=6;12<this.A.wc&&(this.A.wc=0,this.A.cd=this.A.cd+1&up-1)};l.wl=function(){return this.A.Vf};
|
||||
l.Fm=function(a,b){this.A.Jj=b};l.xl=function(){return this.A.bf};l.Em=function(a,b){this.A.Ij=b};l.bl=function(){return this.A.Td};l.Dm=function(a,b){this.A.Td=b};l.al=function(){return this.A.od[this.A.Td]};
|
||||
l.Cm=function(a,b){if(yr||this.A.od[this.A.Td]!==b)this.A.od[this.A.Td]=b;switch(this.A.Td){case 0:this.A.Ve=Xp[b&15];this.A.Ad=this.A.Ve&~this.A.md;break;case 1:this.A.md=~Xp[b&15];this.A.Ad=this.A.Ve&~this.A.md;break;case 2:this.A.qg=Xp[b&15]&-2139062144;break;case 3:case 5:$q(this,Zq(this));break;case 4:this.A.eh=(b&3)<<3;break;case 6:Hq(this,!1);break;case 7:this.A.rg=Xp[b&15]&-2139062144;break;case 8:this.A.ub=b|b<<8|b<<16|b<<24}};l.Nk=function(){return ur(this.I)};
|
||||
l.nm=function(a,b){a=this.I;a.Sf=a.oc;a.oc=b&31};l.Mk=function(){return vr(this.I)};l.mm=function(a,b){wr(this,this.I,b)};l.Ok=function(){return this.I.Ec};l.om=function(a,b){this.I.Ec=b;Hq(this,!1)};l.Lk=function(){return this.I.af};l.lm=function(a,b){this.I.af!==b&&(this.I.af=b,or(this,!1))};l.Pk=function(){return xr(this,this.I)};function ur(a){if(a.dc)var b=a.oc;return b}function vr(a){var b;a.dc&&a.oc<a.pg&&(b=a.Ua[a.oc]);return b}
|
||||
function wr(a,b,c){if(b.oc<b.pg){if(yr||b.Ua[b.oc]!==c)b.Ua[b.oc]=c;if(b.oc==hp||b.oc==gp)rr(a,b),b.We=b.fh;(9==b.oc&&8!=b.Sf||b.oc==Kp&&223==c)&&Hq(a,!0);Iq(a)}}function xr(a,b){var c=rr(a,b);b===a.A?(c|=b.Z&48^48,b.He=!1):c=(b.Z^=9)|240;return b.Z=c}var yr=!0,nr=1,dr=2,vq=3,mr=5,lr=6,xq=7,hr=13,ir=14,br=15,cr=16,jr=17,kr=18,er=19,fr=20,gr=21,ar=255,rq=60,Qq=1,Pq=3,eq=Qq,bq=Pq,Tn=5,Vn=7,Yp={mda:[eq,xq],cga:[bq,vq],ega:[Tn,vq],vga:[Vn,vq]},wp={2:{Lf:15700,Kf:208,Qf:85,Rf:96}};
|
||||
wp[hk]={Lf:18432,Kf:364,Qf:85,Rf:96};wp[4]={Lf:21850,Kf:364,Qf:85,Rf:96};wp[7]={Lf:16700,Kf:480,Qf:85,Rf:83};var wq={6:[1,hk,!0],7:[2,hk,!0],8:[6,hk,!0],9:[4,hk,!0],10:[hk,1,!0],11:[hk,2,!0],0:[1,hk,!1],1:[2,hk,!1],2:[6,hk,!1],3:[4,hk,!1],4:[hk,1,!1],5:[hk,2,!1]},Zp=[];Zp[nr]=[40,25,1,0,Pq];Zp[vq]=[80,25,1,0,Pq];Zp[4]=[320,200,8,192];Zp[lr]=[640,200,16,192];Zp[xq]=[80,25,1,0,Qq];Zp[hr]=[320,200,8];Zp[ir]=[640,200,8];Zp[br]=[640,350,8];Zp[cr]=[640,350,8];Zp[jr]=[640,480,8];Zp[kr]=[640,480,8];
|
||||
Zp[er]=[320,200,1];Zp[fr]=[320,240,4];Zp[gr]=[320,400,4];Zp[0]=Zp[nr];Zp[dr]=Zp[vq];Zp[mr]=Zp[4];
|
||||
var Eq=0,Cq=7,Gq=8,Dq=0,Fq=112,Bq=128,qr=256,Xq=512,Rq=[[0,0,0,255],[127,192,127,255],[127,192,127,255],[127,255,127,255],[127,255,127,255]],Sq=[0,1,2,2,2,2,2,2,0,3,4,4,4,4,4,4],Kq=[[0,0,0,255],[0,0,170,255],[0,170,0,255],[0,170,170,255],[170,0,0,255],[170,0,170,255],[170,85,0,255],[170,170,170,255],[85,85,85,255],[85,85,255,255],[85,255,85,255],[85,255,255,255],[255,85,85,255],[255,85,255,255],[255,255,85,255],[255,255,255,255]],Mq=[2,4,6],Lq=[3,5,Cq],Nq=[0,1,2,3,4,5,20,7,56,57,58,59,60,61,62,63],
|
||||
Xp=[0,255,65280,65535,16711680,16711935,16776960,16777215,-16777216,-16776961,-16711936,-16711681,-65536,-65281,-256,-1],tr=[0];tr[128]=1;tr[32768]=2;tr[32896]=3;tr[8388608]=4;tr[8388736]=5;tr[8421376]=6;tr[8421504]=7;tr[-2147483648]=8;tr[-2147483520]=9;tr[-2147450880]=10;tr[-2147450752]=11;tr[-2139095040]=12;tr[-2139094912]=13;tr[-2139062272]=14;tr[-2139062144]=15;var dp=[];dp[eq]=["MDA",948,720896,4096,0,hk];dp[bq]=["CGA",980,753664,16384,0,2];dp[Tn]=["EGA",980,753664,16384,65536,4];
|
||||
dp[Vn]=["VGA",980,753664,16384,262144,7];
|
||||
var $p=0,oq=1,nq=2,mq=3,uq=[[1036,1038,1033],[1037,1032,1039],[1035,1040,1034]],cq={948:Y.prototype.il,949:Y.prototype.hl,952:Y.prototype.jl,954:Y.prototype.kl},dq={948:Y.prototype.Km,949:Y.prototype.Jm,952:Y.prototype.Lm},fq={980:Y.prototype.Nk,981:Y.prototype.Mk,984:Y.prototype.Ok,985:Y.prototype.Lk,986:Y.prototype.Pk},gq={980:Y.prototype.nm,981:Y.prototype.mm,984:Y.prototype.om,985:Y.prototype.lm},hq={960:Y.prototype.Dk,961:Y.prototype.ak,962:Y.prototype.ul,964:Y.prototype.sl,965:Y.prototype.rl,
|
||||
974:Y.prototype.bl,975:Y.prototype.al},iq={954:Y.prototype.zj,960:Y.prototype.yj,961:Y.prototype.yj,962:Y.prototype.Mm,964:Y.prototype.Sm,965:Y.prototype.Rm,970:Y.prototype.Fm,972:Y.prototype.Em,974:Y.prototype.Dm,975:Y.prototype.Cm,986:Y.prototype.zj},jq={963:Y.prototype.vl,966:Y.prototype.Uk,967:Y.prototype.Vk,969:Y.prototype.Tk,970:Y.prototype.wl,972:Y.prototype.xl},kq={963:Y.prototype.Um,966:Y.prototype.tm,967:Y.prototype.um,968:Y.prototype.vm,969:Y.prototype.sm};
|
||||
Sa(function(){for(var a=jb(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=kb(c),e=document.createElement("canvas");if(void 0===e||!e.getContext){c.innerHTML="<br/>Missing <canvas> support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.height="auto";0<=Ga().indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,
|
||||
e,d.screenWidth,d.screenHeight),c.onresize(null));var f=+(Oa("aspect")||d.aspect);f&&.3<=f&&3.33>=f&&(Ra("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d");d=new Y(d,e,g,f,c);ib(d,c)}});
|
||||
function zr(a){u.call(this,"ParallelPort",a);this.G=a.adapter;switch(this.G){case 1:this.D=956;this.C=7;break;case 2:this.D=888;this.C=7;break;case 3:this.D=632;this.C=5;break;default:q("Unrecognized parallel adapter #"+this.G);return}this.A=this.B=null;a=a.binding;"console"==a?this.B="":gb(this,a,Ar)}ja(zr,u);l=zr.prototype;l.Ab=function(a,b,c){switch(b){case Ar:return this.ja[b]=this.A=c,!0}return!1};
|
||||
l.jc=function(a,b,c,d){this.oa=b;this.R=c;this.Ea=d;this.U=Ab(a,"ChipSet");kc(b,this,Br,this.D);mc(b,this,Cr,this.D);v(this)};l.Rb=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Qb=function(a){return a?this.save():!0};l.reset=function(){Dr(this)};l.save=function(){var a=new Qe(this),b=0,c=[];c[b++]=this.F;c[b++]=this.Fb;c[b]=this.Fe;a.set(0,c);return a.data()};l.restore=function(a){return Dr(this,a[0])};
|
||||
function Dr(a,b){var c=0;void 0===b&&(b=[0,0,0]);a.F=b[c++];a.Fb=b[c++];a.Fe=b[c];return!0}l.Wk=function(){return this.F};l.tl=function(){return this.Fb};l.Sk=function(){return this.Fe};
|
||||
l.wm=function(a,b){this.F=b;this.Fb|=Er;a=!1;this.A&&(8==b?this.A.value=this.A.value.slice(0,-1):(this.A.value+=String.fromCharCode(b),this.A.scrollTop=this.A.scrollHeight),a=!0);if(null!=this.B){if(10==b||1024<=this.B.length)this.qb(this.B),this.B="";10!=b&&(this.B+=String.fromCharCode(b));a=!0}a&&(this.Fb&=~Er);Fr(this)};l.rm=function(a,b){this.Fe=b;Fr(this)};function Fr(a){a.U&&a.C&&(a.Fe&Gr&&!(a.Fb&Er)?Jf(a.U,a.C):Hf(a.U,a.C))}
|
||||
var Ar="buffer",Er=64,Gr=16,Br={0:zr.prototype.Wk,1:zr.prototype.tl,2:zr.prototype.Sk},Cr={0:zr.prototype.wm,2:zr.prototype.rm};Sa(function(){for(var a=jb(document,"pcx86","parallel"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new zr(d);ib(d,c)}});
|
||||
function Hr(a){u.call(this,"SerialPort",a);this.fa=a.adapter;switch(this.fa){case 1:this.ba=1016;this.M=4;break;case 2:this.ba=760;this.M=3;break;default:q("Unrecognized serial adapter #"+this.fa);return}this.C=this.I=null;this.ma=a.tabSize||0;this.ka=a.charBOL||0;this.K=this.pa=0;this.qa=Ir|Jr;this.N=!0;a=a.binding;"console"==a?this.I="":gb(this,a,Kr);this.F=this.aa=this.W=null;this.exports={connect:this.oi,receiveData:this.ve,receiveStatus:this.$j}}ja(Hr,u);l=Hr.prototype;
|
||||
l.Uh=function(a,b,c){var d=null;a!=this.Be||this.F||(this.F=b,this.W=c,this.N=!1,d=this);return d};l.Ab=function(a,b,c){var d=this;switch(b){case Kr:return this.ja[b]=this.C=c,this.C.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64<b&&(b-=64),d.ve(b);return!0},this.C.onkeypress=function(a){a=a||window.event;d.ve(a.which||a.keyCode);a.preventDefault&&a.preventDefault();return!0},this.C.removeAttribute("readonly"),!0}return!1};
|
||||
l.jc=function(a,b,c,d){this.na=a;this.oa=b;this.R=c;this.Ea=d;var e=this;this.ra=Nc(this.R,this.id+".receive",function(){e.ve()});this.ua=Nc(this.R,this.id+".transmit",function(){e.A=e.A|Lr|Mr});this.U=Ab(a,"ChipSet");kc(b,this,Nr,this.ba);mc(b,this,Or,this.ba);v(this)};
|
||||
l.oi=function(a){if(!this.F){var b=Mc(this.na,"connection");if(b){var c=b.split("->");if(2==c.length){var d=xa(c[0]);if(d!=this.Be)return;c=xa(c[1]);if(this.F=mb(c)){var e=this.F.exports;if(e){var f=e.connect;f&&f.call(this.F,this.N);if(this.aa=e.receiveData){this.N=a;this.W=e.receiveStatus;this.status("Connected "+this.Dd+"."+d+" to "+c);return}}}}this.status("Unable to establish connection: "+b)}}};
|
||||
l.Rb=function(a,b){if(!b)if(this.oi(this.N),!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Qb=function(a){return a?this.save():!0};l.reset=function(){Pr(this)};l.save=function(){var a=new Qe(this),b=0,c=[];c[b++]=this.da;c[b++]=this.ia;c[b++]=this.G;c[b++]=this.L;c[b++]=this.D;c[b++]=this.J;c[b++]=this.X;c[b++]=this.A;c[b++]=this.B;c[b]=this.H;a.set(0,c);return a.data()};l.restore=function(a){return Pr(this,a[0])};
|
||||
function Pr(a,b){var c=0;void 0===b&&(b=[0,0,Qr,0,Rr,0,0,Lr|Mr,a.qa,[]]);a.da=b[c++];a.ia=b[c++];a.G=b[c++];a.L=b[c++];a.D=b[c++];a.J=b[c++];a.X=b[c++];a.A=b[c++];a.B=b[c++];a.H=b[c];return!0}l.ve=function(a){if(null!=a)if("number"==typeof a)this.H.push(a);else if("string"==typeof a)for(var b=0;b<a.length;b++)this.H.push(a.charCodeAt(b));else this.H=this.H.concat(a);Sr(this);return!0};
|
||||
l.$j=function(a){var b=this.B;this.B&=~(Ir|Jr);a&32&&(this.B=this.B|Ir|Tr);a&64&&(this.B=this.B|Jr|Ur);b!=this.B&&Vr(this)};function Sr(a){0<a.H.length&&!(a.A&Wr)&&(a.da=a.H.shift(),a.A|=Wr,a.H.length&&a.R&&Zc(a.R,a.ra,1E3/(1843200/((a.G||1)<<7))|0));Vr(a)}l.ql=function(){var a=this.J&Xr?this.G&255:this.da;this.A&=~Wr;Sr(this);return a};l.cl=function(){return this.J&Xr?this.G>>8:this.L};l.dl=function(){var a=this.D;this.D|=Rr;return a};l.el=function(){return this.J};l.gl=function(){return this.X};
|
||||
l.fl=function(){return this.A};l.ll=function(){var a=this.B;this.B&=~(Tr|Ur);return a};
|
||||
l.Tm=function(a,b){if(this.J&Xr)this.G=this.G&-256|b;else{this.ia=b;this.A&=~(Lr|Mr);this.aa&&this.aa.call(this.F,b);if(this.C){if(13==b)this.K=0;else if(8==b)this.C.value=this.C.value.slice(0,-1),0<this.K&&this.K--;else{var c;13!=b&&10!=b&&(c=ya[b]);a=c=c?"<"+c+">":String.fromCharCode(b);c=a.length;32>b&&1==c&&(c=0);9==b&&(c=this.ma||8,c-=this.K%c,this.ma&&(a=" ".slice(0,c)));!this.K&&c&&(10!=this.pa&&(a="\n"+a),this.ka&&(a=String.fromCharCode(this.ka)+a));
|
||||
this.C.value+=a;this.C.scrollTop=this.C.scrollHeight;this.K+=c}this.pa=b}else if(null!=this.I){if(10==b||1024<=this.I.length)this.qb(this.I),this.I="";10!=b&&(this.I+=String.fromCharCode(b))}this.R&&Zc(this.R,this.ua,1E3/(1843200/((this.G||1)<<7))|0);Vr(this)}};l.Gm=function(a,b){this.J&Xr?this.G=this.G&255|b<<8:this.L=b};l.Hm=function(a,b){this.J=b};
|
||||
l.Im=function(a,b){a=b^this.X;this.X=b;a&(Yr|Zr)&&this.W&&(a=0,this.N?(a|=b&Zr?32:0,a|=b&Yr?320:0):(a|=b&Zr?16:0,a|=b&Yr?1048576:0),this.W.call(this.F,a))};function Vr(a){var b=-1;a.A&Wr&&a.L&$r?b=as:a.A&Lr&&a.L&bs?b=cs:a.B&(Tr|Ur)&&a.L&ds&&(b=es);0<=b?(a.D&=~(Rr|fs),a.D|=b,a.U&&a.M&&Jf(a.U,a.M,100)):(a.D|=Rr,a.U&&a.M&&Hf(a.U,a.M))}
|
||||
var Kr="buffer",Qr=384,$r=1,bs=2,ds=8,Rr=1,as=4,cs=2,es=0,fs=6,Xr=128,Yr=1,Zr=2,Wr=1,Lr=32,Mr=64,Tr=1,Ur=2,Ir=16,Jr=32,Nr={0:Hr.prototype.ql,1:Hr.prototype.cl,2:Hr.prototype.dl,3:Hr.prototype.el,4:Hr.prototype.gl,5:Hr.prototype.fl,6:Hr.prototype.ll},Or={0:Hr.prototype.Tm,1:Hr.prototype.Gm,3:Hr.prototype.Hm,4:Hr.prototype.Im};Sa(function(){for(var a=jb(document,"pcx86","serial"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Hr(d);ib(d,c)}});
|
||||
function gs(a){u.call(this,"Mouse",a);this.U=a.serial||a.binding;this.X=a.type||(this.U?hs:is);this.W=this.X==hs?"SerialPort":null;this.F=null;this.J=a.scaleMouse;this.dc=this.N=this.M=!1;this.G=[];this.D=[]}ja(gs,u);l=gs.prototype;l.jc=function(a,b,c,d){this.na=a;this.oa=b;this.R=c;this.Ea=d;this.J=Mc(a,"scaleMouse")||this.J;for(c=null;c=Ab(a,"Video",c);)this.G.push(c);this.X==is&&(kc(b,this,js,ks),mc(b,this,ls,ks));v(this)};
|
||||
l.Rb=function(a,b){if(!b){if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;if(this.W&&!this.F){for(a=null;(a=Ab(this.na,this.W,a))&&(!a.Uh||!(this.F=a.Uh(this.U,this,this.Zj))););if(this.F)for(this.D=[],a=0;a<this.G.length;a++)b=this.G[a],b.K=this,(b=b.F)&&this.D.push(b);else q(this.id+": "+this.W+" "+this.U+" unavailable")}this.dc?ms(this):ns(this)}return!0};l.Qb=function(a){return a?this.save():!0};l.reset=function(){os(this)};
|
||||
l.save=function(){var a=new Qe(this),b=0,c=[];c[b++]=this.dc;c[b++]=this.A;c[b++]=this.B;c[b++]=this.H;c[b++]=this.I;c[b++]=this.K;c[b++]=this.L;c[b]=this.C;a.set(0,c);return a.data()};l.restore=function(a){return os(this,a[0])};function os(a,b){var c=0;void 0===b&&(b=[!1,-1,-1,0,0,!1,!1,0]);var d=b[c++];a.dc=d;a.A=b[c++];a.B=b[c++];a.H=b[c++];a.I=b[c++];a.K=b[c++];a.L=b[c++];a.C=b[c];a.C&(Yr|Zr)&&(a.C=(a.C&Yr?1048576:0)|(a.C&Zr?16:0));return!0}l.Xe=function(a){this.M=a};
|
||||
function ms(a){if(!a.N)for(var b=0;b<a.D.length;b++)ps(a,a.D[b])&&(a.N=!0)}function ns(a){if(a.N)for(var b=0;b<a.D.length;b++){var c=a.D[b];c&&(c.style.cursor="auto")}}function ps(a,b){return b?(b.addEventListener("mousemove",function(b){qs(a,b)},!1),b.addEventListener("mousedown",function(b){qs(a,b,!0)},!1),b.addEventListener("mouseup",function(b){qs(a,b,!1)},!1),b.style.cursor="none",!0):!1}
|
||||
function qs(a,b,c){if(void 0!==c){var d;!(d=!1!==a.M)&&(d=a.G.length)&&(d=a.G[0],d=d.qd?d.Md(!0):!1);d||(a.M=null);a.ie(b.button,c)}else{if(0>a.A||0>a.B)a.A=b.screenX,a.B=b.screenY;a.M?(c=b.movementX||b.mozMovementX||b.webkitMovementX||0,d=b.movementY||b.mozMovementY||b.webkitMovementY||0):(c=b.screenX-a.A,d=b.screenY-a.B);a.A=b.screenX;a.B=b.screenY;a.mg(c,d,a.A,a.B)}}
|
||||
l.ie=function(a,b){if(this.dc&&this.R&&this.R.Y.cb)switch(a){case tq:this.K!=b&&(this.K=b,rs(this));break;case ss:this.L!=b&&(this.L=b,rs(this))}};l.mg=function(a,b){this.dc&&this.R&&this.R.Y.cb&&(a=Math.round(Math.abs(a)*this.J)*Math.sign(a)||Math.sign(a),b=Math.round(Math.abs(b)*this.J)*Math.sign(b)||Math.sign(b),a||b)&&(this.H=a,this.I=b,rs(this))};function rs(a){a.F.ve([64|(a.K?32:0)|(a.L?16:0)|(a.I&192)>>4|(a.H&192)>>6,a.H&63,a.I&63]);a.H=a.I=0}
|
||||
l.Zj=function(a){var b=1048592==(a&1048592);if(b){if(!this.dc){var c=!1;this.C&16||(this.reset(),c=!0);this.C&1048576||(c=!0);c&&this.F.ve([ts,ts]);ms(this);this.dc=b}}else this.dc&&(ns(this),this.dc=b);this.C=a};l.Jk=function(){return 0};l.Kk=function(){return 0};l.Ik=function(){return 0};l.Hk=function(){return 0};l.jm=function(){};l.km=function(){};l.im=function(){};l.hm=function(){};
|
||||
var is="bus",hs="serial",tq=0,ss=2,ks=572,js={0:gs.prototype.Jk,1:gs.prototype.Kk,2:gs.prototype.Ik,3:gs.prototype.Hk},ls={0:gs.prototype.jm,1:gs.prototype.km,2:gs.prototype.im,3:gs.prototype.hm},ts=77;Sa(function(){for(var a=jb(document,"pcx86","mouse"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new gs(d);ib(d,c)}});
|
||||
function us(a,b,c){u.call(this,"Disk",{id:a.Dd+".disk"+ra(++vs,4)});this.controller=a;this.wa=a.wa;this.qb=a.qb;this.na=a.na;this.Ea=a.Ea;this.B=b;this.Pc=b.name;this.me=b.me;this.Bf=this.C=!1;this.create(c,b.kb,b.$a,b.Xa,b.ob);this.G=[];this.J=[];this.D=null;this.L=0;this.K=!1;v(this)}ja(us,u);l=us.prototype;l.jc=function(a,b,c,d){this.Ea=d};l.Rb=function(a,b){b||!this.Bf||this.C||(v(this,!1),this.load(this.Pc,this.F,null,this.lk,this));return!0};l.lk=function(){v(this,!0)};
|
||||
l.Qb=function(a,b){if(this.C){var c,d=0;if(this.K&&!cb("Disk writes are still in progress, shut down anyway?"))return!1;for(;c=ws(this,!1);)if(d=c[0]){this.wa('Unable to save "'+this.Pc+'" (error '+d+")");break}b&&this.C&&(b="action=close&volume="+this.F,b+="&machine="+xs(this.controller),b+="&user="+ys(this.controller),Ea(Fa()+"/api/v1/disk?"+b,null,!0),this.C=!1);!d&&a&&this.wa(this.Pc+" saved")}return!0};
|
||||
l.create=function(a,b,c,d,e){this.mode=a;this.kb=b;this.$a=c;this.Xa=d;this.ob=e;this.A=[];if("preload"!=this.mode){a=Array(this.kb);for(b=0;b<a.length;b++){c=Array(this.$a);for(d=0;d<c.length;d++){e=Array(this.Xa);for(var f=1;f<=e.length;f++)e[f-1]=zs(null,b,d,f,this.ob,"local"==this.mode?0:null);c[d]=e}a[b]=c}this.A=a}this.I=null};
|
||||
l.load=function(a,b,c,d,e){var f=b;if(this.H)return!0;this.Pc=a;this.F=b;this.kh=sa(b);var g=this;this.H=d;this.M=e||this.controller;if(c){var h=new FileReader;h.onload=function(){var a=h.result,b=a?a.byteLength:0,c=oa[b];if(c){g.kb=c[0];g.$a=c[1];g.Xa=c[2];g.ob=c[3]||512;var d=g.ob>>2;var e=c=0;a=new DataView(a,0,b);g.A=Array(g.kb);for(b=0;b<g.A.length;b++)for(var f=g.A[b]=Array(g.$a),k=0;k<f.length;k++)for(var K=f[k]=Array(g.Xa),ca=0;ca<K.length;ca++){for(var na=zs(null,b,k,ca+1,g.ob,0),db=na.data,
|
||||
sc=0;sc<d;sc++,e+=4){var ai=db[sc]=a.getInt32(e,!0);c=c+ai&-1}na.yc=d;K[ca]=na}g.I=c;d=g}else g.wa("Unrecognized disk format ("+b+" bytes)");g.H&&(g.H.call(g.controller,g.B,d,g.Pc,g.F),g.H=null)};h.readAsArrayBuffer(c);return!0}0>b.indexOf("/api/v1/dump")&&(a=ta(b),"json"==a||"gz"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=As(this,b),this.Bf=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d=
|
||||
"&mbhd=0"):ua(b,"/")&&(c="dir"),f=Fa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.me?"":d)+"&format=json"));var k="Loading "+f+"...";return!!Ea(f,null,!0,function(a,b,c){Bs(g,a,b,c)},function(){g.qb(k,tb)})};
|
||||
function Bs(a,b,c,d){var e=null;a.pe=!1;var f=!(!(0>d&&a.na)||a.na.Y.Sb);if(a.Bf)d?a.wa('Unable to connect to disk "'+a.F+'" (error '+d+": "+c+")",f):(a.C=!0,e=a);else if(d)a.wa('Unable to load disk "'+a.Pc+'" (error '+d+": "+b+")",f);else{ab(a.controller.Dd,b,c);try{if(0<sa(a.kh,!0).toLowerCase().indexOf("-readonly"))a.pe=!0;else{var g=c.indexOf("\n");0<g&&1024>g&&0<c.substring(0,g).indexOf("write-protected")&&(a.pe=!0)}var h;"<"==c.charAt(0)?h=["Missing disk image: "+a.Pc]:h=0>c.indexOf("0x")&&
|
||||
'["'!=c.substr(0,2)?JSON.parse(c.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+c+")");if(h.length)if(1==h.length)q(h[0]);else{a.kb=h.length;a.$a=h[0].length;a.Xa=h[0][0].length;var k=h[0][0][0];a.ob=k&&k.length||512;for(d=c=0;d<a.kb;d++)for(f=0;f<a.$a;f++)for(g=0;g<a.Xa;g++)if(k=h[d][f][g]){var m=k.length;void 0===m&&(m=k.length=512);m>>=2;var r=k.pattern;void 0===r&&(r=k.pattern=0);var x=k.data;if(void 0===x){var t=k.bytes;if(void 0!==t&&t.length){for(var z=m<<2,E=t.length;E<
|
||||
z;E++)t[E]=r;Cs(k,t,0)}else k.data=x=[],t&&(k.pattern=r|r<<8|r<<16|r<<24);delete k.bytes}zs(k,d,f);for(z=0;z<x.length;z++)c=c+x[z]&-1}a.A=h;a.I=c;e=a}else q("Empty disk image: "+a.Pc)}catch(O){q("Disk image error ("+b+"): "+O.message)}}a.H&&(a.H.call(a.M,a.B,e,a.Pc,a.F),a.H=null)}function Ds(a,b){var c=a.$a*a.Xa,d=b/c|0;return d<a.kb?(b%=c,a.seek(d,b/a.Xa|0,b%a.Xa+1)):null}function Es(a,b,c){for(var d=1,e=0,f=0;d--;){var g=a.read(b,c++);if(0>g)break;e|=g<<f;f+=8}return e}
|
||||
function zs(a,b,c,d,e,f){a||(a={sector:d,length:e,data:[],pattern:f});a.rk=b;a.sk=c;a.Mc=a.yc=0;a.Fa=!1;return a}function As(a,b){b="action=open&volume="+b+("&mode="+a.mode);b+="&chs="+a.kb+":"+a.$a+":"+a.Xa+":"+a.ob;b+="&machine="+xs(a.controller);b+="&user="+ys(a.controller);return Fa()+"/api/v1/disk?"+b}
|
||||
function Fs(a,b,c,d,e,f,g){if(a.C){var h="action=read&volume="+a.F;h+="&chs="+a.kb+":"+a.$a+":"+a.Xa+":"+a.ob;h=h+("&addr="+b+":"+c+":"+d+":"+e)+("&machine="+xs(a.controller));h+="&user="+ys(a.controller);Ea(Fa()+"/api/v1/disk?"+h,null,f,function(h,m,r){h=[b,c,d,e,f,g];var k=!1,t=h[0],z=h[1],E=h[2],O=h[3];if(!r){m=JSON.parse(m);for(k=0;O--;){var K=a.seek(t,z,E,!0);if(!K)break;Cs(K,m,k);k+=K.length;E++}k=h[4]}(h=h[5])&&h(r,k)})}else g&&g(-1,!1)}
|
||||
function Gs(a,b,c,d,e,f,g){if(a.C){var h={};a.K=!0;h.action="write";h.volume=a.F;h.chs=a.kb+":"+a.$a+":"+a.Xa+":"+a.ob;h.addr=b+":"+c+":"+d+":"+e;h.machine=xs(a.controller);h.user=ys(a.controller);h.data=JSON.stringify(f);Ea(Fa()+"/api/v1/disk",h,g,function(f,h,r){var k=[b,c,d,e,g];f=k[0];h=k[1];var m=k[2],z=k[3];k=k[4];a.K=!1;if(0<=f&&f<a.A.length&&0<=h&&h<a.A[f].length)for(--m;0<z--&&0<=m&&m<a.A[f][h].length;m++){var E=a.A[f][h][m];r?Hs(a,E,!1):E.Fa||(E.Mc=E.yc=0)}k&&Is(a)})}return!1}
|
||||
function Hs(a,b,c){b.Fa=!0;var d=a.G.indexOf(b);0<=d&&(a.G.splice(d,1),a.J.splice(d,1));a.G.push(b);a.J.push(Da());c&&Is(a)}function Is(a){if(a.G.length){var b=a.J[0]+2E3;a.D&&a.L<b&&(clearTimeout(a.D),a.D=null);if(!a.D){var c=Da();b-=c;0>b&&(b=0);2E3<b&&(b=2E3);a.D=setTimeout(function(){ws(a,!0)},b);a.L=c+b}}else a.D&&(clearTimeout(a.D),a.D=null)}
|
||||
function ws(a,b){b&&(a.D=null);var c=a.G[0];if(c){var d=c.rk,e=c.sk;c=c.sector;for(var f=0,g=[],h=c-1;h<a.A[d][e].length;h++){var k=a.A[d][e][h];if(!k.Fa)break;var m=a.G.indexOf(k);a.G.splice(m,1);a.J.splice(m,1);g=g.concat(Js(k));k.Fa=!1;f++}a=Gs(a,d,e,c,f,g,b);return b||a}return!1}l.info=function(){return this.A.length?[this.A.length,this.A[0].length,this.A[0][0].length,this.A[0][0][0].length]:[0,0,0,0]};
|
||||
l.seek=function(a,b,c,d,e){var f=null,g=this.B,h=this.A[a];if(h){var k=h[b];if(!k&&g.eg&&b<g.$a){k=h[b]=Array(g.xd);for(h=0;h<k.length;h++)k[h]=zs(null,a,b,h+1,g.xb,0);this.$a<=b&&(this.$a=b+1)}if(k){for(h=0;h<k.length;h++)if(k[h]&&k[h].sector==c){f=k[h];if(null===f.pattern)if(d)f.pattern=0;else{for(d=1;++h<k.length;)null===k[h].pattern&&d++;Fs(this,a,b,c,d,!!e,function(a,b){a&&(f=null);e&&e(f,b)});return e?null:f}break}!f&&g.eg&&9==g.bb&&(f=k[h]=zs(null,a,b,g.bb,g.xb,0),this.Xa<g.bb&&(this.Xa=g.bb))}}e&&
|
||||
e(f,!1);return f};function Cs(a,b,c){for(var d=a.length>>2,e=Array(d),f=0;f<d;f++)e[f]=b[c]|b[c+1]<<8|b[c+2]<<16|b[c+3]<<24,c+=4;a.data=e}function Js(a){var b=a.length,c=Array(b),d=0;b>>=2;var e=a.data;a=a.pattern;for(var f=0;f<b;f++){var g=f<e.length?e[f]:a;c[d++]=g&255;c[d++]=g>>8&255;c[d++]=g>>16&255;c[d++]=g>>24&255}return c}l.read=function(a,b){var c=-1;if(a&&b<a.length){c=a.data;var d=b>>2;c=(d<c.length?c[d]:a.pattern)>>((b&3)<<3)&255}return c};
|
||||
l.write=function(a,b,c){if(this.pe)return!1;if(b<a.length){if(c!=this.read(a,b,!0)){var d=a.data,e=a.pattern,f=b>>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.yc?f<a.Mc?(a.yc+=a.Mc-f,a.Mc=f):f>=a.Mc+a.yc&&(a.yc+=f-(a.Mc+a.yc)+1):(a.Mc=f,a.yc=1);d[f]=d[f]&~(255<<b)|c<<b;this.C&&Hs(this,a,!0)}return!0}return null};function Ks(a){for(var b="",c=0,d;d=Ds(a,c++);)for(var e=0,f=d.length;e<f;e++)b+=String.fromCharCode(Es(a,d,e));return btoa(b)}
|
||||
l.save=function(){var a=0,b=[];b[a++]=[this.F,this.I,this.kb,this.$a,this.Xa,this.ob];if(!this.C&&!this.pe)for(var c=this.A,d=0;d<c.length;d++)for(var e=0;e<c[d].length;e++)for(var f=0;f<c[d][e].length;f++){var g=c[d][e][f];if(g&&g.yc){for(var h=[],k=0,m=g.Mc,r=g.Mc+g.yc;m<r;)h[k++]=g.data[m++];b[a++]=[d,e,f,g.Mc,h]}}return b};
|
||||
l.restore=function(a){var b=0,c="unsupported restore format";if(a&&0<a.length){var d=0,e=a[d++];e&&2<=e.length&&(!this.A.length&&6<=e.length?this.create("local",e[2],e[3],e[4],e[5]):null!=e[0]&&null!=e[1]&&null!=this.I&&e[1]!=this.I&&(c="original checksum ("+e[1]+") differs from current checksum ("+this.I+")",b=-2));for(this.A.length||(b=-1);d<a.length&&0<=b;){var f=0,g=a[d++],h=g[f++],k=g[f++],m=g[f++];if(h>=this.A.length||k>=this.A[h].length||m>=this.A[h][k].length){c="sector (CHS="+h+":"+k+":"+
|
||||
m+") out of range ("+b+" changes applied)";b=-1;break}if(this.pe){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.A[h][k][m]){for(k=h.data.length;k<e;)h.data[k++]=h.pattern;k=0;h.Mc=e;for(h.yc=f.length;e<g;)h.data[e++]=f[k++];b++}}}0>b&&-2!=b&&this.wa("Unable to restore disk '"+this.Pc+": "+c);return b};var vs=0;
|
||||
function Ls(a){u.call(this,"FDC",a);this.dmaRead=Ls.prototype.Tj;this.dmaWrite=Ls.prototype.Uj;this.dmaFormat=Ls.prototype.hk;this.M=Ms(a.autoMount);this.K=a.sortBy||"name";"none"==this.K&&(this.K=null);this.B=[];this.L=!La("Mobi")&&window&&"FileReader"in window;this.exports={loadDisk:this.vi,wait:this.yn}}ja(Ls,u);l=Ls.prototype;
|
||||
l.Ab=function(a,b,c){var d=this;switch(b){case "listDisks":this.ja[b]=c;if(this.K){b=[];for(a=0;a<c.options.length;a++)b.push(c.options[a]);b.sort(function(a,b){return"path"!=d.K?a.text.localeCompare(b.text):a.value.localeCompare(b.value)});for(a=0;a<b.length;a++)try{c.options[a]=b[a]}catch(e){break}}c.onchange=function(){Ns(d)};return!0;case "descDisk":case "listDrives":return this.ja[b]=c,c.onchange=function(){var a=qa(c.value,10);null!=a&&Os(d,a)},!0;case "loadDisk":return this.ja[b]=c,c.onclick=
|
||||
function(){d.vi()},!0;case "saveDisk":if(!this.L){c.parentNode.removeChild(c);break}this.ja[b]=c;c.onclick=function(){var a=d.ja.listDrives;a&&a.options&&d.A&&((a=d.A[qa(a.value,10)||0])?(a=a.sa)?(a=Qa(Ks(a),"octet-stream",!0,a.kh.replace(".json",".img")),q(a)):d.wa("No diskette loaded in drive."):d.wa("No diskette drive selected."))};return!0;case "mountDisk":if(this.L)return this.ja[b]=c,c.onchange=function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length},c.onsubmit=function(a){if(a=
|
||||
a.currentTarget[1].files[0]){var b=a.name;Ps(d,sa(b,!0),b,a)}return!1},!0;c.parentNode.removeChild(c)}return!1};l.jc=function(a,b,c,d){this.oa=b;this.R=c;this.Ea=d;this.na=a;this.U=Ab(a,"ChipSet");Ms(Mc(this.na,"autoMount"),this.M);Qs(this);kc(b,this,Rs);mc(b,this,Ss);Ts(this,"None","",!0);this.L&&Ts(this,"Local Disk","?");Ts(this,"Remote Disk","??");Us(this)||v(this)};
|
||||
function Ms(a,b){if(a){if("string"==typeof a)try{a=eval("("+a+")")}catch(d){q("FDC auto-mount error: "+d.message+" ("+a+")"),a={}}}else a={};for(var c in a)b&&(b[c]=a[c]);return a}
|
||||
l.Rb=function(a,b){if(!b){if(!a){if(this.reset(),this.na.W){this.B=[];for(a=0;a<this.A.length;a++)Vs(this,a,!0);Us(this,!0)}}else if(!this.restore(a))return!1;if(a=this.ja.listDrives){for(;a.firstChild;)a.removeChild(a.firstChild);a.value="";for(b=0;b<this.N;b++){var c=document.createElement("option");c.value=b;c.text=String.fromCharCode(65+b)+":";a.appendChild(c)}0<this.N&&(a.value="0",Os(this,0))}}return!0};l.Qb=function(a){return a?this.save():!0};l.reset=function(){Qs(this)};
|
||||
l.save=function(){var a=new Qe(this);a.set(0,Ws(this));return a.data()};l.restore=function(a){return Qs(this,a[0])};
|
||||
function Qs(a,b){var c=0,d=!0;b||(b=[0,0,Xs,Array(9),0,0,0,[]]);a.Na=b[c++];c++;a.Z=b[c++];a.G=b[c++];a.D=b[c++];a.C=b[c++];a.I=b[c++];var e=b[c++];var f=b[c++];null!=f&&(a.B=f);void 0===a.A&&(a.N=4,a.U&&(a.N=+gk(a.U,yj,void 0)),a.A=Array(4));for(f=0;f<a.A.length;f++){var g=a.A[f];if(void 0===g){g=a.A[f]={};if(a.U)a:{var h=a.U;if(f<+gk(h,yj,void 0)){if(!h.L){h=360;break a}if(f<h.L.length){h=h.L[f];break a}}h=0}else h=0;switch(h){case 160:case 180:g.$a=1;default:g.kb=40;g.Xa=9;break;case 720:g.kb=
|
||||
80;g.Xa=9;break;case 1200:g.kb=80;g.Xa=15;break;case 1440:g.kb=80,g.Xa=18}}var k=a,m=f,r=e[f],x=0;h=!0;g.Na=m;g.Kd=g.le=!1;g.qe=null;void 0===r&&(r=[Ys,!0,0,2,0]);"boolean"==typeof r[1]&&(r[1]=[Zs,g.kb||40,g.$a||r[3],g.Xa||9,g.ob||512,r[1],g.Jf,g.Oe,g.Pe]);g.lb=r[x++];var t=r[x++];g.name=t[0];g.kb=t[1];g.$a=t[2];g.Xa=t[3];g.ob=t[4];g.me=t[5];(g.Jf=t[6])?(g.Oe=t[7],g.Pe=t[8]):(g.Jf=g.kb,g.Oe=g.$a,g.Pe=g.Xa);g.Wa=r[x++];g.wd=r[x++];g.yb=r[x++];g.wd=100<=g.wd?g.wd-100:g.wd-g.yb;g.bb=r[x++];g.xd=r[x++];
|
||||
g.xb=r[x++];g.Ra=r[x++];g.Va=null;g.sa||(g.Wd="");var z=r[x++];102==z&&(z=!1);"boolean"==typeof z?(t=r[x++],r=r[x],z?(x=k.A[m],Vs(k,m,!0,!0),x.le=!0,m=new us(k,x,"preload"),k.di(x,m,t,r,!0)):$s(k,m,t,r,!0)?g.sa&&r&&at(k,t,r,g.sa):v(k,!1)):void 0!==z&&g.sa&&0>g.sa.restore(z)&&(h=!1);h&&g.sa&&void 0!==g.Ra&&(g.Va=g.sa.seek(g.yb,g.Wa,g.bb));h||(d=!1)}a.H=b[c++]||0;a.F=b[c]||bt;return d}
|
||||
function Ws(a){var b=0,c=[];c[b++]=a.Na;c[b++]=0;c[b++]=a.Z;c[b++]=a.G;c[b++]=a.D;c[b++]=a.C;c[b++]=a.I;for(var d=b++,e=0,f=[],g=0;g<a.A.length;g++){var h=e++,k=a.A[g],m=0,r=[];r[m++]=k.lb;r[m++]=[k.name,k.kb,k.$a,k.Xa,k.ob,k.me,k.Jf,k.Oe,k.Pe];r[m++]=k.Wa;r[m++]=k.wd+100;r[m++]=k.yb;r[m++]=k.bb;r[m++]=k.xd;r[m++]=k.xb;r[m++]=k.Ra;r[m++]=k.le;r[m++]=k.Kj;r[m]=k.Wd;f[h]=r}c[d]=f;d=b++;for(e=0;e<a.A.length;e++)f=a.A[e],f.sa&&ct(a,f.Wd,f.sa);c[d]=a.B;c[b++]=a.H;c[b]=a.F;return c}
|
||||
function Us(a,b){b||(a.J=0);for(var c in a.M){var d=a.M[c],e;if(!(e=d.path))a:{if(e=d.name){var f=a.ja.listDisks;if(f&&f.options)for(var g=0;g<f.options.length;g++){var h=f.options[g];if(h.text==e){e=h.value;break a}}}e=""}e&&(f=c.charCodeAt(0)-65,0<=f&&f<a.A.length?!$s(a,f,d.name||dt(a,e)||sa(e,!0),e,!0)&&b&&v(a,!1):a.wa("Incorrect auto-mount settings for drive "+c+" ("+JSON.stringify(d)+")"))}return!!a.J}
|
||||
l.vi=function(){var a=this.ja.listDisks;return a?Ps(this,a.options[a.selectedIndex].text,a.value):!1};
|
||||
function Ps(a,b,c,d){var e,f=a.ja.listDrives;if(f&&!isNaN(e=qa(f.value,10))&&0<=e&&e<a.A.length){if(!c)return Vs(a,e),!0;if("?"==c)return a.wa('Use "Choose File" and "Mount" to select and load a local disk.'),!1;if("??"==c){c=window.prompt("Enter the URL of a remote disk image.","")||"";if(!c)return!1;b=sa(c)}for(;0>$s(a,e,b,c,!1,d);){if(!window.confirm("Click OK to reload the original disk and discard any changes."))return!1;var g=a,h=c;for(f=0;f<g.B.length;f++)if(g.B[f][1]==h){g.B.splice(f,1);break}Vs(a,
|
||||
e,!1,!0)}return!0}a.wa("Unable to load the selected drive");return!1}function $s(a,b,c,d,e,f){var g=a.A[b];if(d&&(d=d.replace("/disks/pc/","/disks/pcx86/"),g.Wd.toLowerCase()!=d.toLowerCase())){Vs(a,b,e,!0);if(g.Kd)return a.wa("Drive "+b+" busy"),0;g.Kd=!0;e&&(g.Jd=!0,a.J++);g.le=!!f;return(new us(a,g,"preload")).load(c,d,f,a.di)?1:0}return-1}
|
||||
l.di=function(a,b,c,d,e){a.Kd=!1;if(b){var f=b.info();if(b&&f[0]>a.kb||f[1]>a.$a)this.wa('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.Na)),b=null}b?(a.sa=b,a.Kj=c,a.Wd=d,dt(this,d)||Ts(this,c,d),at(this,c,d,b),f=b.info(),this.H|=et,a.qe||this.wa('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.Na),a.Jd||e),a.Jf=f[0],a.Oe=f[1],a.Pe=f[2],this.na&&Yc(this.na)):a.le=!1;a.Jd&&(a.Jd=!1,--this.J||v(this));Os(this,a.Na);a.qe&&(a.qe(),a.qe=null)};
|
||||
function Ts(a,b,c,d){if((a=a.ja.listDisks)&&a.options){for(var e=0;e<a.options.length;e++)if(a.options[e].value==c)return;e=document.createElement("option");e.text=b;e.value=c;d&&a.childNodes[0]?a.insertBefore(e,a.childNodes[0]):a.appendChild(e)}}function dt(a,b){if((a=a.ja.listDisks)&&a.options)for(var c=0;c<a.options.length;c++){var d=a.options[c];if(d.value==b)return d.text}return null}
|
||||
function Os(a,b){if(0<=b&&b<a.A.length){var c=a.A[b],d=a.ja.listDisks;a=a.ja.listDrives;if(d&&a&&d.options&&a.options&&(a=qa(a.value,10),c=c.le?"?":c.Wd,!isNaN(a)&&a==b)){for(b=0;b<d.options.length;b++)if(d.options[b].value==c){d.selectedIndex!=b&&(d.selectedIndex=b);break}b==d.options.length&&(d.selectedIndex=0)}}}
|
||||
function Ns(a){var b=a.ja.listDisks,c=a.ja.descDisk,d=b.options[b.selectedIndex];if(c&&d){b={};if(d=d.getAttribute("data-value"))try{b=eval("("+d+")")}catch(e){q(a.type+" option error: "+e.message)}a=b.desc;void 0===a&&(a="");b=b.href;void 0!==b&&(a='<a href="'+b+'" target="_blank">'+a+"</a>");c.innerHTML=a}}l.yn=function(a){for(var b=0;b<this.A.length;b++){var c=this.A[b];if(c&&c.Kd)return c.qe||(c.qe=a),!1}return!0};
|
||||
function Vs(a,b,c,d){var e=a.A[b];e.sa&&(ct(a,e.Wd,e.sa),e.Kj="",e.Wd="",e.sa=null,e.le=!1,a.H|=et,d||a.wa("Drive "+String.fromCharCode(65+b)+" unloaded",c),c||d||Os(a,b))}function at(a,b,c,d){var e;for(e=0;e<a.B.length;e++)if(a.B[e][1]==c){d.restore(a.B[e][2]);return}a.B[e]=[b,c,[]]}function ct(a,b,c){var d;for(d=0;d<a.B.length;d++)if(a.B[d][1]==b){a.B[d][2]=c.save();break}}l.zm=function(a,b){b&ft?this.I&ft||this.I>&&this.U&&Jf(this.U,6):Qs(this);this.I=b};l.Yk=function(){return 80};l.$k=function(){return this.Z};
|
||||
l.Xk=function(){var a=0;this.D<this.C&&(a=this.G[this.D]);this.I>&&this.U&&Hf(this.U,6);++this.D>=this.C&&(this.Z&=~(ht|it),this.D=this.C=0);return a};
|
||||
l.ym=function(a,b){this.C<this.G.length&&(this.G[this.C++]=b);a=this.G[0]&jt;if(void 0!==kt[a]&&this.C>=kt[a].gd){b=!1;this.D=0;a=lt(this);var c=a&jt;switch(c){case mt:lt(this);lt(this);nt(this);break;case ot:var d=lt(this);this.Na=d&3;var e=this.A[this.Na];nt(this);pt(this,(e.lb&qt)>>>24);break;case rt:case st:d=lt(this);b=d>>2&1;this.Na=d&3;e=this.A[this.Na];e.Wa=b;d=e.yb=lt(this);var f=lt(this);var g=e.bb=lt(this);var h=lt(this);e.xb=128<<h;e.xd=lt(this);lt(this);lt(this);c==st?(c=e,c.lb=tt|ut,
|
||||
c.sa&&(c.Va=null,c.lb=vt,this.U&&(zl(this.U,2,this,"dmaRead",c),vl(this.U,2)))):(c=e,c.lb=tt|ut,c.sa&&(c.sa.pe?c.lb=wt|ut:(c.Va=null,c.lb=vt,this.U&&(zl(this.U,2,this,"dmaWrite",c),vl(this.U,2)))));xt(this,e,a,b,d,f,g,h);b=!0;break;case yt:d=lt(this);this.Na=d&3;e=this.A[this.Na];e.yb=e.wd=0;e.lb=zt|At;nt(this);b=!0;break;case Bt:e=this.A[this.Na];e.Wa=0;nt(this);pt(this,e.Na|e.Wa<<2|e.lb&Ct);pt(this,e.yb);this.Na=this.Na+1&3;break;case Dt:d=lt(this);b=d>>2&1;this.Na=d&3;e=this.A[this.Na];d=e.yb;
|
||||
f=e.Wa=b;g=e.bb=1;h=0;e.lb=vt;e.sa&&(e.Va=e.sa.seek(e.yb,e.Wa,e.bb))?h=e.Va.length>>8:e.lb=tt|ut;xt(this,e,a,b,d,f,g,h);b=!0;break;case Et:d=lt(this);b=d>>2&1;this.Na=d&3;e=this.A[this.Na];d=e.yb;f=e.Wa=b;g=1;h=lt(this);e.xb=128<<h;e.xd=lt(this);lt(this);e.Vh=lt(this);c=e;c.lb=tt|ut;c.sa&&(c.Va=null,c.lb=vt,this.U&&(c.he=0,c.Gc=Array(4),c.eg=!0,c.uf=0,zl(this.U,2,this,"dmaFormat",c),vl(this.U,2),c.eg=!1));xt(this,e,a,b,d,f,g,h);b=!0;break;case Ft:d=lt(this),this.Na=d&3,e=this.A[this.Na],e.Wa=d>>2&
|
||||
1,d=lt(this),e.yb+=d-e.wd,0>e.yb&&(e.yb=0),e.yb>=e.kb&&(e.yb=e.kb-1),e.wd=d,e.lb=zt,e.yb||(e.lb|=At),nt(this),b=!0}0<this.C&&(this.Z=this.Z|ht|it);this.I>&&(!e||e.lb&tt||!b||this.U&&Jf(this.U,6))}};l.Zk=function(){var a=this.H;this.H&=~et;return a};l.xm=function(a,b){this.F=b};function xt(a,b,c,d,e,f,g,h){nt(a);pt(a,b.Na|b.Wa<<2|b.lb&Ct);pt(a,(b.lb&Gt)>>>8);pt(a,(b.lb&Ht)>>>16);var k=0;if(e!=b.yb||f!=b.Wa)k=g=1;c&It&&(f^=k,d||(k=0));pt(a,e+k);pt(a,f);pt(a,g);pt(a,h)}
|
||||
function lt(a){var b=a.G[a.D];a.D++;return b}function nt(a){a.D=a.C=0}function pt(a,b){a.G[a.C++]=b}l.Tj=function(a,b,c){if(void 0===b||0>b){b=-1;var d=null,e=0;if(!a.lb&&a.sa){do{if(a.Va&&(e=a.Ra,0<=(b=a.sa.read(a.Va,a.Ra++)))){d=a.Va;break}a.Va=a.sa.seek(a.yb,a.Wa,a.bb);if(!a.Va){a.lb=Jt|ut;break}a.Ra=0;Kt(a)}while(1)}c(b,!1,d,e)}else c(-1,!1)};l.Uj=function(a,b){return void 0!==b&&0<=b?Lt(a,b):-1};
|
||||
l.hk=function(a,b){if(void 0!==b&&0<=b)a:if(a.lb)a=-1;else{a.Gc[a.he++]=b;if(a.he==a.Gc.length){a.yb=a.Gc[0];a.Wa=a.Gc[1];a.bb=a.Gc[2];a.xb=128<<a.Gc[3];for(var c=a.he=0;c<a.xb;c++)if(0>Lt(a,a.Vh)){a=-1;break a}a.uf++}a.uf>=a.xd&&(b=-1);a=b}else a=-1;return a};function Lt(a,b){if(a.lb||!a.sa)return-1;do{if(a.Va&&a.sa.write(a.Va,a.Ra++,b))break;a.Va=a.sa.seek(a.yb,a.Wa,a.bb);if(!a.Va){a.lb=Mt|ut;b=-1;break}a.Ra=0;Kt(a)}while(1);return b}
|
||||
function Kt(a){a.bb++;a.bb>=a.Pe+1&&(a.bb=1,a.Wa++,a.Wa>=a.Oe&&(a.Wa=0,a.yb++))}var Zs="Floppy Drive",ft=4,gt=8,it=16,ht=64,Xs=128,mt=3,ot=4,rt=5,st=6,yt=7,Bt=8,Dt=10,Et=13,Ft=15,jt=31,It=128,vt=0,tt=8,zt=32,ut=64,Ys=192,Ct=255,wt=512,Jt=1024,Mt=8192,Gt=65280,Ht=16711680,At=268435456,qt=-16777216,et=128,bt=0;aa={};
|
||||
var kt={3:{gd:3,yd:0,name:aa.Eo},4:{gd:2,yd:1,name:aa.Co},5:{gd:9,yd:7,name:aa.Io},6:{gd:9,yd:7,name:aa.yo},7:{gd:2,yd:0,name:aa.Ao},8:{gd:1,yd:2,name:aa.Do},10:{gd:2,yd:7,name:aa.zo},13:{gd:6,yd:7,name:aa.vo},15:{gd:3,yd:0,name:aa.Bo}},Rs={1009:Ls.prototype.Yk,1012:Ls.prototype.$k,1013:Ls.prototype.Xk,1015:Ls.prototype.Zk},Ss={1010:Ls.prototype.zm,1013:Ls.prototype.ym,1015:Ls.prototype.xm};
|
||||
Sa(function(){for(var a=jb(document,"pcx86","fdc"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Ls(d);ib(d,c)}});function Z(a){u.call(this,"HDC",a);this.dmaRead=Z.prototype.Vj;this.dmaWrite=Z.prototype.Wj;this.dmaWriteBuffer=Z.prototype.ik;this.dmaWriteFormat=Z.prototype.jk;this.X=[];this.ia=a.drives;this.L=(a=a.type)&&"AT"==a.toUpperCase()||!1;this.ua=!La("Mobi")&&window&&"FileReader"in window}ja(Z,u);l=Z.prototype;
|
||||
l.Ab=function(a,b,c){var d=this;switch(b){case "saveHD0":case "saveHD1":if(this.ua)return this.ja[b]=c,c.onclick=function(a){return function(){var b=d.A&&d.A[a];if(b&&b.sa){b=b.sa;var c=b.kh||b.Pc,e=c.lastIndexOf(".");0<=e&&(c=c.substr(0,e));c+=".img";b=Qa(Ks(b),"octet-stream",!0,c);q(b)}else d.wa("Hard drive "+a+" is not available.")}}(+b.slice(-1)),!0;c.parentNode.removeChild(c)}return!1};
|
||||
l.jc=function(a,b,c,d){this.oa=b;this.R=c;this.Ea=d;this.na=a;if(d=Mc(a,"drives"))this.X=d;else if(this.ia)try{this.X=eval("("+this.ia+")")}catch(e){q("HDC drive configuration error: "+e.message+" ("+this.ia+")")}this.U=Ab(a,"ChipSet");this.F=0;this.ka=3;kc(b,this,this.L?Nt:Ot);mc(b,this,this.L?Pt:Qt);this.L&&(this.F++,this.U&&this.U.ca==Mj&&this.F++,this.ka=2,b.L[Rt]=2,b.M[Rt]=2);Me(c,19,this.Cl.bind(this));Me(c,64,this.Dl.bind(this));this.reset();St(this)||v(this)};
|
||||
l.Rb=function(a,b){if(!b)if(!a)Tt(this),this.na.W&&St(this,!0);else if(!this.restore(a))return!1;return!0};l.Qb=function(a){return a?this.save():!0};function xs(a){return a.na?a.na.ra:""}function ys(a){return a.na?a.na.B||"":""}l.reset=function(){Tt(this,null,!0)};l.save=function(){var a=new Qe(this);a.set(0,Ut(this));return a.data()};l.restore=function(a){return Tt(this,a[0])};
|
||||
function Tt(a,b,c){var d=0,e=!0;a.Na=-1;if(a.L){if(b||(b=[0,0,0,0,0,0,0,Vt,0,[0,-1]]),a.H=b[d++],a.ra=b[d++],a.I=b[d++],a.da=b[d++],a.ba=b[d++],a.aa=b[d++],a.N=b[d++],a.Z=b[d++],a.fa=b[d++],a.K=b[d++],"object"==typeof a.K){var f=a.K;a.K=f[0];a.Na=f[1]}}else b||(b=[0,Wt,Array(14),0,0]),a.W=b[d++],a.Z=b[d++],a.G=b[d++],a.D=b[d++],a.C=b[d++],a.qa=b[d++],a.ma=b[d++],a.pa=b[d++],f=b[d++],void 0!==f?a.M=f:void 0===a.M&&(a.M=-1);void 0===a.A&&(a.A=Array(a.X.length));b=b[d];void 0===b&&(b=[]);for(d=0;d<a.A.length;d++){void 0===
|
||||
a.A[d]&&(a.A[d]={});f=a.A[d];var g=a,h=d,k=f,m=a.X[d],r=b[d],x=c,t=0,z=!0;void 0===r&&(r=[Xt,0,!1,Array(8)]);k.Na=h;k.errorCode=r[t++];k.Lj=r[t++];k.me=r[t++];k.ce=r[t++];k.de=r[t++];k.Wa=r[t++];k.$a=r[t++];k.Ed=r[t++];k.bb=r[t++];k.xd=r[t++];k.xb=r[t++];k.tf=g.L?0:1;k.name=m.name;void 0===k.name&&(k.name=Yt);k.path=m.path;k.mode=m.mode||(k.path?"preload":"local");"demandro"!=k.mode&&"demandrw"!=k.mode||ys(g)||(k.mode="local");k.type=m.type;if(void 0===k.type||void 0===cu[g.F][k.type])k.type=g.ka;
|
||||
m=cu[g.F][k.type];k.Xa=m[2]||17;k.ob=m[3]||512;if(x&&g.U){var E=g.U;m=k.type;if(E.A){x=null;var O=E.A[18];15<m&&(x=m,m=15);h?(O=O&240|m,m=26):(O=O&15|m<<4,m=25);var K=E;K.A&&(K.A[18]=O,zk(K));null!=x&&E.A&&(E.A[m]=x,zk(E))}}void 0===k.sa&&(k.sa=null,g.wa("Type "+k.type+' "'+k.name+'" is fixed disk '+h,!0));du(g,k);k.Ra=r[t++];k.Va=null;k.sa&&(g=r[t],void 0!==g&&0>k.sa.restore(g)&&(z=!1),z&&void 0!==k.Ra&&(k.Va=k.sa.seek(k.Ed,k.Wa,k.bb+k.tf)));z||(e=!1);null!=a.W&&1>=d&&(a.W|=(f.type&3)<<(1-d<<1))}0<=
|
||||
a.Na&&(a.B=a.A[a.Na]);return e}
|
||||
function Ut(a){var b=0,c=[];a.L?(c[b++]=a.H,c[b++]=a.ra,c[b++]=a.I,c[b++]=a.da,c[b++]=a.ba,c[b++]=a.aa,c[b++]=a.N,c[b++]=a.Z,c[b++]=a.fa,c[b++]=[a.K,a.Na]):(c[b++]=a.W,c[b++]=a.Z,c[b++]=a.G,c[b++]=a.D,c[b++]=a.C,c[b++]=a.qa,c[b++]=a.ma,c[b++]=a.pa,c[b++]=a.M);for(var d=0,e=[],f=0;f<a.A.length;f++){var g=d++,h=a.A[f],k=0,m=[];m[k++]=h.errorCode;m[k++]=h.Lj;m[k++]=h.me;m[k++]=h.ce;m[k++]=h.de;m[k++]=h.Wa;m[k++]=h.$a;m[k++]=h.Ed;m[k++]=h.bb;m[k++]=h.xd;m[k++]=h.xb;m[k++]=h.Ra;m[k]=h.sa?h.sa.save():null;
|
||||
e[g]=m}c[b]=e;return c}function du(a,b,c){if(b){var d=0,e=0;null==c&&((d=b.ce[2])?e=b.ce[0]<<8|b.ce[1]:c=b.type);null==c||d||(d=cu[a.F][c][1],e=cu[a.F][c][0]);d&&((c=cu[a.F][b.type])&&e!=c[0]&&d!=c[1]&&a.wa("Warning: drive parameters ("+e+","+d+") do not match drive type "+b.type+" ("+c[0]+","+c[1]+")"),b.kb=e,b.$a=d,null==b.sa&&(b.sa=new us(a,b,b.mode)))}}
|
||||
function St(a,b){b||(a.J=0);for(var c=0;c<a.A.length;c++){var d=a.A[c];d.name&&d.path?b&&d.sa&&d.sa.Bf||!a.Hl(c,d.name,d.path,!0)&&b&&v(a,!1):b&&void 0!==d.type&&(d.sa=null,du(a,d,d.type))}return!!a.J}l.Hl=function(a,b,c,d){var e=this.A[a];if(e.Kd)return this.wa("Drive "+a+" busy"),!0;e.Kd=!0;d&&(e.Jd=!0,this.J++);(e.sa||new us(this,e,e.mode)).load(b,c,null,this.kk);return!1};
|
||||
l.kk=function(a,b,c){a.Kd=!1;if(a.sa=b)this.wa('Mounted disk "'+c+'" in drive '+String.fromCharCode(67+a.Na),a.Jd),b=b.info(),b[0]==a.kb&&b[1]==a.$a&&b[2]==a.Xa&&b[3]==a.ob||this.wa("Warning: disk geometry ("+b[0]+":"+b[1]+":"+b[2]+") does not match "+eu[this.F]+" drive type "+a.type+" ("+a.kb+":"+a.$a+":"+a.Xa+")");a.Jd&&(a.Jd=!1,--this.J||v(this))};l.zl=function(){var a=0;this.D<this.C&&(a=this.G[this.D]);this.U&&Hf(this.U,5);this.Z&=~fu;++this.D>=this.C&&(this.D=this.C=0,this.Z&=~(gu|hu|iu));return a};
|
||||
l.Vm=function(a,b){this.C<this.G.length&&(this.G[this.C++]=b);a=this.G[0]!=ju?6:this.G.length;6==this.C&&(this.Z&=~ku);this.C>=a&&(this.Z|=gu,this.Z&=~ku,lu(this))};l.Al=function(){var a=this.Z;this.D<this.C&&(this.Z|=ku);return a};l.Ym=function(a,b){this.qa=b;this.U&&Hf(this.U,5);Tt(this)};l.yl=function(){return this.W};l.Xm=function(a,b){this.ma=b;this.Z=ku|hu|iu};l.Wm=function(a,b){this.pa=b};l.gh=function(){};
|
||||
function mu(a){var b=-1;a.B&&(b=nu(a.B,function(){}),(1==a.B.Ra||a.B.Ra==a.B.ob)&&1<a.B.Ra&&(a.B.xb-=a.B.ob,a.I=a.I-1&255,a.B.xb>=a.B.ob?(a.Z=ou,nu(a.B,function(b){0<=b?(pu(a),a.U&&a.U.ca==Mj&&(a.Z=0),a.Z=a.Z|Vt|qu|ru):(a.Z=su,a.H=tu)},!1)):a.Z=Vt|qu));return b}l.Xj=function(){return mu(this)|mu(this)<<8};function uu(a,b){a.B&&a.B.xb>=a.B.ob&&(0>vu(a.B,b)?(a.Z=su,a.H=tu):(1==a.B.Ra||a.B.Ra==a.B.ob)&&1<a.B.Ra&&(a.B.xb-=a.B.ob,a.I=a.I-1&255,pu(a),a.Z=Vt|qu,a.B.xb>=a.B.ob&&(a.Z|=ru)))}
|
||||
l.bm=function(a,b){uu(this,b&255);uu(this,b>>8&255)};l.Ck=function(){return this.H};l.gm=function(a,b){this.ra=b};l.Ek=function(){return this.I};l.em=function(a,b){this.I=b};l.Fk=function(){return this.da};l.fm=function(a,b){this.da=b};l.Ak=function(){return this.ba};l.am=function(a,b){this.ba=b};l.zk=function(){return this.aa};l.$l=function(a,b){this.aa=b};l.Bk=function(){return this.N};l.cm=function(a,b){this.N=b;this.Z=this.A[this.N&wu?1:0]?this.Z|Vt|qu:this.Z&~Vt};
|
||||
l.Gk=function(){var a=this.Z;this.Z&Vt&&(this.Z&=~ou);return a};l.Zl=function(a,b){this.fa=b;this.U&&Hf(this.U,14);xu(this)};l.dm=function(a,b){this.K&yu&&!(b&yu)&&(this.H=zu);this.K=b};
|
||||
function xu(a){var b=!1,c=a.fa,d=a.N&wu?1:0,e=a.N&Au,f=a.ba|(a.aa&Bu)<<8,g=a.da,h=a.I||256;a.Na=-1;a.B=null;a.H=Cu;a.Z=Vt|qu;var k=a.A[d];k?(k.Ed=f,k.Wa=e,k.bb=g,k.xb=h*k.ob,c=c>=Du?c:c&Eu,k.Va=null,k.Ra=0,k.errorCode=0,a.Na=d,a.B=k):c=-1;switch(c&Eu){case Fu:b=!0;break;case Gu:a.Z=ou;nu(k,function(b){0<=b&&a.U?(pu(a),a.Z=Vt|qu|ru):(a.Z=su,a.H=tu)},!1);break;case Hu:a.Z=ru;break;case Iu:b=!0;break;case Ju:b=!0;break;case Du:a.H=zu;b=!0;break;case Ku:k.$a=e+1,k.Xa=h,b=!0}b&&pu(a)}
|
||||
function pu(a){a.U&&(a.K&Lu||Jf(a.U,14,120))}
|
||||
function lu(a){a.D=0;var b=Mu(a),c=Mu(a),d=c&32,e=d>>5,f=c&31,g=Mu(a),h=Mu(a),k=g<<2&768|h,m=g&63,r=Mu(a),x=Mu(a),t=a.A[e];t&&(t.Ed=k,t.Wa=f,t.bb=m,t.xb=r*t.ob);switch(b){case Nu:Ou(a,t?t.errorCode:Pu);Qu(a,c);Qu(a,g);Qu(a,h);Qu(a,Ru|d);b=-1;break;case ju:for(c=0;0<=(b=Mu(a));)t&&c<t.ce.length&&(t.ce[c++]=b);t&&du(a,t);b=Ru;t||a.M!=e||(a.M=-1,b=Su);Ou(a,b|d);b=-1;break;case Tu:case Uu:Ou(a,Ru|d),b=-1}if(0<=b)switch(void 0===t?b=-1:(t.errorCode=Xt,t.Lj=0),b){case Vu:Ou(a,Ru|d);break;case Wu:t.Fe=x;
|
||||
Ou(a,Ru|d);break;case Xu:Ou(a,Ru|d);break;case Yu:Zu(a,t,function(b){Ou(a,b|d)});break;case $u:av(a,t,function(b){Ou(a,b|d)});break;case bv:cv(a,t,function(b){Ou(a,b|d)});break;default:Ou(a,Su|d)}}function Mu(a){var b=-1;a.D<a.C&&(b=a.G[a.D++]);return b}function Ou(a,b){a.D=a.C=0;void 0!==b&&Qu(a,b);a.U&&Jf(a.U,5);a.Z|=fu}function Qu(a,b){a.G[a.C++]=b}l.Vj=function(a,b,c){void 0===b||0>b?nu(a,c):c(-1,!1)};l.Wj=function(a,b){return void 0!==b&&0<=b?vu(a,b):-1};
|
||||
l.ik=function(a,b){void 0!==b&&0<=b?(a.Ra<a.de.length?a.de[a.Ra++]=b:(a.errorCode=dv,b=-1),a=b):a=-1;return a};l.jk=function(a,b){if(void 0!==b&&0<=b)a:if(a.errorCode)a=-1;else{a.Gc[a.he++]=b;if(a.he==a.Gc.length){a.Ed=a.Gc[0];a.Wa=a.Gc[1];a.bb=a.Gc[2];a.xb=128<<a.Gc[3];for(var c=a.he=0;c<a.xb;c++)if(0>vu(a,a.Vh)){a=-1;break a}a.uf++}a.uf>=a.xd&&(b=-1);a=b}else a=-1;return a};
|
||||
function Zu(a,b,c){b.errorCode=Pu;if(b.sa&&(b.Va=null,a.U)){b.errorCode=Xt;zl(a.U,3,a,"dmaRead",b);vl(a.U,3,function(a){a||b.errorCode!=Xt||(b.errorCode=Pu);c(b.errorCode?Su:Ru)});return}c(b.errorCode?Su:Ru)}function av(a,b,c){b.errorCode=Pu;if(b.sa&&(b.Va=null,a.U)){b.errorCode=Xt;zl(a.U,3,a,"dmaWrite",b);vl(a.U,3,function(a){a||(b.errorCode==Xt&&(b.errorCode=Pu),b.errorCode==dv&&(b.errorCode=Xt));c(b.errorCode?Su:Ru)});return}c(b.errorCode?Su:Ru)}
|
||||
function cv(a,b,c){b.errorCode=Pu;b.de&&b.de.length==b.xb||(b.de=Array(b.xb));b.Ra=0;a.U?(b.errorCode=Xt,zl(a.U,3,a,"dmaWriteBuffer",b),vl(a.U,3,function(a){a||b.errorCode!=Xt||(b.errorCode=Pu);c(b.errorCode?Su:Ru)})):c(b.errorCode?Su:Ru)}
|
||||
function nu(a,b,c){var d=-1,e=null,f=0;if(a.errorCode)return b&&b(d,!1,e,f),d;var g=!1!==c?1:0;if(a.Va&&(f=a.Ra,d=a.sa.read(a.Va,a.Ra),a.Ra+=g,0<=d))return e=a.Va,b&&b(d,!1,e,f),d;if(b){if(a.sa)return a.sa.seek(a.Ed,a.Wa,a.bb+a.tf,!1,function(c,k){(a.Va=c)?(e=c,f=a.Ra=0,ev(a),d=a.sa.read(a.Va,a.Ra),a.Ra+=g):a.errorCode=dv;b(d,k,e,f)}),d;a.errorCode=dv;b(d,!1,e,f)}return d}
|
||||
function vu(a,b){if(a.errorCode)return-1;do{if(a.Va&&a.sa.write(a.Va,a.Ra++,b))break;a.sa&&a.sa.seek(a.Ed,a.Wa,a.bb+a.tf,!0,function(b){a.Va=b});if(!a.Va){a.errorCode=dv;b=-1;break}a.Ra=0;ev(a)}while(1);return b}function ev(a){a.bb++;var b=1-a.tf;a.bb>=a.Xa+b&&(a.bb=b,a.Wa++,a.Wa>=a.$a&&(a.Wa=0,a.Ed++))}l.Cl=function(){var a=this.R.L&255;!(this.R.F>>8)&&128<a&&(this.M=a-128);return!0};l.Dl=function(){var a;(a=this.R.F>>8||!this.U)||(a=!(this.U.ac[0].Xc&64));return a?!0:!1};
|
||||
var Yt="Hard Drive",eu=["XTC","ATC","COMPAQ"],cu=[{0:[306,2],1:[375,8],2:[306,6],3:[306,4]},{1:[306,4],2:[615,4],3:[615,6],4:[940,8],5:[940,6],6:[615,4],7:[462,8],8:[733,5],9:[900,15],10:[820,3],11:[855,5],12:[855,7],13:[306,8],14:[733,7],16:[612,4],17:[977,5],18:[977,7],19:[1024,7],20:[733,5],21:[733,7],22:[733,5],23:[306,4]},{1:[306,4],2:[615,4],3:[615,6],4:[1023,8],5:[940,6],6:[697,5],7:[462,8],8:[925,5],9:[900,15],10:[980,5],11:[925,7],12:[925,9],13:[612,8],14:[980,4],16:[612,4],17:[980,5],18:[966,
|
||||
6],19:[1023,8],20:[733,5],21:[733,7],22:[524,4,40],23:[924,8],24:[966,14],25:[966,16],26:[1023,14],27:[832,6,33],28:[1222,15,34],29:[1240,7,34],30:[615,4,25],31:[615,8,25],32:[905,9,25],33:[832,8,33],34:[966,7,34],35:[966,8,34],36:[966,9,34],37:[966,5,34],38:[612,16,63],39:[1023,11,33],40:[1023,15,34],41:[1630,15,52],42:[1023,16,63],43:[805,4,26],44:[805,2,26],45:[748,8,33],46:[748,6,33],47:[966,5,25]}],Rt=496,zu=1,Cu=0,tu=16,Bu=3,Au=15,wu=16,su=1,ru=8,qu=16,Vt=64,ou=128,Fu=16,Gu=32,Hu=48,Iu=64,Ju=
|
||||
112,Du=144,Ku=145,Eu=240,Lu=2,yu=4,Ru=0,Su=2,Vu=0,Wu=1,Nu=3,Xu=5,Yu=8,$u=10,ju=12,bv=15,Tu=224,Uu=228,Xt=0,Pu=4,dv=20,Wt=0,ku=1,gu=2,hu=4,iu=8,fu=32,Ot={800:Z.prototype.zl,801:Z.prototype.Al,802:Z.prototype.yl},Nt={496:Z.prototype.Xj,497:Z.prototype.Ck,498:Z.prototype.Ek,499:Z.prototype.Fk,500:Z.prototype.Ak,501:Z.prototype.zk,502:Z.prototype.Bk,503:Z.prototype.Gk},Qt={800:Z.prototype.Vm,801:Z.prototype.Ym,802:Z.prototype.Xm,803:Z.prototype.Wm,807:Z.prototype.gh,811:Z.prototype.gh,815:Z.prototype.gh},
|
||||
Pt={496:Z.prototype.bm,497:Z.prototype.gm,498:Z.prototype.em,499:Z.prototype.fm,500:Z.prototype.am,501:Z.prototype.$l,502:Z.prototype.cm,503:Z.prototype.Zl,1014:Z.prototype.dm};Sa(function(){for(var a=jb(document,"pcx86","hdc"),b=0;b<a.length;b++){var c=a[b],d=kb(c);d=new Z(d);ib(d,c)}});
|
||||
function fv(a,b,c){u.call(this,"Computer",a);var d=this;gv(this,b);this.U=Mc(this,"autoPower",a);this.D=+Mc(this,"diagnostics",a);0<=this.D&&2>=this.D||(this.D=1);this.F=0;this.ma=a.busWidth||a.buswidth;this.A=hv;this.M=null;this.J=this.fa=!1;this.qa=Mc(this,"url")||"";this.ra=(Math.random()+.1).toString(36).substr(2,12);this.B=iv(this);if(this.R=hb("CPU",this.id)){this.Ea=hb("Debugger",this.id);this.C=[];for(b=null;b=Ab(this,"Video",b);)this.C.push(b);this.oa=new Nb({id:this.Dd+".bus",busWidth:this.ma},
|
||||
this.R,this.Ea);var e=lb(this.id);this.ba=(this.I=hb("Panel",this.id))&&this.I.ja.print;this.ia=this.wa;this.ka=this.print;this.pa=this.qb;this.ba&&(this.ia=this.I.wa,this.ka=this.I.print,this.pa=this.I.qb);for(b=0;b<e.length;b++){var f=e[b];f.wa=function(a,b,c){jv(d,a);return d.ia.call(this,a,b,c)}.bind(f);f.print=function(a){return d.ka.call(this,a)}.bind(f);f.qb=function(a,b,c){jv(d,a,b);return d.pa.call(this,a,b,c)}.bind(f)}this.H=0;!this.ba&&this.D&&kv(this);this.qb("PCx86 v1.37.1\nCopyright \u00a9 2012-2017 Jeff Parsons <Jeff@pcjs.org>\nLicense: GPL version 3 or later <http://gnu.org/licenses/gpl.html>");
|
||||
for(b=0;b<e.length;b++)f=e[b],f.jc&&f.jc(this,this.oa,this.R,this.Ea);Nc(this.R,this.id,function(){gd(d,!1)},1E3/lv);b=null;f=Mc(this,"resume");void 0!==f&&(1<f.length?b=this.L=f:this.A=parseInt(f,10));f=!1;e=Oa("state");e||(f=!0,e=Mc(this,"state",a));e&&(b=this.X=e,f||(this.J=!0,this.A=hv),this.A&&(this.N=new Qe(this,"1.37.1"),this.N.load()?b=null:delete this.N));!b&&this.A&&(b=mv(this))&&(this.J=!0);if(this.aa=b){var g="Loading "+this.aa+"...";Ea(this.aa,null,!0,function(a,b,c){c?(d.L=null,d.J=
|
||||
!1,d.wa("Unable to load machine state from server (error "+c+(b?": "+xa(b):"")+")")):(d.M=b,d.fa=!0);v(d)},function(){d.qb(g,tb)})}else v(this);this.ja.power||(this.U=!0);!c&&this.U&&this.ye(this.ue)}else q("Unable to find CPU component")}ja(fv,u);function kv(a){if(!a.H)for(var b=0;b<a.C.length;b++){var c=a.C[b];c&&(c=c.Df)&&(c.style.opacity="1",c.style.lineHeight="1",a.H++)}}
|
||||
function jv(a,b,c){if(a.H)for(var d=0;d<a.C.length;d++){var e=a.C[d];e&&(e=e.Df)&&(c!=tb||"..."!=b.slice(-3)?eb(e,b+"\n"):fb(e,b,b+"."))}}function mo(a){var b=a.D;3==a.D&&(a.D++,v(a));return!b}function gv(a,b){if(!b){var c;if("object"==typeof resources&&(c=resources.parms))try{b=eval("("+c+")")}catch(d){q(d.message+" ("+c+")")}}a.K=b}
|
||||
function Mc(a,b,c){var d=Oa(b);if(d)try{var e=0<=d.indexOf("'")?'"':"'";d=eval(e+d+e)}catch(f){q(f.message+" ("+d+")"),d=void 0}void 0===d&&a.K&&(d=a.K[b]);void 0===d&&c&&(d=c[b]);void 0===d&&"object"==typeof resources&&resources[b]&&(d=b);return d}l=fv.prototype;l.ye=function(a,b){for(var c=this,d=lb(this.id),e=0;e<=d.length;e++){var f=e<d.length?d[e]:this;if(!vb(f)){vb(f,function(){c.ye(a,b)});return}}a.call(this,b)};
|
||||
function nv(a,b){var c=new Qe(a,"1.37.1",ov);if(c.load()&&pv(c)){var d=c.get(qv),e=b?b.get(qv):"unknown";d!=e&&(a.wa("Machine state may be out-of-date\n("+d+" vs. "+e+")\nCheck your browser's local storage limits"),b||c.clear())}}
|
||||
l.ue=function(a){void 0===a&&(a=this.A||(this.M?rv:hv));if(!this.F){this.F++;var b=!1,c=!1;this.da=!1;var d=this.N||new Qe(this,"1.37.1");if(a==Tc)b=!0;else if(a>hv){if(d.load(this.M)){this.G=new Qe(this,"1.37.1",sv);this.G.load()&&(a!=rv&&tv(this,d)&&(a=uv),vv(this.G));this.G.set(qv,za("Y-m-d H:i:s"));wv(this.G);var e=this.A&&!this.J;if(a==rv||cb("Click OK to restore the previous PCx86 machine state.")){if(c=pv(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&"no machine state"!=
|
||||
g?(this.wa("Error: "+g),"unable to verify user"==g&&(Ka(xv,""),this.B=null)):this.qb(f+": "+g),vv(d),d.load()?(c=pv(d),e=!0):c=!1))}e&&nv(this,c?d:null)}else a==uv&&d.clear()}else nv(this);delete this.M;delete this.N}e=lb(this.id);for(f=0;f<e.length;f++)g=e[f],g!==this&&g!=this.R&&(c=yv(this,g,d,b,c));b=[d,a,c];a!=Tc?this.ye(this.hg,b):this.hg(b)}};
|
||||
function yv(a,b,c,d,e){if(!b.Y.Sb){b.Y.Sb=!0;if(b.Rb){var f=null;e&&((f=c.get(b.id))||(f=c.get(b.id.replace(/-[0-9]+\./i,"."))));"string"===typeof f&&(f=null);!b.Rb(f,d)&&f&&(b.wa("Unable to restore hardware state")&&(a.X&&!a.fa?(c.clear(),a.A=hv,window&&window.location.reload()):a.da=!0),b.Rb(null),e=!1)}b.Y.Je=!0;if(!d&&b.li)for(a=b.li.split("|"),c=0;c<a.length;c++)b.status(a[c])}return e}
|
||||
l.hg=function(a){if(!this.Y.Je){a:{if(this.H){if(2==this.D){this.D++;this.qb("Press any key to continue...");var b=!1;break a}for(b=0;b<this.C.length;b++){var c=this.C[b];if(c&&(c=c.Df)){var d=Ga();c.style.opacity="0";c.style.lineHeight="0";if(0<=d.indexOf("MSIE")||0<=d.indexOf("Trident"))c.style.fontSize="0";c.value=""}}this.H=0}this.D=0;b=!0}if(!b){v(this,!1);this.ye(this.hg,a);return}this.Y.Je=!0}b=a[0];c=0>a[1];a=a[2];if(d=this.ja.power)d.textContent="Shutdown";this.Y.Sb=!0;this.R&&(yv(this,this.R,
|
||||
b,c,a),this.R.Gd());this.da&&(tv(this,b),b.clear());!c&&this.G&&(this.G.clear(),delete this.G);this.F=0;nb(this.Dd,Mc(this,"autoScript"))};function tv(a,b){if(!a.Y.Yd){if(cb("There may be a problem with your PCx86 machine.\n\nTo help us diagnose it, click OK to send this PCx86 machine state to http://www.pcjs.org.")){var c=a.B||"";b=b.toString();var d={app:"PCx86",ver:"1.37.1"};d.url=a.qa;d.user=c;d.type="bug";d.data=b;Ea("http://www.pcjs.org/api/v1/report",d,!0)}return!0}return!1}
|
||||
function zv(a,b,c){var d="none";if(a.F)return null;a.F--;var e=new Qe(a,"1.37.1"),f=new Qe(a,"1.37.1",ov),g=za("Y-m-d H:i:s");f.set(qv,g);e.set(qv,g);e.set(Av,"1.37.1");e.set(Bv,window?window.location.href:null);e.set(Cv,Ga());if(a.R&&a.R.Qb){var h=a.R.Qb(b,c);"object"===typeof h&&e.set(a.R.id,h);c&&(a.R.Y.Sb=!1,!1===h&&(d=null))}g=lb(a.id);for(var k=0;k<g.length;k++){var m=g[k];m.Y.Sb&&(m.Qb&&(h=m.Qb(b,c),"object"===typeof h&&e.set(m.id,h)),c&&(m.Y.Sb=!1,!1===h&&(d=null)))}d&&(c?(g=h=!1,b?(a.B&&
|
||||
Dv(a,a.B,e.toString()),wv(f)&&wv(e)||(d=null,h=g=!0)):a.A&&(h=!0,g=a.A==Ev),h&&e.clear(g)):d=e.toString());c&&(a.Y.Sb=!1,b=a.ja.power)&&(b.textContent="Power");a.F=0;return d}l.reset=function(){this.oa&&this.oa.reset&&this.oa.reset();for(var a=lb(this.id),b=0;b<a.length;b++){var c=a[b];c!==this&&c!==this.oa&&c.reset&&c.reset()}};l.start=function(a,b){for(var c=lb(this.id),d=0;d<c.length;d++){var e=c[d];"CPU"!=e.type&&e!==this&&e.start&&e.start(a,b)}};
|
||||
l.stop=function(a,b){for(var c=lb(this.id),d=0;d<c.length;d++){var e=c[d];"CPU"!=e.type&&e!==this&&e.stop&&e.stop(a,b)}};
|
||||
l.Ab=function(a,b,c){var d=this;switch(b){case "power":return this.ja[b]=c,c.onclick=function(){d.F||(d.Y.Sb?zv(d,!1,!0):d.ye(d.ue))},!0;case "reset":return this.ja[b]=c,c.onclick=function(){if(d.Y.Sb&&!d.F)if(d.R&&(d.R.Y.Gd=d.R.Y.cb),d.A&&!d.L){var a=d.Y.Yd||!cb("Click OK to reset this PCx86 machine and discard all disk modifications.");zv(d,a,!0);!a&&d.X?window&&window.location.reload():(a||(d.W=!0),d.ue(hv),d.W=!1)}else d.reset(),d.R&&d.R.Gd()},!0;case "save":if(ua(Fa(),"pcjs.org"))c.parentNode.removeChild(c);
|
||||
else return this.ja[b]=c,c.onclick=function(){var a=iv(d,!0);if(a){var b=!!(d.A&&!d.L||d.X),c=zv(d,b);b?Dv(d,a,c):d.wa("Resume disabled, machine state not saved")}},!0}return!1};
|
||||
function iv(a,b){var c=a.B;c||((c=Ja(xv),void 0!==c)?!c&&b&&(b=null,window&&(b=window.prompt("Saving machine states on the pcjs.org server is currently unsupported.\n\nIf you're running your own server, enter your user ID below.","")),c=b)&&((c=Fv(a,c))||a.wa("The user ID is invalid.")):b&&a.wa("Browser local storage is not available"));return c}
|
||||
function Fv(a,b){a.B=null;b=Ea(Fa()+"/api/v1/user?req=verify&user="+b);var c=b[1];if(!b[0]&&c)try{b=eval("("+c+")"),b.code&&"ok"==b.code&&(Ka(xv,b.data),a.B=b.data)}catch(d){q(d.message+" ("+c+")")}return a.B}function mv(a){var b=null;a.B&&(b=Fa()+"/api/v1/user?req=load&user="+a.B+"&state="+Gv(a,"1.37.1"));return b}
|
||||
function Dv(a,b,c){if(c){var d={req:"store"};d.user=b;d.state=Gv(a,"1.37.1");d.data=c;b=Ea(Fa()+"/api/v1/user",d);d=b[0];if(b[1]){if(d){var e=d.indexOf("\n");0<e&&(d=d.substr(0,e));d.indexOf("Error: ")||(d=d.substr(7))}d='{"code":'+b[1]+',"data":"'+d+'"}'}b=JSON.parse(d);b&&"ok"==b.code?a.wa("Machine state saved to server"):c&&(c=b&&b.data||"unable to save machine state",c="error"==b.code?"Error: "+c:"Error "+b.code+": "+c,a.wa(c),Ka(xv,""),a.B=null)}}
|
||||
function Ab(a,b,c){a=lb(a.id);for(var d=0;d<a.length;d++){var e=a[d];if(c)c==e&&(c=null);else if(e.type==b)return e}return null}function Yc(a,b){if(a.C.length){var c=0,d=0;!b&&window&&(c=window.scrollX,d=window.scrollY);a=a.C[0];a.F&&a.F.focus();!b&&window&&window.scrollTo(c,d)}}
|
||||
function gd(a,b){if(a.R){var c=a.R;if(c.ii&&(b||!c.Y.cb||c.Y.ci)){yf(c,"EAX",c.F);yf(c,"EBX",c.G);yf(c,"ECX",c.H);yf(c,"EDX",c.L);yf(c,"ESP",C(c));yf(c,"EBP",c.M);yf(c,"ESI",c.J);yf(c,"EDI",c.I);yf(c,"CS",c.fa.ha);yf(c,"DS",c.Ga.ha);yf(c,"SS",c.W.ha);yf(c,"ES",c.xa.ha);yf(c,"EIP",F(c));var d=Ad(c);yf(c,"PS",d);yf(c,"V",d&2048);yf(c,"D",d&1024);yf(c,"I",d&512);yf(c,"T",d&256);yf(c,"S",d&128);yf(c,"Z",d&64);yf(c,"A",d&16);yf(c,"P",d&4);yf(c,"C",d&1);80386==c.ca&&(yf(c,"FS",c.rb.ha),yf(c,"GS",c.vb.ha),
|
||||
yf(c,"CR0",c.ra),yf(c,"CR2",c.td),yf(c,"CR3",c.Vc))}if(d=c.ja.speed)d.textContent=c.Y.cb&&c.V.jd?c.V.jd.toFixed(2)+"Mhz":"Stopped"}if(!1!==b)for(c=0;c<a.C.length;c++)qq(a.C[c],b)}var sv="failsafe",ov="validate",qv="timestamp",Av="version",Bv="url",Cv="browser",xv="user",Tc=-1,hv=0,rv=1,uv=2,Ev=3,lv=2;Sa(function(){for(var a=jb(document,"pcx86-machine"),b=0;b<a.length;b++){var c=a[b],d=kb(c);c=jb(c,"pcx86","computer");for(var e=0;e<c.length;e++){var f=c[e],g=kb(f);g=new fv(g,d,!0);ib(g,f);g.U&&g.ye(g.ue)}}});
|
||||
Ta.show.push(function(){for(var a=jb(document,"pcx86","computer"),b=0;b<a.length;b++){var c=kb(a[b]);if(c=hb("Computer",c.id))c.Y.Yd=!1,c.Y.Je&&!c.Y.Sb&&c.ue(Tc)}});Ta.exit.push(function(){for(var a=jb(document,"pcx86","computer"),b=0;b<a.length;b++){var c=kb(a[b]);if(c=hb("Computer",c.id))c.Y.Yd=!0,c.Y.Sb&&zv(c,!(!c.A||c.L),!0)}});function Qe(a,b,c){this.id=a.id;this.Ea=a.Ea;this.A="";this.state={};this.B=this.C=!1;this.key=Gv(a,b,c);vv(this,a.Bj)}l=Qe.prototype;
|
||||
l.set=function(a,b){try{this.state[a]=b}catch(c){}};l.get=function(a){return this.state[a]||null};l.data=function(){return this.state};l.load=function(a){return a?(this.A=a,this.B=!0,this.C=!1,!0):this.B?!0:Ha()&&(a=Ja(this.key))?(this.A=a,this.B=!0):!1};function pv(a){var b=!0;if(!a.C)try{a.state=JSON.parse(a.A),a.C=!0}catch(c){q(c.message||c),b=!1}return b}
|
||||
function wv(a){var b=!0;if(Ha()){var c=JSON.stringify(a.state);Ka(a.key,c)||(q("Unable to store "+c.length+" bytes in browser local storage"),b=!1)}return b}l.toString=function(){return this.state?JSON.stringify(this.state):this.A};function vv(a,b){a.A="";a.state={};a.B=a.C=!1;b&&a.set("parms",b)}
|
||||
l.clear=function(a){vv(this);var b=[];try{for(var c=0,d=window.localStorage.length;c<d;c++)b.push(window.localStorage.key(c))}catch(e){}for(c=0;c<b.length;c++)if((d=b[c])&&(a||d.substr(0,this.key.length)==this.key)){try{window.localStorage.removeItem(d)}catch(e){}b.splice(c,1);c=0}};function Gv(a,b,c){a=a.id;if(b){var d=b.indexOf(".");0<d&&(a+=".v"+b.substr(0,d))}c&&(a+="."+c);return a}var Hv=0;
|
||||
function Iv(a,b,c,d,e,f){e("Loading "+a+"...");Ea(a,null,!0,function(g,h,k){k?(h||(h="unable to load "+a+" ("+k+")"),f(h,null)):Jv(h,a,b,c,d,e,f)})}
|
||||
function Jv(a,b,c,d,e,f,g){function h(a,f){if(f)g(f,null);else{c&&(ab(c,b,a),(f=b)&&0>f.indexOf("/")&&"/"==window.location.pathname.slice(-1)&&(f=window.location.pathname+f),d?"}"==d.slice(-1)?(d=d.slice(0,-1),1<d.length&&(d+=",")):d='{state:"'+d+'",':d="{",d+='url:"'+f+'"}',"object"==typeof resources&&(f=null),d=d.replace(/\$/g,"$$$$"),a=a.replace(/(<machine[^>]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" parms='"+d+"'":"")+(f?' url="'+f+'"':"")));e||(a=a.replace(/(<xsl:variable name="APPNAME">).*?(<\/xsl:variable>)/,
|
||||
"$1PCx86$2"),a=a.replace(/(<xsl:variable name="APPCLASS">).*?(<\/xsl:variable>)/,"$1pcx86$2"));f=null;if("<"==a.charAt(0))try{e||(a=a.replace(/<!DOCTYPE(.|[\r\n])*]>\s*/g,"")),window.ActiveXObject||"ActiveXObject"in window?(f=new window.ActiveXObject("Microsoft.XMLDOM"),f.async=!1,f.loadXML(a)):f=(new window.DOMParser).parseFromString(a,"text/xml")}catch(r){f=null,a=r.message}else a="unrecognized XML: "+(255<a.length?a.substr(0,255)+"...":a);g(a,f)}}a?e?Kv(a,f,h):h(a,null):g("no data"+(b?" for file: "+
|
||||
b:""),null)}
|
||||
function Kv(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=d[2];b("Loading "+e+"...");Ea(e,null,!0,function(f,g,h){if(h||!g)c(a,"unable to resolve XML reference: "+d[0]+" ("+h+")");else{if(f=d[3])if(h=g.match(new RegExp("<"+d[1]+"[^>]*>"))){for(var k=h[0],m,r=/( [a-z]+=)(['"])(.*?)\2/gi;m=r.exec(f);)k=0>k.toLowerCase().indexOf(m[1].toLowerCase())?k.replace(">",m[0]+">"):k.replace(new RegExp(m[1]+"(['\"])(.*?)\\1"),m[0]);h[0]!=k&&(g=g.replace(h[0],k))}else{c(a,"missing <"+d[1]+
|
||||
"> in "+e);return}g=g.replace(/<\?xml[^>]*>[\r\n]*/,"");a=a.replace(d[0],g);Kv(a,b,c)}})}else c(a,null)}
|
||||
function Lv(a,b,c,d){function e(a){if(void 0===h){var b=g&&jb(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=va(a))}function f(a){e("Error: "+a);k&&(--Hv||Wa(!0));k=!1}var g,h,k=!0;Hv++;bb[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var r=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css";x.styleSheet?x.styleSheet.cssText=m:x.appendChild(document.createTextNode(m));r.appendChild(x)}c||
|
||||
(c="/versions/pcx86/1.37.1/components.xsl");m=function(d,h){h?Iv(c,null,null,!1,e,function(d,k){k?(ab(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(k=h.transformNode(k))?(g.outerHTML=k,--Hv||Wa(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(k),(k=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(k,g),--Hv||Wa(!0)):f("invalid machine element: "+
|
||||
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?Iv(b,a,d,!0,e,m):Jv(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(t){f(t.message)}return k}function Mv(a,b,c,d){Wa(!1);return Lv(a,b,c,d)}window.embedPC=Mv;window.embedPCx86=Mv;
|
||||
window.commandMachine=function(a,b,c,d,e,f){if("script"==e)return nb(c,f)?(b&&(a.disabled=!0),!0):!1;if(d){var g=hb(d,c+".machine");if(g){var h=g.exports;if(h&&(h=h[e]))return h.call(g,f)?(b&&(a.disabled=!0),!0):!1}}console.log("unimplemented: commandMachine('"+c+"','"+d+"','"+e+"','"+f+"')");return!1};window.enableEvents=Wa;window.sendEvent=Ya;
|
||||
function Nv(a,b,c,d){if(!c&&b){d.push(b);a=bb[d[0]];b=null;for(var e in a)if(ua(e,"components.xsl")){b=e.replace(".xsl",".css");break}b?Ea(b,null,!0,function(a,b){Ov(b,d)}):Ov(null,d)}else q("Error ("+c+") requesting "+a)}
|
||||
function Ov(a,b){var c,d,e=b[0],f=b[1];var g=b[4];if(g=g.match(/^(\s*\(function\(\)\{)([\s\S]*)(}\)\(\);)/)){var h=bb[e],k={},m;for(m in h){var r=h[m],x=ta(m);if("xml"==x){for(x=/[ \t]*<disk [^>]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;c=x.exec(h[m]);){var t=c[2];t&&!h[t]&&(r=r.replace(c[0],""))}c=m=sa(m)}else"xsl"==x&&(d=m=sa(m));k[m]=r}a&&(k[m="css"]=a);b[2]&&(k[m="parms"]=b[2]);b[3]&&(k[m="state"]=b[3]);c&&d?(a=JSON.stringify(k),f+=".js",g=g[1]+"var resources="+a+";"+g[2]+g[3],g=g.replace(/\u00A9/g,
|
||||
"©"),a=Qa(g,"javascript",!1,f),a=a+(', copy it to your web server as "'+f+'", and then add the following to your web page:\n\n')+('<div id="'+e+'"></div>\n')+"...\n",a=a+('<script type="text/javascript" src="'+f+'">\x3c/script>\n')+('<script type="text/javascript">embedPC("'+e+'","'+c+'","'+d+'");\x3c/script>\n\n')+"The machine should appear where the <div> is located.",q(a)):q("Missing XML/XSL resources")}else q("Unsupported script")}
|
||||
window.savePC=function(a,b,c){var d=hb("Computer",a),e=hb("Debugger",a);if(d){var f=zv(d,!0),g=d.K?JSON.stringify(d.K):null;b||(b="/versions/pcx86/1.37.1/pcx86"+(e?"-dbg":"")+".js");if(c&&c({state:f,Bj:g}))return!0;Ea(b,null,!0,function(c,d,e){Nv(c,d,e,[a,sa(b,!0),g,f])});return!0}q("Unable to identify machine '"+a+"'");return!1};})();//# sourceMappingURL=/versions/pcx86/1.37.1/pcx86.map
|
||||
|
|
@ -27,13 +27,13 @@ Resources for this test include:
|
|||
- [History](#dakaahst)
|
||||
- [Source Code](#dakaamac)
|
||||
- [MACRO-10 Listing](DAKAA.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakaa/DAKAA.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakaa/DAKAA.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAA.MAC
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakabhst)
|
||||
- [Source Code](#dakabmac)
|
||||
- [MACRO-10 Listing](DAKAB.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakab/DAKAB.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakab/DAKAB.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAB.MAC
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakachst)
|
||||
- [Source Code](#dakacmac)
|
||||
- [MACRO-10 Listing](DAKAC.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakac/DAKAC.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakac/DAKAC.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAC.MAC
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakadhst)
|
||||
- [Source Code](#dakadmac)
|
||||
- [MACRO-10 Listing](DAKAD.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakad/DAKAD.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakad/DAKAD.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAD.MAC
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakaehst)
|
||||
- [Source Code](#dakaemac)
|
||||
- [MACRO-10 Listing](DAKAE.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakae/DAKAE.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakae/DAKAE.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30706 DAKAE.MAC
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakafhst)
|
||||
- [Source Code](#dakafmac)
|
||||
- [MACRO-10 Listing](DAKAF.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakaf/DAKAF.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakaf/DAKAF.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAF.MAC
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakaghst)
|
||||
- [Source Code](#dakagmac)
|
||||
- [MACRO-10 Listing](DAKAG.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakag/DAKAG.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakag/DAKAG.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAG.MAC
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakahhst)
|
||||
- [Source Code](#dakahmac)
|
||||
- [MACRO-10 Listing](DAKAH.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakah/DAKAH.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakah/DAKAH.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a 30724 DAKAH.MAC
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakaihst)
|
||||
- [Source Code](#dakaimac)
|
||||
- [MACRO-10 Listing](DAKAI.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakai/DAKAI.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakai/DAKAI.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a DAKAI.MAC
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ Resources for this diagnostic include:
|
|||
- [History](#dakajhst)
|
||||
- [Source Code](#dakajmac)
|
||||
- [MACRO-10 Listing](DAKAJ.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakaj/DAKAJ.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakaj/DAKAJ.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a DAKAJ.MAC
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ Information regarding this diagnostic includes:
|
|||
- [History](#dakakhst)
|
||||
- [Source Code](#dakakmac)
|
||||
- [MACRO-10 Listing](DAKAK.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakak/DAKAK.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakak/DAKAK.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a DAKAK.MAC
|
||||
|
|
@ -81,7 +81,7 @@ As noted in [cpuops.js](/modules/pdp10/lib/cpuops.js), in the *doMUL()* function
|
|||
|
||||
05=000000000001 06=000000000000
|
||||
|
||||
> The answer can be found in the [DECSYSTEM-10 and DECSYSTEM-20 Processor Reference Manual (June 1982)](http://archive.pcjs.org/pubs/dec/pdp10/kl10/AA-H391A-TK_DECsystem-10_DECSYSTEM-20_Processor_Reference_Jun1982.pdf),
|
||||
> The answer can be found in the [DECSYSTEM-10 and DECSYSTEM-20 Processor Reference Manual (June 1982)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/kl10/AA-H391A-TK_DECsystem-10_DECSYSTEM-20_Processor_Reference_Jun1982.pdf),
|
||||
in the description of the MUL instruction:
|
||||
|
||||
CAUTION: In the KA10, an AC operand of 2^35 is treated as though it were +2^35, producing the
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ Information regarding this diagnostic includes:
|
|||
- [History](#dakalhst)
|
||||
- [Source Code](#dakalmac)
|
||||
- [MACRO-10 Listing](DAKAL.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakal/DAKAL.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakal/DAKAL.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a DAKAL.MAC
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ Information regarding this diagnostic includes:
|
|||
- [History](#dakamhst)
|
||||
- [Source Code](#dakammac)
|
||||
- [MACRO-10 Listing](DAKAM.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakam/DAKAM.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakam/DAKAM.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a DAKAM.MAC
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ Information regarding this test includes:
|
|||
- [History](#dakbahst)
|
||||
- [Source Code](#dakbamac)
|
||||
- [MACRO-10 Listing](DAKBA.LST.txt)
|
||||
- [Additional Information](http://archive.pcjs.org/apps/pdp10/diags/ka10/dakba/DAKBA.SEQ.txt)
|
||||
- [Additional Information](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/apps/pdp10/diags/ka10/dakba/DAKBA.SEQ.txt)
|
||||
|
||||
{% include machine.html id="testka10" %}
|
||||
|
||||
The Debugger's assemble ("a") command can be used to test the new built-in
|
||||
[MACRO-10 Mini-Assembler](/modules/pdp10/lib/macro10.js), which supports a subset
|
||||
of the [MACRO-10](http://archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
of the [MACRO-10](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp10/tops10/02_1973AsmRef_macro.pdf) assembly language.
|
||||
This command:
|
||||
|
||||
a DAKBA.MAC
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ We have archived an assortment of [DEC Paper Tape Diagnostics](diags/).
|
|||
Paper Tape Software (circa 1970)
|
||||
--------------------------------
|
||||
|
||||
As documented in the [PDP-11/20 Handbook (1971)](http://archive.pcjs.org/pubs/dec/pdp11/1120/PDP1120_Handbook_1971.pdf),
|
||||
As documented in the [PDP-11/20 Handbook (1971)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/1120/PDP1120_Handbook_1971.pdf),
|
||||
p. 155, "PAPER TAPE SOFTWARE", the following software was available on paper tape:
|
||||
|
||||
- [PAL-11A ASSEMBLER](pal11a/)
|
||||
|
|
@ -42,7 +42,7 @@ p. 155, "PAPER TAPE SOFTWARE", the following software was available on paper tap
|
|||
- [IOX](iox/) (PDP-11 Input/Output eXecutive)
|
||||
- [PDP-11 BASIC](basic/) (Beginners All-purpose Symbolic Instruction Code)
|
||||
|
||||
There was a separate DEC publication, [PDP-11 Paper Tape Software Handbook](http://archive.pcjs.org/pubs/dec/pdp11/other/PDP11_Paper_Tape_Software_Handbook_1976.pdf),
|
||||
There was a separate DEC publication, [PDP-11 Paper Tape Software Handbook](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/other/PDP11_Paper_Tape_Software_Handbook_1976.pdf),
|
||||
that described all of the above software in greater detail, and it included some programs that the 1971 Handbook listed under
|
||||
"Disk Operating System" instead of "Paper Tape System", such as:
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ we know about the "Absolute Format":
|
|||
[Other sites](http://www.retrocmp.com/stories/dec-pc05-papertape/242-dec-pc05-working-with-paper-tapes)
|
||||
have referred to this tape format as the "Standard Absolute" format, but I've not found that terminology
|
||||
used in any DEC publication. In fact, I think that term may have arisen from a misreading of instructions
|
||||
found in DEC manuals like the ["MEM EXER 16K" Diagnostics Manual](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-9045F-MC_CZQMCFO_MEM_EXER_16K_Feb78.pdf):
|
||||
found in DEC manuals like the ["MEM EXER 16K" Diagnostics Manual](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/diags/AC-9045F-MC_CZQMCFO_MEM_EXER_16K_Feb78.pdf):
|
||||
|
||||
Load the program using any standard absolute loader.
|
||||
|
||||
|
|
@ -54,5 +54,5 @@ for which a specific address has been selected, based on the amount of RAM prese
|
|||
PCjs has archived the following Absolute Loader resources:
|
||||
|
||||
- [Absolute Loader](DEC-11-L2PC-PO.json)
|
||||
- [LISTING OF PDP-11 ABSOLUTE LOADER (June 1975)](http://archive.pcjs.org/pubs/dec/pdp11/other/DEC-11-UABLA_ABSOLUTE_LOADER_LISTING_Jun75.pdf)
|
||||
- "APPENDIX D: THE BOOTSTRAP AND ABSOLUTE LOADERS" from the [PDP-11 BASIC PROGRAMMING MANUAL (December 1970)](http://archive.pcjs.org/pubs/dec/pdp11/basic/BASIC_Programming_Manual_Dec70.pdf)
|
||||
- [LISTING OF PDP-11 ABSOLUTE LOADER (June 1975)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/other/DEC-11-UABLA_ABSOLUTE_LOADER_LISTING_Jun75.pdf)
|
||||
- "APPENDIX D: THE BOOTSTRAP AND ABSOLUTE LOADERS" from the [PDP-11 BASIC PROGRAMMING MANUAL (December 1970)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/basic/BASIC_Programming_Manual_Dec70.pdf)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ DEC PDP-11 BASIC
|
|||
|
||||
[](DEC-11-AJPB-PB.json)
|
||||
|
||||
According to the [PDP-11/20 Handbook (1971)](http://archive.pcjs.org/pubs/dec/pdp11/1120/PDP1120_Handbook_1971.pdf),
|
||||
According to the [PDP-11/20 Handbook (1971)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/1120/PDP1120_Handbook_1971.pdf),
|
||||
p. 160, notable features of PDP-11 BASIC included:
|
||||
|
||||
- Use of BASIC statements in immediate mode (no line number)
|
||||
|
|
@ -33,8 +33,8 @@ PDP-11 BASIC has been loaded into the [PDP-11/20](/devices/pdp11/machine/1120/ba
|
|||
We have archived the following DEC PDP-11 BASIC resources:
|
||||
|
||||
- [BASIC (Single User) Tape Image](DEC-11-AJPB-PB.json)
|
||||
- [LISTING OF BASIC/PTS (March 1974)](http://archive.pcjs.org/pubs/dec/pdp11/basic/BASIC_PTS_Listing_Mar77.pdf)
|
||||
- [PDP-11 BASIC PROGRAMMING MANUAL (December 1970)](http://archive.pcjs.org/pubs/dec/pdp11/basic/BASIC_Programming_Manual_Dec70.pdf)
|
||||
- [LISTING OF BASIC/PTS (March 1974)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/basic/BASIC_PTS_Listing_Mar77.pdf)
|
||||
- [PDP-11 BASIC PROGRAMMING MANUAL (December 1970)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/basic/BASIC_Programming_Manual_Dec70.pdf)
|
||||
|
||||
Third-party resources include:
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ Running Paper Tape Diagnostics
|
|||
### Tests 1-12
|
||||
|
||||
Instructions for running "TEST 1 - BRANCH" through "TEST 12 - JUMP" come from the
|
||||
[MAINDEC-11-DZQAB MAINDEC USER REFERENCE MANUAL (Oct 1973)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQAB-B-D_User_Reference_Manual_Oct73.pdf),
|
||||
[MAINDEC-11-DZQAB MAINDEC USER REFERENCE MANUAL (Oct 1973)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQAB-B-D_User_Reference_Manual_Oct73.pdf),
|
||||
page 19:
|
||||
|
||||
MAINDEC-11-D0AA to D0LA (NEW NUMBER - DZKAA to DZKAL)
|
||||
|
|
@ -335,7 +335,7 @@ I disassembled the code responsible for that failure:
|
|||
|
||||
I wasn't able to locate a source code listing for this particular (1978) version of the 11/70 CPU Instruction Exerciser,
|
||||
but I did find another useful document,
|
||||
[MAINDEC-11-DCQKC 11/40 and 11/45 INSTRUCTION EXERCISER (Sep 1974)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DCQKC-D-D_1140_1145_INSTRUCTION_EXERCISER_Sep74.pdf),
|
||||
[MAINDEC-11-DCQKC 11/40 and 11/45 INSTRUCTION EXERCISER (Sep 1974)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DCQKC-D-D_1140_1145_INSTRUCTION_EXERCISER_Sep74.pdf),
|
||||
where I discovered a matching test sequence on page 86.
|
||||
|
||||
Here's an excerpt:
|
||||
|
|
@ -376,7 +376,7 @@ checkStackLimit() handlers based on the CPU model.
|
|||
UPDATE: Another (1980) version of the source code for this diagnostic has been located and archived
|
||||
with the rest of our [DEC PDP-11 Diagnostic Publications](/pubs/dec/pdp11/diags/):
|
||||
|
||||
- [CEQKCE0 11/70 INSTRUCTION EXERCISER (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7994E-MC_CEQKCE0_1170_INSTRUCTION_EXERCISER_May80.pdf) [[Original PDF](http://bitsavers.org/pdf/dec/pdp11/microfiche/ftp.j-hoppe.de/bw/gh/AH-7996E-MC__PDP11-70-74__11-70_INST_EXR__CEQKCE0__%28C%2975,80.pdf)]
|
||||
- [CEQKCE0 11/70 INSTRUCTION EXERCISER (May 1980)](https://s3-us-west-2.amazonaws.com/archive.pcjs.org/pubs/dec/pdp11/diags/AC-7994E-MC_CEQKCE0_1170_INSTRUCTION_EXERCISER_May80.pdf) [[Original PDF](http://bitsavers.org/pdf/dec/pdp11/microfiche/ftp.j-hoppe.de/bw/gh/AH-7996E-MC__PDP11-70-74__11-70_INST_EXR__CEQKCE0__%28C%2975,80.pdf)]
|
||||
|
||||
You'll find the above excerpt on page 114, at address 024624.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
Build Tools
|
||||
---
|
||||
-----------
|
||||
|
||||
This is where all the server-side PHP code used to reside. I've since deleted that code from the project,
|
||||
because it's all been ported to JavaScript as a collection of [Node Modules](/modules/); e.g.:
|
||||
because it's all been ported to a collection of [JavaScript Modules](/modules/); e.g.:
|
||||
|
||||
- [HTMLOut](/modules/htmlout/)
|
||||
- [MarkOut](/modules/markout/)
|
||||
- [DiskDump](/modules/diskdump/)
|
||||
- [FileDump](/modules/filedump/)
|
||||
|
||||
All that remains here is the version of Google's Closure Compiler (and its associated [README](README)) used
|
||||
All that remains here is the version of Google's Closure Compiler (and its associated [README](compiler.md)) used
|
||||
to build the client-side JavaScript files -- not because I have any attachment to this particular version, but because
|
||||
updating requires a lot of testing, and I don't really have a regression test suite yet. Besides, every newer
|
||||
version of the Closure Compiler I've tried this year (2014) has resulted in slightly *slower* overall performance,
|
||||
|
|
|
|||
BIN
bin/compiler.jar
BIN
bin/compiler.jar
Binary file not shown.
161
bin/compiler.md
161
bin/compiler.md
|
|
@ -5,51 +5,72 @@
|
|||
The [Closure Compiler](https://developers.google.com/closure/compiler/) is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.
|
||||
|
||||
## Getting Started
|
||||
* [Download the latest version](http://dl.google.com/closure-compiler/compiler-latest.zip) ([Release details here](https://github.com/google/closure-compiler/wiki/Releases))
|
||||
* [Download the latest version](https://dl.google.com/closure-compiler/compiler-latest.zip) ([Release details here](https://github.com/google/closure-compiler/wiki/Releases))
|
||||
* [Download a specific version](https://github.com/google/closure-compiler/wiki/Binary-Downloads). Also available via:
|
||||
- [Maven](https://github.com/google/closure-compiler/wiki/Maven)
|
||||
- [NPM](https://www.npmjs.com/package/google-closure-compiler)
|
||||
* [Use the JavaScript version](https://github.com/google/closure-compiler-js), with no Java dependency
|
||||
* See the [Google Developers Site](https://developers.google.com/closure/compiler/docs/gettingstarted_app) for documentation including instructions for running the compiler from the command line.
|
||||
|
||||
## Options for Getting Help
|
||||
1. Post in the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
|
||||
2. Ask a question on [Stack Overflow](http://stackoverflow.com/questions/tagged/google-closure-compiler)
|
||||
3. Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ)
|
||||
1. Post in the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss).
|
||||
2. Ask a question on [Stack Overflow](https://stackoverflow.com/questions/tagged/google-closure-compiler).
|
||||
3. Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ).
|
||||
|
||||
## Building it Yourself
|
||||
|
||||
Note: The Closure Compiler requires [Java 7 or higher](http://www.java.com/).
|
||||
Note: The Closure Compiler requires [Java 7 or higher](https://www.java.com/).
|
||||
|
||||
### Using [Ant](http://ant.apache.org/)
|
||||
### Using [Maven](https://maven.apache.org/)
|
||||
|
||||
1. Download the [Ant build tool](http://ant.apache.org/bindownload.cgi).
|
||||
1. Download [Maven](https://maven.apache.org/download.cgi).
|
||||
|
||||
2. At the root of the source tree, there is an Ant file named ```build.xml```.
|
||||
To use it, navigate to the same directory and type the command
|
||||
2. Add sonatype snapshots repository to `~/.m2/settings.xml`:
|
||||
```
|
||||
<profile>
|
||||
<id>allow-snapshots</id>
|
||||
<activation><activeByDefault>true</activeByDefault></activation>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>snapshots-repo</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
<releases><enabled>false</enabled></releases>
|
||||
<snapshots><enabled>true</enabled></snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
```
|
||||
|
||||
```
|
||||
ant jar
|
||||
```
|
||||
3. On the command line, at the root of this project, run `mvn -DskipTests` (omit the `-DskipTests` if you want to run all the
|
||||
unit tests too).
|
||||
|
||||
This will produce a jar file called ```build/compiler.jar```.
|
||||
This will produce a jar file called `target/closure-compiler-1.0-SNAPSHOT.jar`. You can run this jar
|
||||
as per the [Running section](#running) of this Readme. If you want to depend on the compiler via
|
||||
Maven in another Java project, use the `com.google.javascript/closure-compiler-unshaded` artifact.
|
||||
|
||||
### Using [Eclipse](http://www.eclipse.org/)
|
||||
Running `mvn -DskipTests -pl externs/pom.xml,pom-main.xml,pom-main-shaded.xml`
|
||||
will skip building the GWT version of the compiler. This can speed up the build process significantly.
|
||||
|
||||
1. Download and open the [Eclipse IDE](http://www.eclipse.org/).
|
||||
2. Navigate to ```File > New > Project ...``` and create a Java Project. Give
|
||||
the project a name.
|
||||
3. Select ```Create project from existing source``` and choose the root of the
|
||||
checked-out source tree as the existing directory.
|
||||
3. Navigate to the ```build.xml``` file. You will see all the build rules in
|
||||
the Outline pane. Run the ```jar``` rule to build the compiler in
|
||||
```build/compiler.jar```.
|
||||
### Using [Eclipse](https://www.eclipse.org/)
|
||||
|
||||
1. Download and open the [Eclipse IDE](https://www.eclipse.org/).
|
||||
2. On the command line, at the root of this project, run `mvn eclipse:eclipse -DdownloadSources=true` to download JARs and build Eclipse project configuration.
|
||||
3. Navigate to `File > Import > Maven > Existing Maven Projects` and browse to closure-compiler inside of Eclipse.
|
||||
4. Import both closure-compiler and the nested externs project.
|
||||
5. Disregard the warnings about maven-antrun-plugin and build errors.
|
||||
6. In Package Explorer, remove from the build path:
|
||||
- `src/com/google/javascript/jscomp/debugger/DebuggerGwtMain.java`
|
||||
- `src/com/google/javascript/jscomp/gwt/`
|
||||
7. [Exclude the files](https://stackoverflow.com/questions/1187868/how-can-i-exclude-some-folders-from-my-eclipse-project) in the directory `src/com/google/debugging/sourcemap/super` from the project.
|
||||
8. Build project in Eclipse (right click on the project `closure-compiler-parent` and select `Build Project`).
|
||||
9. See *Using Maven* above to build the JAR.
|
||||
|
||||
## Running
|
||||
|
||||
On the command line, at the root of this project, type
|
||||
|
||||
```
|
||||
java -jar build/compiler.jar
|
||||
java -jar target/closure-compiler-1.0-SNAPSHOT.jar
|
||||
```
|
||||
|
||||
This starts the compiler in interactive mode. Type
|
||||
|
|
@ -74,7 +95,15 @@ java -jar compiler.jar --help
|
|||
```
|
||||
|
||||
More detailed information about running the Closure Compiler is available in the
|
||||
[documentation](http://code.google.com/closure/compiler/docs/gettingstarted_app.html).
|
||||
[documentation](https://developers.google.com/closure/compiler/docs/gettingstarted_app).
|
||||
|
||||
|
||||
### Run using Eclipse
|
||||
|
||||
1. Open the class `src/com/google/javascript/jscomp/CommandLineRunner.java` or create your own extended version of the class.
|
||||
2. Run the class in Eclipse.
|
||||
3. See the instructions above on how to use the interactive mode - but beware of the [bug](https://stackoverflow.com/questions/4711098/passing-end-of-transmission-ctrl-d-character-in-eclipse-cdt-console) regarding passing "End of Transmission" in the Eclipse console.
|
||||
|
||||
|
||||
## Compiling Multiple Scripts
|
||||
|
||||
|
|
@ -91,7 +120,7 @@ You can also use minimatch-style globs.
|
|||
# Recursively include all js files in subdirs
|
||||
java -jar compiler.jar --js_output_file=out.js 'src/**.js'
|
||||
|
||||
# Recursively include all js files in subdirs, exclusing test files.
|
||||
# Recursively include all js files in subdirs, excluding test files.
|
||||
# Use single-quotes, so that bash doesn't try to expand the '!'
|
||||
java -jar compiler.jar --js_output_file=out.js 'src/**.js' '!**_test.js'
|
||||
```
|
||||
|
|
@ -110,7 +139,7 @@ will re-order the inputs automatically.
|
|||
1. First make sure that it is really a bug and not simply the way that Closure Compiler works (especially true for ADVANCED_OPTIMIZATIONS).
|
||||
* Check the [official documentation](https://developers.google.com/closure/compiler/)
|
||||
* Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ)
|
||||
* Search on [Stack Overflow](http://stackoverflow.com/questions/tagged/google-closure-compiler) and in the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
|
||||
* Search on [Stack Overflow](https://stackoverflow.com/questions/tagged/google-closure-compiler) and in the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
|
||||
2. If you still think you have found a bug, make sure someone hasn't already reported it. See the list of [known issues](https://github.com/google/closure-compiler/issues).
|
||||
3. If it hasn't been reported yet, post a new issue. Make sure to add enough detail so that the bug can be recreated. The smaller the reproduction code, the better.
|
||||
|
||||
|
|
@ -118,7 +147,7 @@ will re-order the inputs automatically.
|
|||
1. Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ) to make sure that the behaviour you would like isn't specifically excluded (such as string inlining).
|
||||
2. Make sure someone hasn't requested the same thing. See the list of [known issues](https://github.com/google/closure-compiler/issues).
|
||||
3. Read up on [what type of feature requests are accepted](https://github.com/google/closure-compiler/wiki/FAQ#how-do-i-submit-a-feature-request-for-a-new-type-of-optimization).
|
||||
4. Submit your reqest as an issue.
|
||||
4. Submit your request as an issue.
|
||||
|
||||
### Submitting patches
|
||||
1. All contributors must sign a contributor license agreement (CLA).
|
||||
|
|
@ -126,16 +155,18 @@ will re-order the inputs automatically.
|
|||
and that you give us permission to use that code in Closure Compiler.
|
||||
You maintain the copyright on that code.
|
||||
If you own all the rights to your code, you can fill out an
|
||||
[individual CLA](http://code.google.com/legal/individual-cla-v1.0.html).
|
||||
[individual CLA](https://code.google.com/legal/individual-cla-v1.0.html).
|
||||
If your employer has any rights to your code, then they also need to fill out
|
||||
a [corporate CLA](http://code.google.com/legal/corporate-cla-v1.0.html).
|
||||
a [corporate CLA](https://code.google.com/legal/corporate-cla-v1.0.html).
|
||||
If you don't know if your employer has any rights to your code, you should
|
||||
ask before signing anything.
|
||||
By default, anyone with an @google.com email address already has a CLA
|
||||
signed for them.
|
||||
2. To make sure your changes are of the type that will be accepted, ask about your patch on the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
|
||||
3. Fork the repository.
|
||||
4. Make your changes.
|
||||
4. Make your changes. Check out our
|
||||
[coding conventions](https://github.com/google/closure-compiler/wiki/Contributors#coding-conventions)
|
||||
for details on making sure your code is in correct style.
|
||||
5. Submit a pull request for your changes. A project developer will review your work and then merge your request into the project.
|
||||
|
||||
## Closure Compiler License
|
||||
|
|
@ -166,7 +197,7 @@ limitations under the License.
|
|||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>http://www.mozilla.org/rhino</td>
|
||||
<td>https://www.mozilla.org/rhino</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -198,11 +229,6 @@ system have been added.</td>
|
|||
### Args4j
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/args4j.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>https://args4j.dev.java.net/</td>
|
||||
|
|
@ -210,7 +236,7 @@ system have been added.</td>
|
|||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>2.0.26</td>
|
||||
<td>2.33</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -233,11 +259,6 @@ options/arguments in your CUI application.</td>
|
|||
### Guava Libraries
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/guava.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>https://github.com/google/guava</td>
|
||||
|
|
@ -245,7 +266,7 @@ options/arguments in your CUI application.</td>
|
|||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>18.0</td>
|
||||
<td>20.0</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -267,19 +288,14 @@ options/arguments in your CUI application.</td>
|
|||
### JSR 305
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/jsr305.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>http://code.google.com/p/jsr-305/</td>
|
||||
<td>https://github.com/findbugsproject/findbugs</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>svn revision 47</td>
|
||||
<td>3.0.1</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -301,19 +317,14 @@ options/arguments in your CUI application.</td>
|
|||
### JUnit
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/junit.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>http://sourceforge.net/projects/junit/</td>
|
||||
<td>https://sourceforge.net/projects/junit/</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>4.11</td>
|
||||
<td>4.12</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -335,19 +346,14 @@ options/arguments in your CUI application.</td>
|
|||
### Protocol Buffers
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/protobuf-java.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>http://code.google.com/p/protobuf/</td>
|
||||
<td>https://github.com/google/protobuf</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>2.5.0</td>
|
||||
<td>3.0.2</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -370,11 +376,6 @@ an encoding of structured data.</td>
|
|||
### Truth
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/truth.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>https://github.com/google/truth</td>
|
||||
|
|
@ -382,7 +383,7 @@ an encoding of structured data.</td>
|
|||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>0.24</td>
|
||||
<td>0.32</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -404,21 +405,14 @@ an encoding of structured data.</td>
|
|||
### Ant
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td>
|
||||
<code>lib/ant.jar</code>, <code>lib/ant-launcher.jar</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>http://ant.apache.org/bindownload.cgi</td>
|
||||
<td>https://ant.apache.org/bindownload.cgi</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>1.8.1</td>
|
||||
<td>1.9.7</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -441,19 +435,14 @@ without make's wrinkles and with the full portability of pure java code.</td>
|
|||
### GSON
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Code Path</td>
|
||||
<td><code>lib/gson.jar</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>https://code.google.com/p/google-gson/</td>
|
||||
<td>https://github.com/google/gson</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td>2.2.4</td>
|
||||
<td>2.7</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -11,13 +11,19 @@ redirect_from:
|
|||
Device Configurations
|
||||
---------------------
|
||||
|
||||
All PCjs machines are built from the following sets of devices:
|
||||
All PCjs machines are built from devices organized by CPU:
|
||||
|
||||
* [6502 Devices](c1p/): [Challenger 1P](c1p/machine/)
|
||||
* [8080 Devices](pc8080/): [Space Invaders](pc8080/machine/invaders/), [VT100 Terminal](pc8080/machine/vt100/)
|
||||
* [8086 Devices](pcx86/): [IBM PC and compatibles](pcx86/machine/)
|
||||
* [PDP-10 Devices](pdp10/): [PDP-10 (Model KA10)](pdp10/machine/ka10/)
|
||||
* [PDP-11 Devices](pdp11/): [PDP-11/20](pdp11/machine/1120/), [PDP-11/45](pdp11/machine/1145/), [PDP-11/70](pdp11/machine/1170/)
|
||||
* [6502](c1p/)
|
||||
- [Challenger 1P](c1p/machine/)
|
||||
* [8080](pc8080/)
|
||||
- [Space Invaders](pc8080/machine/invaders/)
|
||||
- [VT100 Terminal](pc8080/machine/vt100/)
|
||||
* [8086-80386](pcx86/)
|
||||
- [IBM PC and compatibles](pcx86/machine/)
|
||||
* [PDP-10](pdp10/)
|
||||
- [PDP-10 (Model KA10)](pdp10/machine/ka10/)
|
||||
* [PDP-11](pdp11/)
|
||||
- [PDP-11/20](pdp11/machine/1120/), [PDP-11/45](pdp11/machine/1145/), [PDP-11/70](pdp11/machine/1170/)
|
||||
|
||||
These devices are user-installable components that you would typically find in a real personal computer,
|
||||
such as keyboards, disk drive controllers with one or more drives, video cards, etc.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/machine.xsl"?>
|
||||
<machine id="c1psim" type="c1p" border="1" width="100%" padBottom="8px" background="default" style="padding-bottom:8px">
|
||||
<name>OSI Challenger 1P (32Kb) with Disk Support</name>
|
||||
<computer id="c1p" name="Challenger 1P">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/machine.xsl"?>
|
||||
<machine id="c1pAll" type="c1p" border="1" width="100%" padBottom="8px" background="default" style="padding-bottom:8px">
|
||||
<name>OSI Challenger 1P (8Kb, Additional Software)</name>
|
||||
<computer id="c1p" name="Challenger 1P">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/machine.xsl"?>
|
||||
<machine id="c1pAll" type="c1p" border="1" pos="center" background="default" style="padding-bottom:8px">
|
||||
<name>OSI Challenger 1P (8Kb, Additional Software)</name>
|
||||
<computer id="c1p" name="Challenger 1P">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/outline.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/outline.xsl"?>
|
||||
<outline>
|
||||
<title>Challenger 1P (8Kb) "Server Array"</title>
|
||||
<machine id="OSI1" ref="/devices/c1p/machine/8kb/small/machine.xml"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/machine.xsl"?>
|
||||
<machine id="c1p8kb" type="c1p" border="1" width="100%" background="default" style="padding-bottom:8px">
|
||||
<name>OSI Challenger 1P (8Kb) with Debugger</name>
|
||||
<computer id="c1p" name="Challenger 1P">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/machine.xsl"?>
|
||||
<machine id="c1pLarge" type="c1p" border="1" pos="center" background="default" style="padding-bottom:8px">
|
||||
<name pos="center">OSI Challenger 1P (circa 1978)</name>
|
||||
<computer id="c1p" name="Challenger 1P">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/c1pjs/1.37.1/machine.xsl"?>
|
||||
<machine id="c1pSmall" type="c1p" border="1" width="272px" pos="left" padding="16px" background="default" style="padding-bottom:8px">
|
||||
<computer id="c1p" name="Challenger 1P">
|
||||
<module type="cpu" refid="cpu6502" start="0x0000" end="0xffff"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="test8080" type="pc8080" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">8080 Exerciser Test Machine</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="test8080" type="pc8080" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">8080 Exerciser Preliminary Test Machine</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="test8080" type="pc8080" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">8080 CPUTEST Machine</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="test8080" type="pc8080" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">8080 "Kelly Smith" Test Machine</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="test8080" type="pc8080" border="1" pos="center" background="default">
|
||||
<name pos="center">8080 Exerciser Test Machine</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="invaders" type="pc8080" border="1" pos="center" background="default">
|
||||
<name pos="center">Space Invaders</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="invaders" type="pc8080" border="1" pos="center" background="default">
|
||||
<name pos="center">Space Invaders</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="vt100" type="pc8080" class="machine-left" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">VT100 Terminal</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="vt100" type="pc8080" class="machine-right" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">VT100 Terminal</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="vt100" type="pc8080" border="1" pos="center" background="default">
|
||||
<name pos="center">VT100 Terminal</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="vt100" type="pc8080" class="machine-left" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">VT100 Terminal</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="vt100" type="pc8080" class="machine-right" border="1" pos="center" background="#FAEBD7">
|
||||
<name pos="center">VT100 Terminal</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.36.0/machine.xsl"?>
|
||||
<?xml-stylesheet type="text/xsl" href="/versions/pc8080/1.37.1/machine.xsl"?>
|
||||
<machine id="vt100" type="pc8080" border="1" pos="center" background="default">
|
||||
<name pos="center">VT100 Terminal</name>
|
||||
<computer id="computer" busWidth="16"/>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ permalink: /devices/pc8080/panel/
|
|||
---
|
||||
|
||||
8080-Based Control Panels
|
||||
---
|
||||
-------------------------
|
||||
|
||||
[Control Panels](/docs/pcx86/panel/) are XML files that define layouts for Debugger-related controls.
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ redirect_from:
|
|||
---
|
||||
|
||||
IBM PC Device Configurations
|
||||
---
|
||||
----------------------------
|
||||
|
||||
All our [IBM PC Machines](machine/) are built from a collection of devices, including:
|
||||
|
||||
|
|
@ -33,9 +33,9 @@ For example, the IBM PC *[Keyboard](/docs/pcx86/keyboard/)* component supports d
|
|||
(eg, 83-key, 84-key, 101-key), and each of those models can also be configured to have dedicated buttons for
|
||||
selected key combinations, or even entire keyboard layouts.
|
||||
|
||||
Complete [machine configurations](machine/) are constructed from those devices. A Machine Configuration is a single XML file
|
||||
that lists all the device components to be used. A Machine XML file can choose to configure every device itself,
|
||||
or it can include pre-configured device XML files, such as those provided above or elsewhere.
|
||||
Complete [machine configurations](machine/) are constructed from those devices. A Machine Configuration is a
|
||||
single XML file that lists all the device components to be used. A Machine XML file can choose to configure every
|
||||
device itself, or it can include pre-configured device XML files, such as those provided above or elsewhere.
|
||||
|
||||
Here's an [IBM 5150](/devices/pcx86/machine/5150/mda/64kb/) [XML](/devices/pcx86/machine/5150/mda/64kb/machine.xml)
|
||||
example:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ permalink: /devices/pcx86/chipset/
|
|||
---
|
||||
|
||||
IBM PC ChipSet Configurations
|
||||
---
|
||||
-----------------------------
|
||||
|
||||
The following predefined *[ChipSet](/docs/pcx86/chipset/)* XML configurations are currently available:
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue