***
![pc98](https://user-images.githubusercontent.com/22881403/40662783-f0fd7244-631c-11e8-85f4-e814a9be0350.png)
***
_The PC-9800 was a series of computers sold between 1982 and 2000 by NEC.  The line ended up dominating the Japanese computer gaming market, with over 18 million units sold by the end of it's life._
***

| Emulator | Rom Folder | Extension | BIOS Files |
| :---: | :---: | :---: | :---: |
| [lr-np2kai](http://domisan.sakura.ne.jp/article/np2kai/np2kai.html) | pc98 | .d88 .d98 .88d .98d .fdi .xdf .hdm .dup .2hd .tfd .hdi .thd .nhd .hdd .fdd .cmd .hdn .zip| bios.rom, font.rom, itf.rom, sound.rom, 2608_bd.wav, 2608_sd.wav, 2608_top.wav, 2608_hh.wav, 2608_tom.wav, 2608_rim.wav |

## Emulator: [lr-np2kai](https://github.com/AZO234/NP2kai)
This emulator can be installed from the experimental menu of the [RetroPie-Setup script.](Updating-RetroPie#using-the-retropie-setup-script)

Libreto Docs for Neko Project II Kai are [HERE](https://docs.libretro.com/library/neko_project_ii_kai/)

## ROMS

Accepted File Extensions: **.d88 .d98 .88d .98d .fdi .xdf .hdm .dup .2hd .tfd .hdi .thd .nhd .hdd .fdd .cmd .hdn .zip** 

Place your PC-98 games in:
```
/home/pi/RetroPie/roms/pc98
```

## Multi Disk Games

Many PC-98 games can be played as Hard Drive installs (`.hdi`), but many games are run from multiple floppies. To load two disks simultaneously into the emulator, you need to use a `.cmd` file, rather than a `.m3u` file.   
For example, _Story of Melroon_ has a Disk A and Disk B, so create a file named _The Story of Melroon.cmd_ containing:

```
np2kai "The Story of Melroon (Disk A).nfd" "The Story of Melroon (Disk B).nfd"
```
Starting the game from the `.cmd` file will load the _Disk A_ into the _FDD1_ disk drive and _Disk B_ into the _FDD2_ drive. Changing the disk in _FDD2_ can be done through RetroArch's disk control menus. The core will swap the contents of the _FDD2_ drive by default when using the disk control menus, to swap the disk in _FDD1_ there a core option which needs to be changed (_'Swap Disks on Drive'_).

Some floppy disk images need to be writeable, as save data needs to be written to it. If they're not alreay writeable, run from the terminal the following command to change them is:

``` sh
chmod u+w /path/to/your/disk_image_file
```


For example, based on the game mentioned before, changing the save disk's image file to be writeable would be:
``` sh
chmod u+w "$HOME/RetroPie/roms/pc98/Dead of the Brain 2(Save Disk).hdm"
```

## BIOS

Place your BIOS files in:
```
/home/pi/RetroPie/BIOS/np2kai
```

## BIOS files

| File | md5sum | CRC32 |
| :--: | :--: | :--: |
| 2608_BD.WAV | 29AAD51CD243C8E449D311D14613F0B1 | FCB60C01 |
| 2608_HH.WAV | 59A009EE444318BD57D99A19068731E4 | 7D6D9C4E |
| 2608_RIM.WAV | 943290D1C5C6AE6295BD02BE4411C7C0 | 8518A388 |
| 2608_SD.WAV | C99156118789B6CBA662C864EBADC62E | C977FDB8 |
| 2608_TOM.WAV | C321A6835B26AD125B2EB78BE56394A4 | 5E8AB475 |
| 2608_TOP.WAV | 9E73FF2345236EBE72F7A937E477F0BD | CEFA9F76 |
| BIOS.ROM | E246140DEC5124C5E404869A84CAEFCE | 76AFFD90 |
| FONT.ROM | 2AF6179D7DE4893EA0B705C00E9A98D6 | CD6DFABE |
| SOUND.ROM | CAF90F22197AED6F14C471C21E64658D | A21EF796 |
| ITF.ROM | E9FC3890963B12CF15D0A2EEA5815B72 | 273E9E88 |

## Controls

lr-np2kai utilise Retroarch configurations

Add custom retroarch controls to the retroarch.cfg file in
```shell
/opt/retropie/configs/pc98/retroarch.cfg
```
For more information on custom RetroArch controls see: [RetroArch Configuration](RetroArch-Configuration)

## Performance Tweaks

The "CPU Clock Multiplier" option in the RetroArch options menu is fairly important when it comes to performance.  Setting it too low might cause your game to run slower than intended, but setting it too high can cause stuttering and slow performance.  It is recommended to use somewhere between a 4x and 8x multiplier.
