This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

NES2PCE

NES2PCE
by on (#218725)
A developer (website here: https://pcedev.wordpress.com/) worked on a method to convert NES Roms to PC-Engine format. I think it was some sort of wrapper/emulation layer but I don't know the technical details. He released a handful of conversions including Megaman 2, SMB1, Duck Tales 2 and Castlevania. These aren't on his website anymore although you can find the ROMs elsewhere online.

As a homebrew developer who owns both a NES and PC-Engine, I would like to convert my NES games to PCE format. So my question is: Does anyone have the NES2PCE code? I'm guessing it must have been shared or been made available at some point..? Thanks in advance.
Re: NES2PCE
by on (#218726)
Archive.org can be a cool resource for exploring removed links and such.

https://web.archive.org/web/20110716023 ... and-links/

I verified that the Megaman 1 and SMB1 download works on that particular date. They include source code.

You can see other files here: https://web.archive.org/web/*/http://ww ... /nes2pce/* (You have to wait a bit for it to load the list)

It doesn't seem like anything has been shared that's too useful to do this automatically, but perhaps this source could help you plan a similar process.
Re: NES2PCE
by on (#218727)
That's great, thanks for your help!
Re: NES2PCE
by on (#218728)
It looks like the actual NES rom for the game (SMB, Megaman) has been dumped to a BIN file. This is then used by the assembler, along with other assembly code, to create the PC engine rom.

I want to try and use the existing code to get one of my games to work. I used the "Nes Mapper Reader / Rom Fixer / Rom Splitter v2.0" utility to remove the 16 byte nes header from a mapper 0 version of my game and then put it in place of SMB.BIN (super mario bros) and ran the assembler. This created a .PCE file but unfortunately it doesn't run in the emulator, so I guess there's not a simple way to do this. I don't know assembly language, so I don't think there's much more I can do. Ah well.
Re: NES2PCE
by on (#218730)
Static Recompilation is some amazing stuff. Just look at the Corn N64 emulator, which played Mario 64 on a Pentium II.
Re: NES2PCE
by on (#218736)
The NES2PCE source code merely uses the original NES file as a binary that it overlays modifications on top of. The programmer (you) still has to search for all graphic, sound, and mapper writes in the original NES ROM and hook in PCE graphics (etc) routine calls, some of which are probably provided in the source code.
Re: NES2PCE
by on (#218828)
Dwedit wrote:
Static Recompilation is some amazing stuff. Just look at the Corn N64 emulator, which played Mario 64 on a Pentium II.


No need for static recompilation. I played Mario 64 on UltraHLE on my P166 MMX and voodoo1 back in the 90s. Not full framerate, but I played through it.
Re: NES2PCE
by on (#218830)
That's the difference, corn WAS full framerate.