Formatted NES Doc

This commit is contained in:
ElectronicsArchiver 2022-03-26 16:20:19 -04:00
parent 7e0053ac8a
commit f2cdbcffa0

View file

@ -1,27 +1,50 @@
<h2>NES / Famicom</h2>
# NES / Famicom
Code example
## Code Example
```
<div style="width:640px;height:480px;max-width:100%">
<div id="game"></div>
```html
<div style='width:640px;height:480px;max-width:100%'>
<div id='game'></div>
</div>
<script type="text/javascript">
EJS_player = '#game';
EJS_biosUrl = ''; // Url to Famicom Disk System bios
EJS_gameUrl = ''; // Url to Game rom
EJS_core = 'nes';
EJS_lightgun = false; // Lightgun
EJS_pathtodata = 'data/'; //path to all of the wasm and js files. MUST all be in the same directory!!
</script>
<script src="data/loader.js"></script>
```
Your rom MUST have one of the following extensions
<script type='text/javascript'>
EJS_player = '#game';
EJS_core = 'nes';
// Lightgun
EJS_lightgun = false;
// URL to Famicom Disk System bios
EJS_biosUrl = '';
// URL to Game rom
EJS_gameUrl = '';
/*
* Path to the WASM / JS files
* HAS TO BE in the same directory.
*/
EJS_pathtodata = 'data/';
</script>
<script src='data/loader.js'></script>
```
.fds
.nes
.unif
.unf
```
You can find the famicon BIOS by looking up the md5 sum which is `ca30b50f880eb660a320674ed365ef7a`
## ROM Type
Your **ROM** can have the following types:
- `fds`
- `nes`
- `unif`
- `unf`
### BIOS
You can find the **Famicon BIOS** by looking up the **MD5** checksum: <br>
`ca30b50f880eb660a320674ed365ef7a`