Page 1 of 59

Mesen - NES Emulator

Posted: Thu Feb 11, 2016 10:10 pm
by Sour
Mesen is a high accuracy emulator for Windows/Linux/Libretro - as far as I know, it passes more test ROMs than any other emulator currently available.

It has most features you would expect from an emulator (save states, online play, cheats, movies) and a lot of advanced options (Rewinding, overclocking, remove sprite limit, custom palettes, stereo effects, support HD packs, automatic updates, etc.). It also includes a very complete set of debugging tools (including Lua scripting).

Download: https://www.mesen.ca/download.php
Website: https://www.mesen.ca
Documentation: https://www.mesen.ca/docs/
Source (GPLv3): https://github.com/SourMesen/Mesen
Releases: https://github.com/SourMesen/Mesen/releases

The current version is 0.9.9 - released on February 1, 2019.

Re: Mesen - NES Emulator

Posted: Thu Feb 11, 2016 10:28 pm
by miker00lz
This is an excellent emulator! Tons of features. Sound is great. It handled everything I threw at it, except for one little bug I found (which you're likely already aware of)... got a hang in Battletoads on the second level.

Re: Mesen - NES Emulator

Posted: Thu Feb 11, 2016 11:28 pm
by Dwedit
Joystick emulation has bugs. Seems to not respect the strobe status, and always shifts bits out after the first write. I think you need to make reads not trigger shifts until the strobe bit is cleared.

Example joystick reading code that shows the bug:

Code: Select all

	ldx #1
	stx $4016
	lda $4016
	dex
	stx $4016
	and #$FC
	tax

	cpx $4016
	ror a
	cpx $4016
	ror a
	cpx $4016
	ror a
	cpx $4016
	ror a
	cpx $4016
	ror a
	cpx $4016
	ror a
	cpx $4016
	ror a
	cpx $4016
	ror a
	eor #$FF

Re: Mesen - NES Emulator

Posted: Thu Feb 11, 2016 11:31 pm
by tokumaru
Sounds cool, but...
mesen-error.png
Any idea of what could've gone wrong?

Re: Mesen - NES Emulator

Posted: Thu Feb 11, 2016 11:42 pm
by oRBIT2002
Works fine here on my Windows 10 x64. Nice work!

Re: Mesen - NES Emulator

Posted: Thu Feb 11, 2016 11:45 pm
by Dwedit
It references System.IO.Compression and System.IO.Compression.FileSystem, and those should come with .NET 4.0 or greater.

Re: Mesen - NES Emulator

Posted: Thu Feb 11, 2016 11:56 pm
by tokumaru
Dwedit wrote:It references System.IO.Compression and System.IO.Compression.FileSystem, and those should come with .NET 4.0 or greater.
Thanks. Looks like I don't have 4.5 installed, which according to the site, is required. Will try to install it now.

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 5:37 am
by Sour
Thanks for the replies!

Wasn't aware of the Battletoads freeze on level 2, thanks for letting me know, I'll look into it.

Dwedit - It does look like the code for this is incorrect, thanks!

tokumaru - Not sure if you've had any success with installing .NET 4.5, but that's most likely the source of the error. Mesen uses .NET 4.5-specific features to read/extract data from zip files, which is the first thing it needs to do when starting up.

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 9:21 am
by miker00lz
This how it looked when it hung on Battletoads for me:

Image

It happened when I moved all the way to the top of the screen. Doesn't necessarily mean it's related, but that's when it did this in any case. The game ran perfectly until this point.

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 9:32 am
by zeroone
Awesome emulator. Very impressive work.

As for Battletoads, many threads on this forum have been dedicated to that exact stage 2 freezing issue. The nature of the issue is not fully understood. Hopefully, further research will yield a new test ROM.

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 10:13 am
by tokumaru
Sour wrote:tokumaru - Not sure if you've had any success with installing .NET 4.5, but that's most likely the source of the error.
Yup, installing .NET 4.5 fixed it. It's a very nice emulator! The debug tools look promising.
zeroone wrote:The nature of the issue is not fully understood.
Isn't it just a scrolling/sprite 0 hit issue?

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 10:53 am
by zeroone
tokumaru wrote:Isn't it just a scrolling/sprite 0 hit issue?
Yes. And, it has been confirmed with trace logs. But, the test ROMs do not detect the problem. The details of the issue are not fully understood.

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 11:37 am
by zeroone
@Sour

Could you provide a zip download link? Antivirus software does not like downloading .exe files.

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 11:51 am
by tokumaru
Can't you temporarily disable your Antivirus?

Re: Mesen - NES Emulator

Posted: Fri Feb 12, 2016 4:25 pm
by zeroone
tokumaru wrote:Can't you temporarily disable your Antivirus?
I can't :(