Commit Graph

54 Commits

Author SHA1 Message Date
David Shadoff
10d1c2f0ce Fix issue in PC Engine Tanjou Debut ( #594 ) (#595)
* Fix PC Engine CD player controls ( #585 )

Correct LBA-MSF conversion for absolute offset in the SUBQ request function (relative remains without offset)

* Fix issue in PC Engine Tanjou Debut ( #594 )
2022-05-07 03:18:32 +08:00
Sorgelig
26e1cccbaa Implement new way to address status bits. 128bit status. 2022-05-05 21:06:13 +08:00
David Shadoff
12b9e8d75f Fix PC Engine CD player controls ( #585 ) (#586)
Correct LBA-MSF conversion for absolute offset in the SUBQ request function (relative remains without offset)
2022-04-25 15:25:10 +08:00
Sorgelig
7701cb1cda rename user_io_8bit_set_status to user_io_status. 2022-02-14 02:12:09 +08:00
Sergey Dvodnenko
645e43e705 PCE CD: send the status of the SAPSP/SAPEP command (at the end of the track) immediately (Princess Maker 2). (#479) 2021-11-07 20:03:52 +08:00
David Shadoff
c7314eb3c8 Slightly adjust CD DATA read speed to correct TurboGrafx16_MiSTer#162
Slightly increase CD READ speed (data throughput).  Slight adjustments in seek time may be needed in future in case lip syncing is affected.
2021-09-14 00:05:41 +08:00
David Shadoff
f683849d24 Correct Princess Maker 2 freeze (TurboGrafx16_MiSTer issue #154) (#439)
Fix off-by-one sector count on end of track for Princess Maker 2; the game constantly checks the subcode Q value to see whether it reached a certain time signature... Main_MiSTer was stopping the track one sector earlier than that sector.
2021-08-09 14:51:13 +08:00
David Shadoff
35639f0fb9 Fix for MiSTer-devel/Main-MiSTer#149 (#430)
Adjustment to head seek timing:
When seeking to audio tracks, there is a delay of between 130ms and 290ms between the status confirmation of completion and the start of audio.  80% of the time this is 220ms +/-20ms  and does not appear to be related to either seek distance or location on disc.

This fix inserts a delay between head seek arrival status confirmation and the start of audio play, without changing the total delay (ie. status is retruned earlier where appropriate).
This fixes Last Alert's excess sound, but may also fix other games' sound.
This was tested against main games which have presented issues with seektime in the past.
2021-07-20 00:41:34 +08:00
David Shadoff
9c1e4ac3bd PCECD: Fix end LBA when playing second-last track on disc (by track) (#415) 2021-06-26 14:16:14 +08:00
David Shadoff
77e9cb4eaa PC Engine CDROM timing corrections (#412)
1) Fix for Issue 120 broke timing for cut-scene videos.  Restoring delay for SAPSP-type seeks  (issue #145)

2) fixes for issues #120 & #145:
a) PAUSE placed head just outside of minimum-seektime area -> when playback was restored, it was late, contributing to hangs (i.e. Bomberman Panic Bomber).  Increase minimum seektime region, so as to include this case.
b) Moved logging printf to AFTER SendStatus on SAPEP transactions; may help reduce hangs (i.e. Bomberman Panic Bomber).

3) Minor adjustment to improve timing on Sherlock Holmes games' video playback.
2021-06-20 14:57:46 +08:00
David Shadoff
b12ff264a2 Delayed status return seems to be related to random hangs (Issue #120) (#408)
Do not delay status return even though head may still be seeking
2021-06-06 16:19:03 +08:00
Sergey Dvodnenko
b0bc66b251 pcecd: undefined command should reset the pending status flag for the current command (Tenshi no Uta II) (#344) 2021-02-06 20:35:57 +08:00
Zakk
26a2d8ee27 Add CHD support for ao486 CD-ROM 2020-12-27 16:39:44 -05:00
Zakk
7c11c3621b Remove some unneeded source files in lzma
Remove debug logging in mister_chd and pcecdd
Update Makefile
2020-12-26 17:03:38 -05:00
Zakk
f412273f84 Initial support for CHD cdrom images.
As of now, this is CHD v5 only
2020-12-23 18:31:21 -05:00
sorgelig
f26c530caa pcecd: reduce amount of debug messages (Fix Jack Nicklaus Turbo Golf). 2020-11-14 19:54:27 +08:00
sorgelig
2e0046cfd7 pcecd: sgx mode for CD games. 2020-10-27 22:17:03 +08:00
Sergey Dvodnenko
7b80bf1ee3 pcecd: send status immediately for commands with instant execution (Bomberman: Panic Bomber), some cleanup
* pcecd: read 256 sectors when length is 0 (Kabuki Itouryodan).

* pcecd: send status immediately for commands with instant execution (Bomberman: Panic Bomber), some cleanup
2020-09-27 18:54:03 +08:00
sorgelig
419ae67dee user_io: extend ioctl_* functionality. 2020-08-20 17:30:52 +08:00
Sergey Dvodnenko
cd06931a9b pcecd: read 256 sectors when length is 0 (Kabuki Itouryodan). 2020-07-01 23:50:51 +08:00
sorgelig
bcff26e588 pcecd: detect US BIOS even if not bitswapped. 2020-06-03 22:25:00 +08:00
sorgelig
0d3e158607 pcecd: common SendStatus function. 2020-06-02 02:30:17 +08:00
Sergey Dvodnenko
63182d5ccb pcecd: send status immediately after receiving an invalid command
* pcecd: fix command SAPEP (stop cdda when mode=0)

* pcecd: send status immediately after receiving an invalid command
2020-06-02 01:49:48 +08:00
sorgelig
1d6e1ea1c1 pcecd: send BIOS region to FPGA. 2020-05-29 02:02:35 +08:00
sorgelig
5567ab35fa pcecd: report finish playback when either end of disk or data track is reached. 2020-05-19 22:21:58 +08:00
sorgelig
e4516aea28 pcecd: fix SAPSP and cross track playback. 2020-05-18 22:50:58 +08:00
sorgelig
68aacc1a21 pcecd: fix the typo. 2020-05-18 04:24:55 +08:00
Sergey Dvodnenko
2657621a84 pcecd: fix command SAPEP (stop cdda when mode=0) (#221) 2020-05-18 02:32:51 +08:00
sorgelig
0af2be775c pcecd: fast seek option. 2020-05-16 01:02:46 +08:00
sorgelig
a5ff9a953b Check core's home dir on every access for plug and play functionality. 2020-05-15 05:30:17 +08:00
sorgelig
a0b9310e8f pcecd: notify if CD BIOS isn't loaded. 2020-05-15 00:11:41 +08:00
David Shadoff
19b3e04b05 pcecd: minor timing adjustments
Minor timing adjustments
2020-05-11 15:38:23 +08:00
sorgelig
e6602fc569 pcecd: don't send status till seek complete. 2020-05-10 03:16:25 +08:00
sorgelig
39d60da096 pcecd: don't fill FIFO before seek. 2020-05-08 19:53:48 +08:00
sorgelig
64e210f284 pcecd: use absolute time for timer. 2020-05-08 04:29:41 +08:00
sorgelig
73b4e1bb0e pcecd: disable print on sector reading. 2020-05-08 03:46:19 +08:00
sorgelig
67f2255437 pcecd: adjust position and seek time. 2020-05-08 03:22:00 +08:00
sorgelig
2b582cc6aa pcecd: adjust seektime calc. 2020-05-07 21:50:18 +08:00
Sergey Dvodnenko
d94fbe0f92 pcecd: fix status sending in SAPEP command 2020-05-07 15:52:17 +03:00
Sergey Dvodnenko
194e355c78 pcecd: implement undefined commands (Steam-Heart's) and cdda pause state, cleanup 2020-05-07 13:39:34 +03:00
sorgelig
dd586f890f pcecd: calculate seek time. 2020-05-04 00:04:41 +08:00
Sergey Dvodnenko
1847090e28 pcecd: fix READSUBQ command (Snatcher, Jack Nicklaus Turbo Golf)
* pcecd: fix reset cdd in bios

* pcecd: cdda play modes added, some tweaks

* pcecd: fix cdda loop mode

* pcecd: fix READSUBQ command (Snatcher, Jack Nicklaus Turbo Golf)
2020-05-03 22:37:01 +08:00
Sergey Dvodnenko
636f1c97c3 pcecd: fix cdda loop mode
* pcecd: fix reset cdd in bios

* pcecd: cdda play modes added, some tweaks

* pcecd: fix cdda loop mode
2020-05-03 21:56:33 +08:00
Sergey Dvodnenko
39e391445e pcecd: cdda play modes added, some tweaks
* pcecd: fix reset cdd in bios

* pcecd: cdda play modes added, some tweaks
2020-04-29 22:43:35 +08:00
sorgelig
e4c3e50b39 pcecd: fix playback of last track. 2020-04-28 17:49:03 +08:00
Sergey Dvodnenko
fa900b125d pcecd: fix reset cdd in bios 2020-04-26 16:10:59 +08:00
sorgelig
caee23302d pcecd: fix for PREGAP and WAV tracks. 2020-04-26 04:44:49 +08:00
sorgelig
870de4e3f3 pcecd: enable backup save/load for CD games. 2020-04-25 19:50:59 +08:00
sorgelig
8b2779508a pcecd: swap bios bits if original US bios is detected. 2020-04-25 18:38:19 +08:00
sorgelig
421b9f21c1 pcecd: support bios per CD. 2020-04-25 17:12:18 +08:00