** Qt porting for Common Source Code Project **
- August 11, 2017
+ August 16, 2019
K.Ohta <whatisthis.sowhat _at_ gmail.com>
* If you can't read Japanese, read readme.qt.txt .
ソースコード:
- https://github.com/Artanejp/common_source_project-fm7/releases/tag/SNAPSHOT_20170811
+ https://github.com/Artanejp/common_source_project-fm7/releases/tag/SNAPSHOT_20190816
追加情報:
2. 最低限必要なもの(Qt版)
- a. Qt5 ツールキット。バイナリはQt 5.5基準でビルドしてあります。
+ a. Qt5 ツールキット。Qt 5.5以降を推奨します。
- b. OpenGL, 多分、最低OpenGL 2.1は必要です。 (New!)
+ b. OpenGL, 多分、最低OpenGL 2.1は必要です。(注:ひょっとしたら、OpenGLES2以降ならば動くように変えるかも知れない)
c. gcc / g++ (5.0以降?)もしくは llvm clang / clang++ (3.5以降?)
コンパイラツールチェーン。
f. ffmpegから、libavとlibswが必要です。 http://ffmpeg.org/ より。
- g. ffmpegは、それぞれのランタイムに必要なものをバンドルしてありますので、動かない時はインストールしてみてください。
+ g. ffmpegは、Windowsに関してはバンドルしてありますので、動かない時はインストールしてみてください。
- h. GNU/Linuxビルドでは、Qt5.5(Ubuntu 16.04LTS向け)もしくはQt5.7(Debian GNU/Linux sid向け)でビルドしてあります。
+ h. Qt5.5(Ubuntu 16.04LTS向け)もしくはQt5.10(Win32とDebian GNU/Linux sid向け)でビルドしてあります。
- * Windows もしくは GNU/Linux のcross tool chain (要Wine)で、MinGW (gcc6) と Qt 5.7 でのビルドができることを確認しました。
-
+ i. 表示基盤のデフォルトが、OpenGL ES2.0になりました。コマンドラインオプション --opengl で変更が可能です(--helpで参照)
+
+ * Windows もしくは GNU/Linux のcross tool chain (要Wine)で、MinGW (gcc6) と Qt 5.10 でのビルドができることを確認しました。
* TIPS:
- Windows等で動かした時に、画面の書き替えが表示されない場合は、
-
- 環境変数 QT_OPENGL を software にしてみてください。(例えば、
-
- WindowsをVirtualBoxのゲストで使ってる場合など)
+ * Windows等で動かした時に、画面の書き替えが表示されない場合は、環境変数 QT_OPENGL を software にしてみてください。(例えば、
+ WindowsをVirtualBoxのゲストで使ってる場合など)
+
+ * Windows版バイナリには、ソフトウェアレンダリングのopengl32.dllが添付されてますが、最近のパソコンの専用GPUドライバなら、
+ もっと程度のいいOpenGLが入ってるはずです。
+ 添付版opengl32.dllを適当な名前に変更して動くかどうか試してみて下さい。
3. ビルドの方法
$ sudo make install
-4. Qt固有の話(Windows除く)
+4. Qt固有の話
- *ToolTipsを付けました。(2017-01-24)
-
- *日本語に翻訳しました。(2017-01-24)
-
- *R@Mを $HOME/emu{Machine Name}/ に配置してください。(Windowsの場合は今の所 .\emu{Machine Name}\)。なお、このディレクトリは最初起動した後で作成されます。
+ * 設定ファイル(scancode.cfg と foo.ini)は、"~/.config/CommonSourceCodeProject/emufoo/" (Windowsの場合は".\CommonSourceCodeProject\emudfoo\" ) におかれます(移動しました)。
+
+ * BIOSや効果音WAVやセーブステートは、、"~/CommonSourceCodeProject/emufoo/" (Windowsの場合は".\CommonSourceCodeProject\emudfoo\" ) におかれます(移動しました)。
- *設定ファイルは、$HOME/.config/emu{Machine Name}/ に書き込まれます。(Windowsの場合は今の所 .\.config\emu{Machine Name}\)
+ * 全ての記録物(スクリーンショットや動画や録音WAV)は、*当面の間* "~/CommonSourceCodeProject/emufoo/" (Windowsの場合は".\CommonSourceCodeProject\emudfoo\" ) におかれます。
+
+ * ToolTipsを付けました。(2017-01-24)
+
+ * 日本語に翻訳しました。(2017-01-24)
- *ステートセーブファイルは、$HOME/emu{Machine Name}/{Machine Name}.sta に書き込まれます。
- *キーコード変換テーブルファイルが、$HOME/.config/emu{Machine Name}/scancode.cfg に書き込まれます。
+ * キーコード変換テーブルファイルが、$HOME/.config/CommonSourceCodeProject/emu{Machine Name}/scancode.cfg に書き込まれます。
書式は、カンマで区切られた16進データです(10進ではないので注意) .
2カラム目はQtネィティブのスキャンキーコードです。
- *UI部分の共通コンポーネント (src/qt/gui) を共有ライブラリlibCSPgui.soにまとめました。
+ * UI部分の共通コンポーネント (src/qt/gui) を共有ライブラリlibCSPgui.soにまとめました。
- *インストール用のBASHスクリプトを用意しました。src/tool/installer_unix.shです。
+ * インストール用のBASHスクリプトを用意しました。src/tool/installer_unix.shです。
- *ROMと同じところに、特定のWAVファイル(VMによって異なる)を入れると、FDDのシーク音やテープのボタン音・リレー音を鳴らすことが出来ます。
+ * ROMと同じところに、特定のWAVファイル(VMによって異なる)を入れると、FDDのシーク音やテープのボタン音・リレー音を鳴らすことが出来ます。
- *ローマ字カタカナ変換支援機構が一部の機種に実装されてます。romaji_kana.ja.txt をお読みください。
+ * ローマ字カタカナ変換支援機構が一部の機種に実装されてます。romaji_kana.ja.txt をお読みください。
5. 移植状況
動くでしょう。
Windows もしくは GNU/Linux(要Wineとbinfmt-support)上でのMinGWと
Qt community edition でのビルドが通るようになりました。
- 安定したWindowsビルドを必要な方は、Visual Studio 2013 か 2015 のCommunity Edition
- でビルドしてください。(もう少ししたら、MinGWに切り替えようとは思ってます。)
b. 今は、Qtの開発側が「Qt4おわりね」とアナウンスしたので、Qt4ではなく
Qt5を使っています。
添付してあるバイナリは、Qt 5.5でビルドしました(が、Qt 5.1以降なら動くはずです)。
- c. Linux用ビルドでは、GCC 6をリンク時最適化(LTO)モードで使っています。
+ c. Linux用ビルドでは、GCCをリンク時最適化(LTO)モードで使っています。
d. MZ-2500のソケット機能を実装してみていますが、マトモにテストできてません(;´Д`)
6. Upstream repositry:
https://github.com/Artanejp/common_source_project-fm7
- https://www.pikacode.com/Artanejp/common_source_project-fm7/
+
+ https://osdn.net/projects/csp-qt/scm/git/common_source_project-fm7
7. Project Page:
https://osdn.jp/projects/csp-qt/
8. Upstream (Takeda Toshiyaさんのオリジナル)
http://takeda-toshiya.my.coocan.jp/
-Changes:
-
-ChangeLog:
-* SNAPSHOT Aug 11, 2017
- * Upstream 2017-08-10.
- * [EMU/ROMAKANA] Fix not convert with Qt.Use functions within EMU:: , not use original ROMAKANA functions.
- * [VM] Add PC-9801RA and PC-9801VX.
- * [VM] Add devices to libCSPcommon_vm mostly.
- * [VM] Fix FTBFS and bugs a lot.
- * [VM/FM7] Stop using DUMMYDEVICE:: . Use VM::get_extra_leds() to get led status.
- * [VM/MB8877] DISK:Fix not apply workaround to Gambler Jiko Chusin-ha for FM-7 series.
- * [VM/DATAREC] Fix crash with MZT data.
- * [Qt/UI] OpenGL: Display ICONs when accessing to virtual medias.
- * [Qt/UI] Separate status bar display:Accessing to virtual medias.
- * [Qt/UI] Menu: Make macro to be easier constructing.
- * [Qt/UI] Ui_MainWindowBase:: Make private variables/functions not accessed from Ui_MainWindow:: .
- * [Qt/UI] Display LEDs with USE_EXTRA_LEDS or USE_KEY_LOCKED.See common/emu_thread.cpp for details.
- * [Qt/UI] Fix some memory leaks.
- * [Qt/OpenGL] Fix aspect ratio with some zoom type.
- * [Qt/FM7] Fix wrong scaling at VMs (only FM-8/7/77/AV) has only 200line (not have 400line).
- * [BUILD/CMake] CCACHE: Fix SEGFAULT at linking after upgrade GNU toolchain.
- * Build with 04e08d2708a595c518ae0bd92c1713e1854c4310 (or later).
-
--- Aug 11, 2017 23:38:49 +0900 K.Ohta <whatisthis.sowhat@gmail.com>
-
-本家の変更:
-
------
-8/10/2017
-
-[EMU] support to enter 0-9 by numpad key while roman to kana is enabled
-[EMU] support to enter shift + function key while roman to kana is enabled
-[EMU/DEBUGGER] fix to wait until cpu is suspended and enters into waiting loop
-
-[VM/I386] fix to flush vtlb after modifying address mask
-[VM/UPD7220] support to specify device class to access vram
-[VM/Z80] fix to run dma before checking interrupts
-
-[PC8801/PC88] fix monocolor graph screen to get color index from text attribute
-[PC8801/PC88] fix monocolor graph screen to render with graph palette
-
-[PC9801VX] support NEC PC-9801VX
-[PC9801/CPUREG] support address mask i/o
-[PC9801/DISPLAY] support EGC (thanks Neko Project 2)
-[PC9801/DISPLAY] support EGC/GRCG access from graphic GDC
-[PC9801/MEMBUS] support 24bit/32bit address memory bus
-[PC9801/MEMBUS] support ITF rom
-
-
-6/22/2017
-
-[EMU] move auto key codes from winmain to emu class
-[EMU] support to convert roman letters to kana letters
-[WINMAIN] support APPLICATION accelerator to enable/disable roman to kana
-[WINMAIN] support CTRL+ALT+ENTER accelerator to enable/disable full speed
-
-[VM/I386] improve i86/i286 core based on MAME 0.185
-[VM/UPD765A] fix device status (thanks annonymus guy)
-[VM/YM2203] fix to mask YM2608 ports in YM2203 case (thanks annonymus guy)
-[PC8801/PC88] fix bank switch of extend ram (thanks annonymus guy)
-[PC8801/PC88] fix crtc for dma underrun case (thanks annonymus guy)
+Special thanks to:
+ Ryu Takegamiさん : eFM-8/7/77/AV/40/EX のデバッグに協力していただいています。
+ はせりんさん : eFM-8/7/77/AV/40/EX のデバッグに協力していただいています。
+ Ootake 開発者の皆さん: ePCENGINEの改善のヒントをソースコードから勉強させていただいてます。
+Changes:
-5/28/2017
-
-[WINMAIN] support to run simulation at full speed
-
-[VM/I386] improve i386 core based on MAME 0.185
-
-
-5/20/2017
-
-[YIS/DISPLAY] support correct font rom (thanks Mr.Moriya)
-[YIS/DISPLAY] support native graphic commands
-[YIS/DISPLAY] include KST32B stroke font and its decoder (thanks Mr.Saka.N)
+* 前の変更点をお読みになる場合には、ChangeLogと000_gitlog.txtをお読み下さい。
+
+* SNAPSHOT Aug 16, 2019
+ * Upstream 2019-04-30.
+ * This is point release, still exists some issues (i.e.EMM386(NEC/PC98) and FreeBSD(98) don't work) for PC-9801 and PC-Engine and some VMs, will fix them.
+ * [UI/Qt] DEBUGGER: Add history for debugger command line.
+ * [UI/Qt] DEBUGGER: Add auto-completion for command-line.
+ * [VM/DEVICE] Use __FASTCALL with interfaces, read_*() ,write_*(), fetch_op() and some functions.Make this faster emulation (i.e.PC-9801RA and EMM386 under FreeDOS).
+ * [VM/PC9801] Separate EGC functions.
+ * [VM/PC9801] Add V30@8.0MHz with some I286/I386 machines.
+ * [VM/PC9801] Check differnt of system work area (0000:0400-0000:05FF) both mame(pc9801rs) and emupc9801ra .
+ * [VM/PC9801] Add "UPPER_I386" flag for detect using later than HAS_I386.
+ * [VM/PC9801] CPUREG: (Maybe) improve changing cpu sequence around I/O 00F0h.
+ * [VM/PC9801] CPUREG: Redirect interrupt signal via CPUREG:: .VMs with V30 sub CPU (i.e.PC9801RA) work with V30.
+ * [VM/PC9801] Fix wrong initialize SYS_PORT_B.
+ * [VM/PC9801] Fix wrong initialize memory switch.
+ * [VM/PC9801] Add DIPSWITCH object.
+ * [VM/PC9801] Fix different value at [0000:0501].
+ * [VM/PC9801] MEMBUS: Split update_bios() to functions.
+ * [VM/FP1100] Fix lacking some key symbols.Thanks to https://matsuri.5ch.net/test/read.cgi/i4004/1526806551/540 .
+ * [VM/AY_3_891X] Fix not supported defines, replace flags.
+ * [VM/AY_3_891X] Add feature ; dump/set register via debugger.
+ * [VM/YM2151] Add feature ; dump/set register via debugger.
+ * [VM/YM2203] Add feature ; dump/set register via debugger.
+ * [VM/SN74689AN] Add feature ; dump/set register via debugger.
+ * [VM/BEEP] Add feature ; dump register via debugger.
+ * [VM/PCM1BIT] Add feature ; dump register via debugger.
+ * [VM/I80x86/V30] Start debugger even halting.
+ * [VM/I80x86/8088/V30] Make i86/186/88/286 and V30 to common_vm.
+ * [VM/I386] Fix WRONG flag mask at LMSW.
+ * [VM/I386] MOV CR0 EyX : Fix wrong flags handling.
+ * [VM/I386] Exitable when falling into infinite TRAP-Loop.
+ * [VM/I386] mov CRx,R32/mov r32,CRx : Adjusting.
+ * [VM/i8259] Add PIC HACKing flag for PC9801.
+ * [VM/uPD7810/uPD7907] PC2001: Include uPD7810 variants and uPD7907 to libCSP_common_VM.
+ * [VM/MB8877] Fix buffer overflow with logging.
+ * [VM/Z80DMA] TODO/WIP: Workaround for https://tablacus.github.io/LSX-Dodgers/ .This still be not resolved issue.
+ * [VM/EVENT] Add remove_context_cpu().This may not effect to MAIN_CPU(id==0).
+ * [DOC/FM7] Fix typo (*ノω・*)てへぺろ
+ * [Qt/LOGGER] Improve locking.
+ * [UI/Qt] OOPs: Fix LACK of DATARECORDER BUTTONS(abolish of USE_TAPE_BUTTON): Lack of merging UPSTREAM 2018/10/07.
+ * [UI/Qt] MENU: Split some methods (of Ui_MainMenuBase::) to menu_emulator.cpp and menu_machine.cpp .
+ * [UI/Qt] MENU: Simplify menu creation.
+ * [CONFIG/Qt] Fix bit order of logging configure.
+ * [BUILD/CMAKE] Add CPU affinity mask when compiling.This may work only with GNU/Linux host.
+ * [BUILD/CMAKE] Improve build message with finished.
+ * [BUILD/MINGW] Update optimize parameter.
+ * [BUILD] Separate definitions of archtecture flags.
+ * [BUILD] Add ARM32/64 definitions (initial).Still not testing.
+ * Built with bbbb75cdc4051269c60a5f7ba18881eda56e8fd3 (or later).
+
+-- Aug 16, 2019 20:23:45 +0900 K.Ohta <whatisthis.sowhat@gmail.com>
-[X1TURBOZ/DISPLAY] fix 8 color mode with 4096 palette (thanks Mr.Sato)
+本家の変更:
+* 前の変更点をお読みになる場合には、history.txtをお読み下さい。
+4/30/2019
-5/17/2017
+[VM/DEVICE] add is_primary_cpu() and update_extra_event()
+[VM/EVENT] support to udpate event while cpu is running one opecode
+[VM/I8259] fix reading isr register (thanks Mr.rednow)
+[VM/SCSI_HOST] fix to raise irq at command/message phase
+[VM/Z80] improve to update event in every read/write cycle
-[X1TURBOZ/DISPLAY] fix 64/4096 color mode (thanks Mr.Sato)
+[CEFUCOM21] support Hino Electronics CEFUCOM-21 (not work)
+[MZ2500/CRTC] apply crtc patch (thanks Mr.Koucha-Youkan)
+[PC8801MA] improve to enable/disable cmdsing and pcg
+[PC8801MA] improve to enable/disable changing palette for each scan line
-----
-
お楽しみあれ!
-- Ohta.