6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 3:13 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 65816 softcore?
PostPosted: Mon Mar 25, 2019 7:40 am 
Offline

Joined: Wed Mar 02, 2016 12:00 pm
Posts: 343
Hi!

I have been looking through the different 16-bit versions of the 6502 (or the effort to make such), but I still haven't found anyone trying for complete 65816 compatibility. Is there such a thing out there? I know about the VeriSNES and the official WDC softcore, but the first is unavailable and the second is too expensive.

Typically! After posting this, I found the MiSTer SNES which has a 65C816 core in VHDL:

https://github.com/MiSTer-devel/SNES_MiSTer/tree/master/src/65C816

Which is a port of the Japanese original:
https://github.com/srg320/FpgaSnes/tree/master/FPGA/65C816

(his web page is here, but in japanese)


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 softcore?
PostPosted: Mon Mar 25, 2019 8:41 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Good find, and something to keep an eye on. I see 1000+ lines of microcode, and I see a recent update tweaking a dozen of those lines.

As has been noted before, a testsuite can work wonders, but it's a lot of work to put together.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 softcore?
PostPosted: Tue Mar 26, 2019 7:41 am 
Offline

Joined: Wed Mar 02, 2016 12:00 pm
Posts: 343
BigEd wrote:
Good find, and something to keep an eye on. I see 1000+ lines of microcode, and I see a recent update tweaking a dozen of those lines.

As has been noted before, a testsuite can work wonders, but it's a lot of work to put together.


That is true. But it does run SNES code.. which was based on the original WDC? Or was it a modified core?


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 softcore?
PostPosted: Tue Mar 26, 2019 9:07 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
I think the SNES core isn't modified - it seems that MESS uses the same code to emulate the SNES and the IIgs.
https://github.com/mamedev/mame/blob/ma ... g65816.cpp

(There is SNES-specific modelling of the memory banking and the multiply/divide widget and the bus timing, I think, but those are not differences in the core.)


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 softcore?
PostPosted: Wed Mar 27, 2019 4:27 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
Have you tried the FT816 core? It's not 100% cycle compatible, but it's close, It's been used successfully in this project:
http://atariage.com/forums/topic/277736 ... s-a-65816/

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: