Initial commit (a clone of the jsmachines project as of v1.15.3)
This commit is contained in:
commit
a5e3e6a59d
714 changed files with 130602 additions and 0 deletions
95
docs/pcjs/chipset/README.md
Normal file
95
docs/pcjs/chipset/README.md
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<chipset>
|
||||
===
|
||||
|
||||
PCjs *ChipSet* XML Specification
|
||||
---
|
||||
|
||||
Format
|
||||
---
|
||||
<chipset>...</chipset>
|
||||
|
||||
Purpose
|
||||
---
|
||||
Creates an instance of the ChipSet component, which includes support for the following internal components:
|
||||
|
||||
* 8237 Direct Memory Access (DMA) Controller
|
||||
* 8259 Programmable Interrupt Controller (PIC)
|
||||
* 8253 Programmable Interval Timers (PIT)
|
||||
* 8255 Programmable Peripheral Interface (PPI)
|
||||
* Speaker (sound requires [webkitAudioContext](http://www.w3.org/TR/webaudio/) support in the web browser)
|
||||
|
||||
Attributes
|
||||
---
|
||||
* *model* (required)
|
||||
|
||||
The IBM PC model number to simulate (must be either 5150 or 5160).
|
||||
|
||||
* *sw1* (optional): A binary string representing DIP switches #1 through #8 for the SW1 switch block on the IBM PC motherboard, as follows:
|
||||
|
||||
* \#1:
|
||||
* 0 (OFF) for normal operation
|
||||
* 1 (ON) to loop in the ROM BIOS POST (Power-On Self-Test)
|
||||
* \#2:
|
||||
* 0 (OFF) if math coprocessor installed
|
||||
* 1 (ON) if math coprocessor NOT installed
|
||||
* \#3 and \#4:
|
||||
* 11 for 64Kb
|
||||
* 01 for 128Kb
|
||||
* 10 for 192Kb
|
||||
* 00 for 256Kb
|
||||
* \#5 and \#6:
|
||||
* 11 for no monitor (or EGA installed)
|
||||
* 01 for Color Display (for use with CGA in 40x25 mode)
|
||||
* 10 for Color Display (for use with CGA in 80x25 mode)
|
||||
* 00 for Monochrome Display (or more than one Color/Monochrome monitor)
|
||||
* \#7 and \#8:
|
||||
* 11 for 1 diskette drive
|
||||
* 01 for 2 diskette drives
|
||||
* 10 for 3 diskette drives
|
||||
* 00 for 4 diskette drives
|
||||
|
||||
* *sw2* (optional)
|
||||
|
||||
A binary string representing DIP switches 1-8 for the SW2 switch block on the IBM PC motherboard,
|
||||
indicating the number of 32Kb blocks of additional RAM installed (model 5150 only).
|
||||
|
||||
* *sound* (optional)
|
||||
|
||||
*true* (default) to enable sound, assuming the browser supports **webkitAudioContext**, or *false* to disable sound.
|
||||
|
||||
* Also supports the attributes of *[Component](/docs/pcjs/component/)*.
|
||||
|
||||
Bindings
|
||||
---
|
||||
* *sw1*
|
||||
|
||||
For use with a control of type *switches*, which creates a <div> that the ChipSet will use to display the current settings of the SW1 switch block.
|
||||
|
||||
* *sw2*
|
||||
|
||||
Same as above, but for the SW2 switch block, if any.
|
||||
|
||||
* *swdesc*
|
||||
|
||||
For use with a control of type *descriptions*, which creates a <div> that the ChipSet will use to display a text description of the selected DIP switch settings.
|
||||
|
||||
Example
|
||||
---
|
||||
<chipset id="chipset" model="5150" sw1="01000001" sw2="11110000"/>
|
||||
|
||||
Output
|
||||
---
|
||||
<div id="..." class="pc-chipset pc-component">
|
||||
<div class="pc-container">
|
||||
<div class="pcjs-chipset" data-value="id:'...',name:'...',model:'...',sw1:'...',sw2:'...'"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Also, if any controls are defined, another <div> of class="pc-controls" is created in the container <div>,
|
||||
with each control inside a <div> of class="pc-control".
|
||||
|
||||
[Return to [PCjs Documentation](..)]
|
||||
|
||||
<!-- NOTE: I had to "escape" the hashmarks above, otherwise PhpStorm's Markdown plugin would preview them as
|
||||
headings; I think that's a bug in the plugin, because my reading of Markdown's syntax for the "Atx-style headers"
|
||||
is that header hashmarks must always appear at the beginning of the line. --@jeffpar -->
|
||||
Loading…
Reference in a new issue