NP2kai/README.md

489 lines
11 KiB
Markdown
Raw Normal View History

2018-02-06 05:21:51 +00:00
Neko Project II 0.86 kai rev.15
2017-06-21 09:17:35 +00:00
===
2018-02-06 05:19:40 +00:00
Feb 6, 2018
2017-06-21 09:17:35 +00:00
2017-06-24 14:44:47 +00:00
Build SDL2 port
2017-06-21 09:17:35 +00:00
---
2017-06-21 09:35:56 +00:00
Install SDL2.
2017-06-21 09:27:42 +00:00
2017-09-20 21:14:27 +00:00
(Linux)
$ sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev
2017-09-20 14:07:48 +00:00
or
2017-09-20 21:14:27 +00:00
(Windows + MSYS2)
$ pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer
2017-06-21 09:23:04 +00:00
2017-06-21 09:35:56 +00:00
Build.
2017-06-21 09:27:42 +00:00
2018-02-06 10:23:19 +00:00
$ cd NP2kai/sdl2
2017-09-11 14:09:56 +00:00
$ make -j4 -f Makefile.unix
2017-06-21 09:23:04 +00:00
2017-06-21 09:17:35 +00:00
or
2017-06-21 09:23:04 +00:00
2017-09-11 14:09:56 +00:00
$ make -j4 -f Makefile21.unix
2017-06-21 09:23:04 +00:00
2018-02-06 05:19:40 +00:00
Install NP2kai.
2017-06-21 09:17:35 +00:00
2018-02-06 10:23:19 +00:00
$ sudo -f Makefile.unix install
or
2018-02-06 05:19:40 +00:00
$ sudo -f Makefile21.unix install
Run NP2kai.
$ np2kai
or
$ np21kai
BIOS files locate in ~/.config/np2kai .
2017-07-07 04:39:36 +00:00
2017-06-24 14:44:47 +00:00
Build X11 port
---
Install SDL2.
$ sudo apt-get install libsdl2-dev libsdl2-ttf-dev
Build.
2017-07-04 04:35:28 +00:00
$ cd NP2kai/x11
2017-06-24 14:44:47 +00:00
$ ./autogen.sh
$ ./configure
$ make
or
$ ./configure --enable-ia32
2017-07-08 14:20:57 +00:00
$ make -j4
2017-06-24 14:44:47 +00:00
2018-02-06 05:19:40 +00:00
Install NP2kai.
$ sudo make install
Run NP2kai.
$ xnp2kai
2017-06-24 14:44:47 +00:00
2018-02-06 05:19:40 +00:00
BIOS files locate in ~/.config/xnp2kai .
2017-07-07 04:39:36 +00:00
2017-07-08 15:07:22 +00:00
NP2 menu is opened when F11 key or mouse middle button.
2018-02-06 05:19:40 +00:00
NP2 menu can swap FDD/HDD diskimages.
2017-07-07 14:03:03 +00:00
2017-07-10 02:14:53 +00:00
Build libretro port (Linux)
2017-06-28 04:24:12 +00:00
---
Build.
2017-09-11 16:05:06 +00:00
$ cd NP2kai/sdl2
2017-07-08 14:20:57 +00:00
$ make -j4
2017-06-28 04:24:12 +00:00
2017-09-11 16:05:06 +00:00
'np2kai_libretro.so' binary is outputed in NP2kai/sdl2
2017-06-28 04:24:12 +00:00
2017-07-10 02:14:53 +00:00
Build libretro port (Windows)
---
2017-07-10 16:21:27 +00:00
Build by MSYS2 x86_64. (Reference follow URL)
https://bot.libretro.com/docs/compilation/windows/
2017-07-10 02:14:53 +00:00
2017-09-11 16:05:06 +00:00
$ cd NP2kai/sdl2
2017-07-10 02:14:53 +00:00
$ make -j4
2017-09-11 16:05:06 +00:00
'np2kai_libretro.dll' binary is outputed in NP2kai/sdl2
2017-07-10 02:14:53 +00:00
2017-08-25 22:37:43 +00:00
Build libretro port (Mac) * No confirmation to drive
---
Open terminal.
First 'git' to install XCode.
$ git
Clone this repository
$ git clone https://github.com/AZO234/NP2kai
Build.
2017-09-11 16:05:06 +00:00
$ cd NP2kai/sdl2
2017-08-25 22:37:43 +00:00
$ make -j4
2017-09-11 16:05:06 +00:00
'np2kai_libretro.dylib' binary is outputed in NP2kai/sdl2
2017-08-25 22:37:43 +00:00
Build with libretro-super * No confirmation to drive
---
Open terminal.
Clone libretro-super repository.
2017-08-26 04:52:24 +00:00
$ git clone --depth 1 https://github.com/libretro/libretro-super.git
2017-08-25 22:37:43 +00:00
2017-08-25 23:25:20 +00:00
CD to libretro-super, and clone this repository.
2017-08-25 22:37:43 +00:00
$ cd libretro-super
2017-09-11 04:12:14 +00:00
$ git clone --depth 1 https://github.com/AZO234/NP2kai libretro-np2kai
2017-08-25 22:37:43 +00:00
2017-08-26 00:25:56 +00:00
Build. (e.g. Android)
2017-08-26 00:37:09 +00:00
To build needs Android Studio, and NDK.
https://developer.android.com/studio/index.html
2017-08-26 00:25:56 +00:00
$ export PATH=~/Android/Sdk/ndk-bundle:$PATH
$ chmod +x ./libretro-build-android-mk.sh
2017-09-11 04:12:14 +00:00
$ ./libretro-build-android-mk.sh np2kai
2017-08-26 00:25:56 +00:00
2017-09-11 04:12:14 +00:00
'libnp2kai.so' binary is outputed in libretro-np2kai/libs
2017-08-26 00:25:56 +00:00
2017-08-25 22:37:43 +00:00
Build. (e.g. iOS)
2017-09-11 04:12:14 +00:00
$ ./libretro-build-ios.sh np2kai
2017-08-25 22:37:43 +00:00
2017-09-11 04:12:14 +00:00
'np2kai_libretro_ios.dylib' binary is outputed in libretro-np2kai
2017-08-25 22:37:43 +00:00
2017-07-17 04:44:35 +00:00
about libretro port
---
2018-02-06 10:47:38 +00:00
BIOS files locate in "np2kai" directory at BIOS directory (configured by RetroArch).
Configure file (np2.cfg) is made in "np2kai" BIOS directory.
2017-07-10 02:14:53 +00:00
2017-07-17 03:40:08 +00:00
NP2 menu is opened when F12 key or mouse middle button or joypad L2 button.
2018-02-06 05:19:40 +00:00
NP2 menu can swap FDD/HDD diskimages.
2017-07-17 04:44:35 +00:00
2018-03-01 00:20:57 +00:00
If you run libretro by .m3u file include floppy disk images,
F1 key menu durling play game, you can swap disk.
2018-03-01 00:22:16 +00:00
[Disk Control] -> [Disk Cycle Tray Status] (eject) -> [Disk Index] -> [Disk Cycle Tray Status] (disk set)
2018-03-01 00:20:57 +00:00
2017-07-10 02:14:53 +00:00
Mouse is cuptured (hidden/show toggle) by F11 key.
2017-07-17 04:44:35 +00:00
2017-08-03 15:14:08 +00:00
Mouse cursor is able to move with joypad when Joy2Mouse mode.
Switch Joy2Mouse mode in config.
2017-07-17 05:13:45 +00:00
D-UP/DOWN/LEFT/RIGHT: mouse move
B button: left click
2017-07-17 04:44:35 +00:00
A button: right click
R button: mouse speed up durling hold
2017-07-07 04:39:36 +00:00
2017-08-03 15:14:08 +00:00
Keyboard is able to control with joypad when Joy2Key mode.
Switch Joy2Key mode in config.
D-UP/DOWN/LEFT/RIGHT: Arrow key or Keypad(2468) key
2017-08-03 15:14:08 +00:00
B button: Z key
2017-08-03 15:16:26 +00:00
A button: X key
2017-08-03 15:14:08 +00:00
X button: Space key
2017-08-03 15:16:26 +00:00
Y button: left Ctrl key
L button: Backspace key
R button: right Shift key
Select button: Escape key
2017-08-03 15:14:08 +00:00
Start button: Return key
2018-03-04 00:29:15 +00:00
Keyboard(libretro)
---
Common
2018-03-04 09:57:04 +00:00
|PC-98key|key|problem|menu|
|:---:|:---:|:---:|:---:|
|STOP|Pause|||
|COPY|PrintScreen|don't come event|implemented|
|v.f1||can't push||
|v.f2||can't push||
|v.f3||can't push||
|v.f4||can't push||
|v.f5||can't push||
|Kana||can't push|implemented|
|GRPH|RCtrl|||
|NFER|LAlt|||
|XFER|RAlt|||
|HOME/CLR|Home|||
|HELP|End|||
|KP=|KP=|can't push|implemented|
|KP.|KP.|don't come event|implemented|
2018-03-04 00:29:15 +00:00
JP106 keyboard(default)
2018-03-04 09:57:04 +00:00
|PC-98key|key|info|menu|
|:---:|:---:|:---:|:---:|
|¥ \||¥ \||don't come event|implemented|
|_ _||L2? Menu has open?|implemented|
2018-03-04 00:29:15 +00:00
US101 keyboard
2018-03-04 09:57:04 +00:00
|PC-98key|key|info|menu|
|:---:|:---:|:---:|:---:|
2018-03-04 00:29:15 +00:00
|2 "|2 @|two event 0x02,0x2A|
2018-03-04 09:57:04 +00:00
|¥ \||\\ \||||
|@ `|` ~|don't come event|implemented|
|; +|; :|||
|: *|' "|||
|_ _||can't push|implemented|
2017-07-31 18:47:49 +00:00
2017-07-07 04:39:36 +00:00
BIOS files
---
* bios.rom
* font.rom or font.bmp
2017-07-07 04:39:36 +00:00
* itf.rom
2017-08-16 21:27:10 +00:00
* sound.rom
2017-08-02 20:45:19 +00:00
* (bios9821.rom or d8000.rom But I never see good dump file.)
2017-07-07 04:39:36 +00:00
* 2608_bd.wav
* 2608_sd.wav
* 2608_top.wav
* 2608_hh.wav
* 2608_tom.wav
* 2608_rim.wav
2017-07-07 14:03:03 +00:00
Setting to RetroPie
---
2017-07-29 16:27:53 +00:00
Install Japanese font. (umefont need SDL2 port only)
2017-07-09 01:32:16 +00:00
2017-07-29 16:27:53 +00:00
$ sudo apt-get install fonts-droid fonts-horai-umefont
2017-07-09 01:32:16 +00:00
2017-07-29 16:25:28 +00:00
Locate libretro & SDL2 port files.
2017-07-07 14:03:03 +00:00
2017-07-08 05:37:34 +00:00
$ sudo mkdir /opt/retropie/libretrocores/lr-np2
$ sudo cp np2_libretro.so /opt/retropie/libretrocores/lr-np2/
2017-07-08 23:30:58 +00:00
$ sudo mkdir /opt/retropie/emulators/np2
$ sudo cp np2_libretro.so /opt/retropie/emulators/np2/
$ sudo touch /opt/retropie/emulators/np2/np2.cfg
2017-07-08 23:36:46 +00:00
$ sudo chmod 666 /opt/retropie/emulators/np2/np2.cfg
2017-07-07 14:03:03 +00:00
2017-07-29 16:25:28 +00:00
Write & locate retroarch.cfg.
2017-07-07 14:03:03 +00:00
2017-07-29 16:25:28 +00:00
$ sudo vi /opt/retropie/configs/pc98/retroarch.cfg
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
input_remapping_directory = "/opt/retropie/configs/pc98/"
#include "/opt/retropie/configs/all/retroarch.cfg"
Locate BIOS files.
BIOS files locate in "˜/RetroPie/BIOS/np2/" directory.
2017-07-08 23:30:58 +00:00
and "/opt/retropie/emulators/np2/" too.
2017-07-07 14:03:03 +00:00
2017-07-29 16:25:28 +00:00
Make shortcut to Japanese font. (SDL2 port only)
2017-07-09 01:32:16 +00:00
$ sudo ln -s /usr/share/fonts/truetype/horai-umefont/ume-ugo4.ttf /opt/retropie/emulators/np2/default.ttf
2017-07-29 16:25:28 +00:00
Add "carbon-mod". (Japanese nize)
2018-02-06 10:19:21 +00:00
2017-07-07 14:03:03 +00:00
$ git clone https://github.com/eagle0wl/es-theme-carbon.git
$ sudo cp -r ./es-theme-carbon /etc/emulationstation/themes/carbon-mod
2017-07-29 16:25:28 +00:00
Add to "/etc/emulationstation/es_systems.cfg" writing.
2017-07-07 14:03:03 +00:00
$ sudo nano /etc/emulationstation/es_systems.cfg
2017-07-08 14:20:57 +00:00
...
2017-07-07 14:03:03 +00:00
</system>
<system>
<name>pc98</name>
<fullname>PC-98</fullname>
<path>/home/pi/RetroPie/roms/pc98</path>
2018-02-20 01:06:09 +00:00
<extension>.d88 .88d .d98 .98d .fdi .xdf .hdm .dup .2hd .tfd .nfd .hd4 .hd5 .hd9 .fdd .h01 .hdb .ddb .dd6 .dcp .dcu .flp .bin .fim .img .ima .D88 .88D .D98 .98D .FDI .XDF .HDM .DUP .2HD .TFD .NFD .HD4 .HD5 .HD9 .FDD .H01 .HDB .DDB .DD6 .DCP .DCU .FLP .BIN .FIM .IMG .IMA .thd .nhd .hdi .vhd .sln .hdn .hdd .THD .NHD .HDI .VHD .SLN .HDN .HDD .m3u .M3U</extension>
2017-07-07 14:03:03 +00:00
<command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pc98 %ROM%</command>
<platform>pc98</platform>
<theme>pc98</theme>
<directlaunch/>
</system>
<system>
2017-07-08 14:20:57 +00:00
...
2017-07-07 14:03:03 +00:00
2017-07-29 16:25:28 +00:00
Add to "/opt/retropie/configs/pc98/emulators.cfg" writing.
2017-07-07 14:03:03 +00:00
$ cd /opt/retropie/configs
$ sudo mkdir pc98
$ cd pc98
$ sudo nano emulators.cfg
2017-07-08 23:30:58 +00:00
np2="/opt/retropie/emulators/np2/np21 %ROM%"
2017-07-07 14:03:03 +00:00
lr-np2="/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-np2/np2_libretro.so --config /opt/retropie/configs/pc98/retroarch.cfg %ROM%"
2017-07-08 23:30:58 +00:00
default="lr-np2"
2017-07-07 14:03:03 +00:00
2017-07-29 16:25:28 +00:00
Launch ES and set "CARBON-MOD" to "THEME-SET".
Point of tuning performance NP2kai
---
2017-07-29 16:28:49 +00:00
* CPU clock
2017-08-27 18:19:35 +00:00
2017-07-29 16:25:28 +00:00
Change "CPU Clock Multiplyer".
2017-07-29 16:28:49 +00:00
* Memory size
2017-08-27 18:19:35 +00:00
2017-07-29 16:25:28 +00:00
Change "RAM Size".
2017-08-04 00:45:23 +00:00
* Sound device
2017-08-27 18:19:35 +00:00
2017-08-04 00:45:53 +00:00
26K: for old games.
2017-08-04 00:45:23 +00:00
86: for newer games.
2017-08-16 21:31:33 +00:00
* Sound Generator
2017-08-27 18:19:35 +00:00
2017-08-17 03:56:36 +00:00
fmgen: fmgen sound generator.
2017-08-27 18:19:35 +00:00
Default: default sound generator.
2017-08-16 21:27:10 +00:00
2017-07-29 16:25:28 +00:00
Don't forget restart core.
2017-07-07 14:03:03 +00:00
2017-08-27 18:19:35 +00:00
* How to set GDC 2.5MHz/5MHz?
1.Press End key(assigned Help key) + reset
2.Select 'ディップスイッチ2'(DIP switch 2)
* How to key typing?
There are two ways:
1. map the 'enable hotkeys' hotkey in settings > input > input hotkey binds and RetroArch will stop listening for hotkeys unless/until you hold that button/key
2. enable the "game focus mode" (mapped to scroll_lock by default) and it will send all of your inputs to the core instead of the frontend. However, some people have reported having trouble getting out of game focus mode.
(Thanks hasenbanck)
2017-08-27 18:19:35 +00:00
* How to use CD drive with MS-DOS 6.2?
Write follow to CONFIG.SYS.
LASTDRIVE=Z
DEVICE=A:¥DOS¥NECCDD.SYS /D:CD_101
And write follow to AUTOEXEC.BAT.
A:¥DOS¥MSCDEX.EXE /D:CD_101 /L:Q
Then, you'll can use CD drive as Q drive.
2017-07-24 13:50:32 +00:00
About network
---
From rev.7 we can use network.
NIC is follow spec.
MELCO LGY-98
IRQ:6
I/O:0x00D0
2017-06-21 09:17:35 +00:00
Release
---
2018-03-03 23:14:43 +00:00
* Mar 4, 2018
- refine keyboard map
* Feb 28, 2018
- [SDL2] config file selectable by command line
* Feb 20, 2018
- FONT.ROM/FONT.BMP can be loaded lower case.
2018-02-19 08:23:43 +00:00
* Feb 19, 2018
- [libretro] Apply disk swap interface
2018-02-17 09:14:21 +00:00
* Feb 17, 2018
- [X11] Mouse moving is more smopothly (Thanks frank-deng)
- Using *.img *.ima type floppy image (Thanks frank-deng)
2018-02-13 19:52:32 +00:00
* Feb 14, 2018
- Fix parse CUE sheet (Thanks frank-deng)
2018-02-06 05:21:51 +00:00
* Feb 6, 2018 (rev.15)
2018-02-06 05:19:40 +00:00
- NP2 namespace change to NP2kai
- [SDL2] Locate of config files is ~/.config/np2kai
- [X11] Locate of config files is ~/.config/xnp2kai
2018-02-05 13:59:04 +00:00
* Feb 5, 2018
- Merge NP21/W 0.86 rev.38
* Feb 4, 2018
- Add setting Joy to Mouse cursor speed up rasio
* Dec 5, 2017
- Default GDC clock is 2.5MHz
- In Joy2Mousem, mouse speed up with R button
2017-11-17 22:17:50 +00:00
* Nov 18, 2017
2018-02-05 13:59:04 +00:00
- Merge NP21/W 0.86 rev.37
2017-10-25 23:25:04 +00:00
* Oct 26, 2017
- Apply to 1.44MB FDD floppy image file
2017-10-21 10:00:34 +00:00
* Oct 21, 2017 (rev.14)
2018-02-05 13:59:04 +00:00
- Merge NP21/W 0.86 rev.36
2017-10-21 10:00:34 +00:00
* Mate-X PCM
* Sound Blaster 16
* OPL3 (MAME codes is GPL licence)
* Auto IDE BIOS
* Oct 16, 2017 (rev.13)
- Refix BEEP PCM
2017-10-02 09:31:59 +00:00
* Oct 2, 2017 (rev.13)
- remove CDDA mod
2017-09-20 14:07:48 +00:00
* Sep 20, 2017
- [SDL2] Use SDL2 mixer
2017-09-16 04:42:48 +00:00
* Sep 16, 2017
- Add RaSCSI hdd image file support
2017-09-13 20:47:56 +00:00
* Sep 14, 2017 (rev.12)
2017-09-13 21:31:33 +00:00
- [libretro] (newest core binary is auto released by buildbot)
2017-09-13 21:11:29 +00:00
- Fix triple fault case
2017-09-08 16:32:36 +00:00
* Sep 7, 2017
- Fix BEEP PCM
* Aug 27, 2017 (rev.11)
- Merge NP21/w rev.35 beta2
- [libretro] state save/load
2017-08-23 04:45:56 +00:00
* Aug 23, 2017 (rev.10)
2017-08-23 01:54:01 +00:00
- Merge NP21/w rev.35 beta1
2017-08-22 05:15:54 +00:00
* Aug 22, 2017
- Merge 私家
Merged
2017-08-22 06:56:02 +00:00
* AMD-98 Joyport
* S98V3
* Otomichanx2
2017-08-22 06:56:02 +00:00
* V30 patch
* VAEG fix
* CSM voice
2017-08-25 04:44:09 +00:00
Couldn't merged
2017-08-22 06:56:02 +00:00
* LittleOrchestra
* MultimediaOrchestra
* WaveRec
- Merge kaiE
* force ROM to RAM
* CDDA fix
* Floppie fix
2017-08-20 23:39:58 +00:00
* Aug 21, 2017
- Apply libretro-super build
2017-08-16 21:27:10 +00:00
* Aug 17, 2017 (rev.9)
- Apply fmgen
2017-08-02 20:45:19 +00:00
* Aug 3, 2017 (rev.8)
- Apply HRTIMER
- [libretro] input underscore(_) for western keyboard
2017-08-03 16:53:48 +00:00
- [libretro] Add Joy2Key (thanks Tetsuya79)
2017-07-24 13:41:06 +00:00
* Jul 24, 2017 (rev.7)
- Apply network
2017-07-18 10:19:44 +00:00
* Jul 18, 2017 (rev.6)
2017-07-17 03:40:08 +00:00
* Jul 17, 2017
- Apply HOSTDRV
2017-08-03 15:14:08 +00:00
- [libretro] Add Joy2Mouse mode (switch at config menu)
2017-07-04 04:35:28 +00:00
* Jul 4, 2017
- rename to 'kai'
2017-06-28 04:24:12 +00:00
* Jun 28, 2017
- [libretro] Applicate to libretro port
2017-06-21 14:42:31 +00:00
* Jun 21, 2017
- [X11] Applicate to X11 port
2017-07-18 10:19:44 +00:00
* Jun 20, 2017 (rev.6 beta)
2017-06-21 09:17:35 +00:00
- [NP21] fix for VGA
* Jun 19, 2017
- [NP21] fix IA-32
- more memory size available
* Jun 18, 2017
- more avilable FDD/HDD/CD-ROM image
- [NP21] FPU (fpemul_dosbox.c is GPL licence, others is MIT licence)
* Jun 12, 2017
- COM
- MIDI
- JOYSTICK
- IDE (can't use CD-ROM yet)
- SDL_Keycode -&gt; SDL_Scancode
- Save BMP
- State Save
* Jun 4, 2017
- [NP21] お察しください
* Jun 1, 2017
- First release
Reference
---
* http://www.yui.ne.jp/np2
* https://github.com/irori/np2pi/wiki/NP2-for-Raspberry-Pi
* http://eagle0wl.hatenadiary.jp/entry/2016/10/07/213830
* https://sites.google.com/site/np21win/home
2017-07-04 04:35:28 +00:00
* https://github.com/meepingsnesroms/libretro-meowPC98
2017-06-21 09:17:35 +00:00