Starting work on disambiguating PCjs the emulator from PCjs the project/website; the emulator will become PCx86

This commit is contained in:
Jeff Parsons 2016-05-16 20:53:57 -07:00
commit 288f28055d
1519 changed files with 16242 additions and 6939 deletions

View file

@ -1,66 +0,0 @@
---
layout: page
title: PCjs <ram> Element
permalink: /docs/pcjs/ram/
---
PCjs Random-Access Memory (RAM) Component
---
Format
---
```xml
<ram>...</ram>
```
Purpose
---
Creates an instance of the RAM component. Multiple instances can be defined, if necessary,
to create discontiguous blocks of RAM.
Attributes
---
* *addr* (required)
The RAM starting address (e.g., 0x00000).
* *size* (optional; default is 0x00000)
The amount of RAM, in bytes. If the size is omitted (or 0), the [ChipSet](/docs/pcjs/chipset/) component
is queried for the amount of RAM indicated by SW1/SW2.
* *test* (optional; default is true)
Disables the ROM BIOS memory test when set to "false".
Also supports the attributes of *[Component](/docs/pcjs/component/)*.
Bindings
---
* *test*
For use with a control of type checkbox, to enable/disable the ROM BIOS memory test.
TODO: Implement.
Example
---
```xml
<ram id="ramLow" addr="0x00000"/>
```
Output
---
```html
<div id="..." class="pc-ram pc-component">
<div class="pc-container">
<div class="pcjs-ram" data-value="id:'...',name:'...',addr:'...',size:'...',test:'...'">
</div>
</div>
</div>
```
Also, if any controls are defined, another &lt;div&gt; of class="pc-controls" is created in the container &lt;div&gt;,
with each control inside a &lt;div&gt; of class="pc-control".
[Return to [PCjs Documentation](..)]