|
Post by dshadoff on Jun 6, 2022 5:25:12 GMT
I wanted to mention something I've been working on for a couple of months with a few other people... While Mednafen is a great emulator and decent for debugging on PC Engine, it has seemed like a lot of PC Engine-related updates haven't been incorporated into it. So, we've been working on it in order to bring it up to date and add a few debugging features. It can be found here - although we do plan to move it into the "GitHub Organization" that was discussed a while ago in another thread: github.com/pceDev16/mednafenPceDevFor Windows users, look on the right side of the page for the "Releases" link. For Linux and Mac users (and windows users), there are instruction on how to compile it in the root folder: - README_linux_compile.md - README_macOS_compile.md - README_Windows_compile.md A full list of things fixed/updated can be found in the "RELEASE_NOTES.md" file, but the major ones are: - Added authentic CD seek time emulation (fixes some bugs, but also makes video scenes sync up properly) - Added Memory Base 128 support (may need to be activated in the Mednafen.cfg) - Toggle Sprite bounding box for visualizing how games use sprites (CTRL+0) - PSG channel toggles (ALT+1 through ALT+6) - elmer's "HappyEyes" upgrades to the various views in the debugger - Debugger has better memory editors for 16-bit memory types and palette viewer/editor - Additional logging in the debugger for CDROM BIOS calls and ADPCM access
|
|
|
Post by dshadoff on Jun 6, 2022 16:11:54 GMT
I didn't explicitly say this in the post above (although the Subject line of the Topic does state this), but...
This is NOT the official Mednafen; it is a fork of Mednafen, targetted toward PC Engine developers. I do try to be clear about this as much as possible - and if we are requested to rename our fork by the developers of Mednafen, we will. (Also, as far as I'm concerned, I think they would do well to incorporate some of these improvements into the base...)
|
|
pokun
Gun-headed
Posts: 85
Homebrew skills: HuC6280 assembly
|
Post by pokun on Jun 6, 2022 22:55:41 GMT
Good job everyone involved! This may become very useful for homebrew development.
|
|
|
Post by elmer on Aug 20, 2022 1:20:45 GMT
Recent work on new assembly-language CD libraries and examples seem to show that the PCE CD-ROM is capable of a full sustained trasfer rate of 150KB/s, and that Mednafen does not currently emulate this correctly, and that instead it limits the CD-ROM transfer rate to 123KB/s. Investigations indicate that this is probably a deliberate strategy by Mednafen's original developers to get the video in the PCE's Sherlock Holmes games to work correctly, because those two games are *very* sensitive to the behavior of the PCE's CD-ROM, and they don't react well to the full 150KB/s transfer rate. As part of the ongoing investigation into how we can emulate the full 150KB/s transfer rate, and still have the video in both of the Sherlock game play correctly, I have disassembled part of Sherlock in order to take a look at the custom CD-ROM playback routines that it uses. For future reference by anyone that's interested, here's the code from Sherlock. <edit> 2022-08-22 - Updated the Sherlock code with more stuff disassembled. Attachments:sherlock.asm (174.82 KB)
|
|
touko
Punkic Cyborg
Posts: 106
|
Post by touko on Aug 20, 2022 8:51:30 GMT
There is a bug present since some versions already, for exemple in the debugger you can decrement palettes but incrementing is no longer available . This bug is in the elmer's version too .
|
|
|
Post by dshadoff on Aug 20, 2022 13:16:51 GMT
What do you mean "decrement palettes" - could you explain the key sequence so I can take a closer look ?
|
|
|
Post by elmer on Aug 20, 2022 14:08:21 GMT
touko If you're talking about the increment and decrement palette buttons in the Graphics Viewer (ALT-2), then I'm sorry, but they're currently working fine. They're mapped to "," and "." on my keyboard which IIRC is mednafen's default. This could be an issue with a non-US keyboard, or you may need to take a look at the key-mapping in your mednafen.cfg file.
|
|
touko
Punkic Cyborg
Posts: 106
|
Post by touko on Aug 20, 2022 20:20:49 GMT
The decrement works, but not the increment, it works fine on the original . Usualy i'am using ";" for decrement and ":" for increment on an azerty keyboard(with the original mednafen) . In your version the decrement is on "," and it works, but the increment doesn't work (i tried many other keys) .
Yeah certainly.That's strange, because it works fine with the classic mednafen .
I'll try the mednafen.cfg
|
|
|
Post by dshadoff on Aug 20, 2022 22:09:21 GMT
OK.. I guess you're talking about the "Graphics Viewer", not the "Memory viewer -> Palette editor" view then.
Yes, MooZ also mentioned that there were some key mapping issues between Mednafen's key bindings and the AZERTY keyboard... If there is a suggestion on how to solve key binding issues, I'm happy to work together to integrate, but I don't have such a keyboard and don't experience the issues, so my understanding of the situation is limited.
|
|
touko
Punkic Cyborg
Posts: 106
|
Post by touko on Aug 21, 2022 17:58:47 GMT
Just to mention, but it always worked fine(and continues to work) with the original mednafen,that's why this is strange, and IMO it's on the elmer's version side .
|
|
|
Post by dshadoff on Aug 21, 2022 19:03:49 GMT
|
|
touko
Punkic Cyborg
Posts: 106
|
Post by touko on Aug 22, 2022 7:02:48 GMT
Yes no problems actually,even with the last mednafen update, i encountered the problem the first time with the elmer's fork(since the first release), and yours .
|
|
|
Post by dshadoff on Aug 22, 2022 19:09:04 GMT
|
|
|
Post by elmer on Aug 22, 2022 20:05:02 GMT
Yes no problems actually,even with the last mednafen update, i encountered the problem the first time with the elmer's fork(since the first release), and yours . It's certainly possible that I messed something up with the HappyEyes patches, but I don't remember ever even touching the Graphics Viewer part of mednafen. OK, here's a question for you ... what happens in the RAM debugger (ALT-3)? That uses the same keyboard "," and "." keys to change between logical/phsycial/vram/satb/waveform/etc. Do those functions work for you with your keyboard? FWIW, I do see that "." is actually shift-";" on an AZERTY keyboard ... have you tried shift-";" to see if it does anything?
|
|
|
Post by elmer on Aug 23, 2022 2:38:44 GMT
For anyone that's interested, I just updated the Sherlock Holmes disassembly with more routines identified. At his point it's clear that the code really has no mechanism for handling speed-up or slow-down, and that it is entirely dependent upon the timing behavior of the PCE and CD-ROM drive, with no allowance for CD errors or pauses in CD reading due to ECC-correctable read-glitches.
|
|