np2pi
np2pi emulates NEC PC-98. It reads 15 files, none of them required: it starts games without them.
About this profile
Install this emulator's files
With RetroPie: the installer finds RetroPie and its BIOS folder, then downloads only the files np2pi reads there and checks each one.
Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://raw.githubusercontent.com/Abdess/retrobios/main/install.sh | sh -s -- --emulator np2piTechnical notes
Raspberry Pi build by eagle0wl of Yui's Neko Project II 0.83
(np2ver.h:1), the SDL front end compiled with sdl/makefile.rpi and
sdl/raspberrypi/compiler.h. That header defines SUPPORT_SASI and
SUPPORT_SCSI but not SUPPORT_PC9821, and bios/bios.c defines
BIOS_SIMULATE, so bios9821.rom and itf.rom are never opened: the ITF
image is the itfrom.res table compiled into the binary.
ref: sdl/, bios/bios.c:16-21,
bios/bios.c:257-268, bios/bios.c:302-318
Every file below is opened from the working directory. datadir is "./",
file_setcd(datadir) makes it the base of file_getcd, and getbiospath
falls back to file_getcd while the biospath key of np2.cfg is empty, as
it is by default. np2.cfg itself is read and written there.
ref: sdl/np2.c:48, sdl/np2.c:152, sdl/dosio.c:180-195, pccore.c:98-111,
sdl/ini.c:318, sdl/ini.c:412-416
RetroPie launches np2 from its pc98 configuration directory, where it links 2608_bd.wav, 2608_hh.wav, 2608_rim.wav, 2608_sd.wav, 2608_tom.wav, 2608_top.wav, bios.rom, FONT.ROM and sound.rom from the pc98 folder of its BIOS directory, and TakaoGothic as default.ttf. The paths below follow that folder. The other files are read only when placed in the working directory itself.
Fonts are filled in order and each source only supplies the glyphs still
missing: the fontfile key of np2.cfg (empty by default), FONT.BMP,
FONT.ROM, then the PC-8801 KANJI1.ROM, KANJI2.ROM and PC88.FNT. Glyphs
still missing after that are drawn from default.ttf through SDL_ttf into
font.tmp, which is reused on later runs. default.ttf is a desktop font,
not a machine ROM.
ref: pccore.c:251, font/font.c:113-188, font/fontdata.c:8-12,
font/fontpc88.c:81-193, sdl/fontmng.c:12-16
15 files: 0 required, 15 optional. 9 have an HLE fallback.
In this collection: 13 in repo, 1 missing and 1 unsourceable.
Optional
Section titled “Optional”15 files
bios.rom optional in repo HLE fallback
PC-9801 system BIOS, E8000h-FFFFFh
- Path:
pc98/bios.rom - System: NEC PC-98
- Size: min 96.0 KB
- Validation: size
- Source:
bios/bios.c:226-256,common/strres.c:53 - Collection copy:
bios/NEC/PC-98/bios.rom - Platforms: Lakka:
np2kai/bios.rom, RetroArch:np2kai/bios.rom, RetroDECK:bios/bios.rom, RetroPie:np2kai/bios.rom, RomM:pc-9800-series/bios.rom
- The first 0x18000 bytes are read to E8000h. A shorter file, or no file, leaves the built-in BIOS simulation in place.
FONT.BMP optional in repo HLE fallback
PC-98 character generator as a 2048x2048 monochrome bitmap
- Path:
pc98/FONT.BMP - System: NEC PC-98
- Source:
font/font.c:179,font/fontdata.c:11,font/fontpc98.c:11-16 - Collection copy:
bios/NEC/PC-98/font.bmp - Platforms: Batocera:
np2kai/font.bmp, KNULLI:np2kai/font.bmp, Lakka:np2kai/font.bmp, Recalbox:np2kai/font.bmp, RetroArch:np2kai/font.bmp, RetroBat:np2kai/font.bmp, RetroDECK:bios/font.bmp, RetroPie:np2kai/font.bmp, RomM:pc-9800-series/font.bmp
- First font source tried from the working directory.
FONT.ROM optional in repo HLE fallback
PC-98 character generator in the Virtual98 layout
- Path:
pc98/FONT.ROM - System: NEC PC-98
- Size: min 282.0 KB
- Validation: size
- Source:
font/font.c:180,font/fontdata.c:12,font/fontv98.c:8,font/fontv98.c:30-51 - Collection copy:
bios/NEC/PC-98/font.rom - Platforms: Lakka:
np2kai/FONT.ROM, Recalbox:np2kai/font.rom, RetroArch:np2kai/FONT.ROM, RetroPie:np2kai/FONT.ROM, RomM:pc-9800-series/font.rom
- Read when glyphs are still missing after FONT.BMP. 0x46800 bytes are read, a shorter file is ignored.
KANJI1.ROM optional in repo HLE fallback
PC-8801 first level kanji ROM
- Path:
pc98/KANJI1.ROM - System: NEC PC-98
- Size: min 128.0 KB
- Validation: size
- Source:
font/font.c:181,font/fontdata.c:9,font/fontpc88.c:94-133 - Collection copy:
bios/NEC/PC-88/KANJI1.ROM - Platforms: Batocera:
quasi88/N88KNJ1.ROM, KNULLI:quasi88/N88KNJ1.ROM, Lakka:quasi88/n88knj1.rom, Recalbox:quasi88/n88knj1.rom, RetroArch:quasi88/n88knj1.rom, RetroDECK:bios/KANJI1.ROM,bios/n88knj1.rom, RetroPie:quasi88/n88knj1.rom
- Read after FONT.ROM for the ANK and first level kanji glyphs still missing, 0x20000 bytes.
KANJI2.ROM optional in repo HLE fallback
PC-8801 second level kanji ROM
- Path:
pc98/KANJI2.ROM - System: NEC PC-98
- Size: min 128.0 KB
- Validation: size
- Source:
font/font.c:181,font/fontdata.c:10,font/fontpc88.c:135-152 - Collection copy:
bios/NEC/PC-88/n88knj2.rom - Platforms: Lakka:
quasi88/n88knj2.rom, RetroArch:quasi88/n88knj2.rom, RetroPie:quasi88/n88knj2.rom
- Read for the second level kanji glyphs still missing, 0x20000 bytes.
PC88.FNT optional missing HLE fallback
PC-8801 ANK font
- Path:
pc98/PC88.FNT - System: NEC PC-98
- Size: min 6.0 KB
- Validation: size
- Source:
font/font.c:181,font/fontdata.c:8,font/fontpc88.c:154-187
- Read for the ANK glyphs still missing, 0x1800 bytes.
sound.rom optional in repo HLE fallback
FM sound board BIOS
- Path:
pc98/sound.rom - System: NEC PC-98
- Size: min 16.0 KB
- Validation: size
- Source:
sound/soundrom.c:11-16,sound/soundrom.c:19-81,cbus/board26k.c:87,cbus/board86.c:178 - Collection copy:
bios/NEC/PC-98/sound.rom - Platforms: Lakka:
np2kai/sound.rom, RetroArch:np2kai/sound.rom, RetroDECK:bios/sound.rom, RetroPie:np2kai/sound.rom, RomM:pc-9800-series/sound.rom
- Each board first tries its own image, sound14.rom, sound26.rom, sound86.rom, sound118.rom or soundSPB.rom, then sound.rom, reading 0x4000 bytes. Without one a 9-byte stub is written to the ROM window.
2608_bd.wav optional in repo
YM2608 rhythm sample, bass drum
- Path:
pc98/2608_bd.wav - System: NEC PC-98
- Source:
sound/rhythmc.c:8,sound/rhythmc.c:57-68 - Collection copy:
bios/NEC/PC-98/2608_bd.wav - Platforms: Lakka:
np2kai/2608_BD.WAV,np2kai/2608_bd.wav, RetroArch:np2kai/2608_BD.WAV, RetroDECK:bios/2608_BD.WAV, RetroPie:np2kai/2608_BD.WAV,np2kai/2608_bd.wav, RomM:pc-9800-series/2608_bd.wav
2608_sd.wav optional in repo
YM2608 rhythm sample, snare drum
- Path:
pc98/2608_sd.wav - System: NEC PC-98
- Source:
sound/rhythmc.c:9,sound/rhythmc.c:57-68 - Collection copy:
bios/NEC/PC-98/2608_sd.wav - Platforms: Lakka:
np2kai/2608_SD.WAV,np2kai/2608_sd.wav, RetroArch:np2kai/2608_SD.WAV, RetroDECK:bios/2608_SD.WAV, RetroPie:np2kai/2608_SD.WAV,np2kai/2608_sd.wav, RomM:pc-9800-series/2608_sd.wav
2608_top.wav optional in repo
YM2608 rhythm sample, top cymbal
- Path:
pc98/2608_top.wav - System: NEC PC-98
- Source:
sound/rhythmc.c:10,sound/rhythmc.c:57-68 - Collection copy:
bios/NEC/PC-98/2608_top.wav - Platforms: Lakka:
np2kai/2608_TOP.WAV,np2kai/2608_top.wav, RetroArch:np2kai/2608_TOP.WAV, RetroDECK:bios/2608_TOP.WAV, RetroPie:np2kai/2608_TOP.WAV,np2kai/2608_top.wav, RomM:pc-9800-series/2608_top.wav
2608_hh.wav optional in repo
YM2608 rhythm sample, hi-hat
- Path:
pc98/2608_hh.wav - System: NEC PC-98
- Source:
sound/rhythmc.c:11,sound/rhythmc.c:57-68 - Collection copy:
bios/NEC/PC-98/2608_hh.wav - Platforms: Lakka:
np2kai/2608_HH.WAV,np2kai/2608_hh.wav, RetroArch:np2kai/2608_HH.WAV, RetroDECK:bios/2608_HH.WAV, RetroPie:np2kai/2608_HH.WAV,np2kai/2608_hh.wav, RomM:pc-9800-series/2608_hh.wav
2608_tom.wav optional in repo
YM2608 rhythm sample, tom
- Path:
pc98/2608_tom.wav - System: NEC PC-98
- Source:
sound/rhythmc.c:12,sound/rhythmc.c:57-68 - Collection copy:
bios/NEC/PC-98/2608_tom.wav - Platforms: Lakka:
np2kai/2608_TOM.WAV,np2kai/2608_tom.wav, RetroArch:np2kai/2608_TOM.WAV, RetroDECK:bios/2608_TOM.WAV, RetroPie:np2kai/2608_TOM.WAV,np2kai/2608_tom.wav, RomM:pc-9800-series/2608_tom.wav
2608_rim.wav optional in repo
YM2608 rhythm sample, rim shot
- Path:
pc98/2608_rim.wav - System: NEC PC-98
- Source:
sound/rhythmc.c:13,sound/rhythmc.c:57-68 - Collection copy:
bios/NEC/PC-98/2608_rim.wav - Platforms: Lakka:
np2kai/2608_RIM.WAV,np2kai/2608_rim.wav, RetroArch:np2kai/2608_RIM.WAV, RetroDECK:bios/2608_RIM.WAV, RetroPie:np2kai/2608_RIM.WAV,np2kai/2608_rim.wav, RomM:pc-9800-series/2608_rim.wav
sasi.rom optional in repo HLE fallback
SASI controller BIOS
- Path:
pc98/sasi.rom - System: NEC PC-98
- Size: min 4.0 KB
- Validation: size
- Source:
cbus/sasiio.c:442-465 - Collection copy:
bios/NEC/PC-98/sasi.rom
- Read when a SASI disk is attached, 0x1000 bytes. Otherwise the built-in stub is copied.
scsi.rom optional unsourceable HLE fallback
SCSI controller BIOS
- Path:
pc98/scsi.rom - System: NEC PC-98
- Size: min 16.0 KB
- Validation: size
- Source:
cbus/scsiio.c:208-233
- Read when a SCSI disk is attached, 0x4000 bytes. Otherwise the built-in stub is copied.
- Not collectable: PC-98 SCSI BIOS image the collection does not hold, and a same-named ROM of another machine must not stand in (acknowledged gaps)
Next steps
Section titled “Next steps”- Get your files, for the setup you play on
- Every system, and the files each one needs
- When a game does not start