my nes emulator ffnes

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

rockcarry
Posts: 21
Joined: Tue Oct 14, 2014 7:30 am

my nes emulator ffnes

Post by rockcarry » Wed Oct 22, 2014 7:42 pm

I am now writting a nes emulator ffnes. I put it on github:
https://github.com/rockcarry/ffnes

ffnes-v0.5

change log:

2015-01-16
----------
1. add main menu for emulator
2. implements game save/load and replay function
3. using direct3d to rendering video
4. code improve for apu and ppu
5. bugfixs
Attachments
ffnes-v0.5.rar
(150.29 KiB) Downloaded 344 times
Last edited by rockcarry on Fri Jan 16, 2015 1:50 am, edited 3 times in total.

rockcarry
Posts: 21
Joined: Tue Oct 14, 2014 7:30 am

Re: my nes emulator ffnes

Post by rockcarry » Thu Oct 23, 2014 7:54 pm

Introduction
------------

ffnes is a nes emulator.

Now there are a lot of nes emulators, but for me, I still want to write a completely new one. It's an interesting thing.

I have already spent a lot of time on study how nes hardware working and how to write a emulator. Now I'm ready to write code and do debugging.

I payed more attention to the quality of the code and portability. I think the code is clear and good for your reading, enjoy it.


How to compile
--------------
There is a vs2005 project for win32. You need install vs2005, then goto ffnes/vs2005 directory open ffnes.sln, and press run button directly, everything will be OK.

If you are using ubuntu or other linux distribution, you need install a mingw32 gcc compiler, then you could goto src directory, try make.
The target binary is for win32 due to mingw32. Currently code can't compile for linux platform, need do more porting work.


How to use
----------

Keyboard definitions for joystick:

up - E
down - D
left - S
right - F
A - J
B - K
turbo A - U
turbo B - I
select - B
start - N
alt - hide/show menu
alt+enter - toggle fullscreen

getting source code:
git clone https://github.com/rockcarry/ffnes.git
Last edited by rockcarry on Fri Jan 16, 2015 1:51 am, edited 2 times in total.

WedNESday
Posts: 1236
Joined: Thu Sep 15, 2005 9:23 am
Location: Berlin, Germany
Contact:

Re: my nes emulator ffnes

Post by WedNESday » Fri Oct 24, 2014 3:19 am

Please provide an .exe file. Some users won't have the ability to compile a C++ program or won't download source code out of fear of viruses (no offense).

User avatar
thefox
Posts: 3141
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Re: my nes emulator ffnes

Post by thefox » Fri Oct 24, 2014 3:30 am

WedNESday wrote:Please provide an .exe file. Some users won't have the ability to compile a C++ program or won't download source code out of fear of viruses (no offense).
Won't download source code fearing viruses, but will download an executable? :)
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi

WedNESday
Posts: 1236
Joined: Thu Sep 15, 2005 9:23 am
Location: Berlin, Germany
Contact:

Re: my nes emulator ffnes

Post by WedNESday » Fri Oct 24, 2014 3:33 am

thefox wrote:
WedNESday wrote:Please provide an .exe file. Some users won't have the ability to compile a C++ program or won't download source code out of fear of viruses (no offense).
Won't download source code fearing viruses, but will download an executable? :)
Alright, sucky answer. But an .exe would be convenient for users and some people don't have C++ compilers. Its standard to provide an .exe. ;)

User avatar
rainwarrior
Posts: 8000
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: my nes emulator ffnes

Post by rainwarrior » Fri Oct 24, 2014 6:34 am

I think it's just fear of entirely unnecessary effort.

Not providing a binary means every user has to do the work of building it, instead of just one person.

Or maybe it's fear of compilers? I think that's a justifiable fear.

WedNESday
Posts: 1236
Joined: Thu Sep 15, 2005 9:23 am
Location: Berlin, Germany
Contact:

Re: my nes emulator ffnes

Post by WedNESday » Fri Oct 24, 2014 6:48 am

rainwarrior wrote:I think it's just fear of entirely unnecessary effort.

Not providing a binary means every user has to do the work of building it, instead of just one person.

Or maybe it's fear of compilers? I think that's a justifiable fear.
:shock:

Fry: Not sure if agreeing with me, or being sarcastically disagreeable.

User avatar
rainwarrior
Posts: 8000
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: my nes emulator ffnes

Post by rainwarrior » Fri Oct 24, 2014 6:51 am

I'm not sure how you'd read any of it as sarcasm? The "fear of compilers" bit was a joke, but not sarcastic. They really are scary awful beasts. (Aaaa, sorry, yet another thread is off topic now isn't it.)

User avatar
Quietust
Posts: 1684
Joined: Sun Sep 19, 2004 10:59 pm
Contact:

Re: my nes emulator ffnes

Post by Quietust » Fri Oct 24, 2014 6:56 am

On the topic of compilers, why Visual C++ 2005 and not a later version like 2010 or 2012?
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.

User avatar
James
Posts: 429
Joined: Sat Jan 22, 2005 8:51 am
Location: Chicago, IL
Contact:

Re: my nes emulator ffnes

Post by James » Fri Oct 24, 2014 8:05 am

It doesn't compile out of the box with VS 2013. Complains about not being able to build an MFC project with a non-Unicode character set. Switching to Unicode (from Multi-byte) results in a bunch of errors. I gave up at that point.
get nemulator
http://nemulator.com

WedNESday
Posts: 1236
Joined: Thu Sep 15, 2005 9:23 am
Location: Berlin, Germany
Contact:

Re: my nes emulator ffnes

Post by WedNESday » Fri Oct 24, 2014 8:53 am

rainwarrior wrote:I'm not sure how you'd read any of it as sarcasm? The "fear of compilers" bit was a joke, but not sarcastic. They really are scary awful beasts. (Aaaa, sorry, yet another thread is off topic now isn't it.)
Sorry, I just wanted to make a Fry from Futurama meme and couldn't think of the 2nd line. ;)
James wrote:It doesn't compile out of the box with VS 2013. Complains about not being able to build an MFC project with a non-Unicode character set. Switching to Unicode (from Multi-byte) results in a bunch of errors. I gave up at that point.
Now this is why I complained about a lack of .exe in the first place.

User avatar
Quietust
Posts: 1684
Joined: Sun Sep 19, 2004 10:59 pm
Contact:

Re: my nes emulator ffnes

Post by Quietust » Fri Oct 24, 2014 10:42 am

James wrote:It doesn't compile out of the box with VS 2013. Complains about not being able to build an MFC project with a non-Unicode character set.
Incidentally, the usage of MFC also prevents it from being compiled with Visual C++ Express, which is probably a show stopper for quite a lot of people here. I'm assuming the reason it uses 2005 is because that's the only version rockcarry has.
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.

User avatar
Zepper
Formerly Fx3
Posts: 3223
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: my nes emulator ffnes

Post by Zepper » Fri Oct 24, 2014 4:01 pm

WedNESday wrote:Sorry, I just wanted to make a Fry from Futurama meme and couldn't think of the 2nd line. ;)
That's why memes should be avoided here. :|

I could convert all that code into C and compile it... but is worth the effort? Looks like an old and dated emulator.

rockcarry
Posts: 21
Joined: Tue Oct 14, 2014 7:30 am

Re: my nes emulator ffnes

Post by rockcarry » Fri Oct 24, 2014 6:22 pm

I am so sorry everyone, It's my fault. I will upload binary of ffnes.
The project is still under developing, so there are many bugs, and something didn't implemented. Due to this I'd like make it stable first, then release the binary.

rockcarry
Posts: 21
Joined: Tue Oct 14, 2014 7:30 am

Re: my nes emulator ffnes

Post by rockcarry » Fri Oct 24, 2014 6:25 pm

Quietust wrote:
James wrote:It doesn't compile out of the box with VS 2013. Complains about not being able to build an MFC project with a non-Unicode character set.
Incidentally, the usage of MFC also prevents it from being compiled with Visual C++ Express, which is probably a show stopper for quite a lot of people here. I'm assuming the reason it uses 2005 is because that's the only version rockcarry has.
yes, on my old winxp computer, only vs2005 can work.

Post Reply