I want to try run NES on Sega
Moderator: Mask of Destiny
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
I want to try run NES on Sega
After read the topic viewtopic.php?t=755&highlight=mario
I hope I can do this too!
Hi friends, Please give me some advice,Tell me,first what I can do,
and second........
I hope I can do this too!
Hi friends, Please give me some advice,Tell me,first what I can do,
and second........
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
Well, if you know the NES hardware well, know SMD hardware too, and you are a good programmer (I guess so), I don't really see what kind of help you need.
I mean, the whole idea is to make a tool that'll translate original (disassembled) 6502 code into 68000 code, then manually replace HW-dependent parts of code with your own, is pretty clear. I think you even can translate the 6502 code into C, it may still work fast enough for some games.
The above is related to the Mario SMD port, which is a binary code-level port - a semi-manual process that requires a lot of work for every game. If you want to make a general NES emulator, it is about the same as for every other platform, but you shouldn't expect any playable speed - it was attempted before, proved to be doable, but works very slow.
I mean, the whole idea is to make a tool that'll translate original (disassembled) 6502 code into 68000 code, then manually replace HW-dependent parts of code with your own, is pretty clear. I think you even can translate the 6502 code into C, it may still work fast enough for some games.
The above is related to the Mario SMD port, which is a binary code-level port - a semi-manual process that requires a lot of work for every game. If you want to make a general NES emulator, it is about the same as for every other platform, but you shouldn't expect any playable speed - it was attempted before, proved to be doable, but works very slow.
This reminds me that I need to clean-up and release all my tools and code, as I have been promising during the last two years.
By the way, is not that difficult to port a NES game over the MD. I tried to port some other disassembled games, but the only who worked was Nuts & Milk, and that's only because it doesn't abuse of the carry flag. Probably if I had taken more than a few days for each one, I would have done it with Ice Climbers and Excite Bike...
About a NES emulator, well, I wrote one using a lot of recicled code from those projects. It runs almost every non-mapper game (except Pac-Man, which, for some reason, refuses to boot, and Galaga, who worked on very early states of the emulator, and now, in the "alpha" version, it doesn't) at about 8-10 fps. I ported it to the Sega-CD, but I definitely don't understand it at all, since it runs at the same speed, with a lot of graphical glitches (the S68K runs the 6502 emulator, while the M68K runs the I/O).
By the way, is not that difficult to port a NES game over the MD. I tried to port some other disassembled games, but the only who worked was Nuts & Milk, and that's only because it doesn't abuse of the carry flag. Probably if I had taken more than a few days for each one, I would have done it with Ice Climbers and Excite Bike...
About a NES emulator, well, I wrote one using a lot of recicled code from those projects. It runs almost every non-mapper game (except Pac-Man, which, for some reason, refuses to boot, and Galaga, who worked on very early states of the emulator, and now, in the "alpha" version, it doesn't) at about 8-10 fps. I ported it to the Sega-CD, but I definitely don't understand it at all, since it runs at the same speed, with a lot of graphical glitches (the S68K runs the 6502 emulator, while the M68K runs the I/O).
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
I have some question as follows:
1. if to write a new tool for port a NES game over the MD,Maybe spend some time,and it don't better than Mairtrus's
2.For music part, I think it's difficult for me,Though I worked many years
for nes and md,
3.A lots of nes game,like contra, super mario3, double dragon II used mapper 4, how to explain them? super mario,Ice Climbers ,Excite Bike
is just mapper 0 (32K+8K or 16K+8k),they don't need use bank and IRQ
1. if to write a new tool for port a NES game over the MD,Maybe spend some time,and it don't better than Mairtrus's
2.For music part, I think it's difficult for me,Though I worked many years
for nes and md,
3.A lots of nes game,like contra, super mario3, double dragon II used mapper 4, how to explain them? super mario,Ice Climbers ,Excite Bike
is just mapper 0 (32K+8K or 16K+8k),they don't need use bank and IRQ
For pretty much all of your questions the answer is: find out what it is that the original game code is trying to do - how it does it isn't that important - then try to find a way of accomplishing the same result (or something that is close enough) on the Genesis. So it sounds that you still need to do some more research on the NES and the Genesis.
For example, take your question about MMC3 IRQs. What you should be asking yourself is "What is this game actually using the IRQ for? Ok, it's triggering an IRQ at scanline N to change the horizontal scrolling and create a split-screen effect. Can I achieve the same thing with the Genesis VDP somehow?" etc
For example, take your question about MMC3 IRQs. What you should be asking yourself is "What is this game actually using the IRQ for? Ok, it's triggering an IRQ at scanline N to change the horizontal scrolling and create a split-screen effect. Can I achieve the same thing with the Genesis VDP somehow?" etc
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
I have two finals in the next ten days, and after that, I will release everything (this time for real, I swear ). For keep the hype as high as possible, here is an standalone version of my NES emulator. Just append a mapper 0 game at the end, and enjoy it in your favourite emulator (like everything I do in assembler, doesn't work in RH for some reason).zhengyaxin_8bit wrote:Hello Mairtrus, what's time you will release some tool or experience to here?Mairtrus wrote:This reminds me that I need to clean-up and release all my tools and code, as I have been promising during the last two years.
That will be very usefull help for everybody interested
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
Wow! This announcement greatly excited me!Mairtrus wrote:I have two finals in the next ten days, and after that, I will release everything (this time for real, I swear ). For keep the hype as high as possible, here is an standalone version of my NES emulator. Just append a mapper 0 game at the end, and enjoy it in your favourite emulator (like everything I do in assembler, doesn't work in RH for some reason).zhengyaxin_8bit wrote:Hello Mairtrus, what's time you will release some tool or experience to here?Mairtrus wrote:This reminds me that I need to clean-up and release all my tools and code, as I have been promising during the last two years.
That will be very usefull help for everybody interested
I have download NeMul.bin,but I can't open this by Gens emulator.
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
zhengyaxin_8bit wrote:Wow! This announcement greatly excited me!Mairtrus wrote:I have two finals in the next ten days, and after that, I will release everything (this time for real, I swear ). For keep the hype as high as possible, here is an standalone version of my NES emulator. Just append a mapper 0 game at the end, and enjoy it in your favourite emulator (like everything I do in assembler, doesn't work in RH for some reason).zhengyaxin_8bit wrote: Hello Mairtrus, what's time you will release some tool or experience to here?
That will be very usefull help for everybody interested
I have download NeMul.bin,but I can't open this by Gens emulator.
I downloaded, build and packed all mapper 0 roms (source http://tuxnes.sourceforge.net/nesmapper.txt) in a single file https://www.box.com/s/162a4f89a1a64539765a
Congrats, Mairtrus. Your emu works great!
-
- Very interested
- Posts: 145
- Joined: Sun Jan 28, 2007 2:01 am
- Location: DCEvolution.net
- Contact:
Wow!Mairtrus wrote:For keep the hype as high as possible, here is an standalone version of my NES emulator. Just append a mapper 0 game at the end, and enjoy it in your favourite emulator
You have to append a ".nes" file to "NeMul.bin".zhengyaxin_8bit wrote:Wow! This announcement greatly excited me!
I have download NeMul.bin,but I can't open this by Gens emulator.
...or download this package:
Moon-Watcher wrote:I downloaded, build and packed all mapper 0 roms (source http://tuxnes.sourceforge.net/nesmapper.txt) in a single file https://www.box.com/s/162a4f89a1a64539765a
This games doesn't work at hardware.Moon-Watcher wrote: I downloaded, build and packed all mapper 0 roms (source http://tuxnes.sourceforge.net/nesmapper.txt) in a single file https://www.box.com/s/162a4f89a1a64539765a
Congrats, Mairtrus. Your emu works great!
Mairtrus can you make the converter (emulator) of SMS to SMD?
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
Yes,I can look it now!Great work! How to improve the play speed?Christuserloeser wrote:Wow!Mairtrus wrote:For keep the hype as high as possible, here is an standalone version of my NES emulator. Just append a mapper 0 game at the end, and enjoy it in your favourite emulator
You have to append a ".nes" file to "NeMul.bin".zhengyaxin_8bit wrote:Wow! This announcement greatly excited me!
I have download NeMul.bin,but I can't open this by Gens emulator.
...or download this package:Moon-Watcher wrote:I downloaded, build and packed all mapper 0 roms (source http://tuxnes.sourceforge.net/nesmapper.txt) in a single file https://www.box.com/s/162a4f89a1a64539765a