SMS core

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Sorgelig, Moderator Team

User avatar
Newsdee
Atari God
Atari God
Posts: 1173
Joined: Fri Sep 19, 2014 8:40 am

SMS core

Postby Newsdee » Tue Oct 03, 2017 1:05 am

Let's all give a big thanks to Sorgelig for porting the SMS core! It works really well!

NegSol
Captain Atari
Captain Atari
Posts: 240
Joined: Sat Dec 05, 2015 9:22 pm

Re: SMS core

Postby NegSol » Tue Oct 03, 2017 10:09 am

Thank you Sorgelig !! Great port!

I uploaded a short video captured from he HDMI Output.

https://youtu.be/yPHEmD2lN-U - SMS Core 20171002

At the moment the core does not offer any filter options for the picture. However some filtering appears to be applied.
While the VGA output looks nice and sharp, the HDMI output produces artifacts around object borders and looks blurry.

Still very decent port and a huge improvement compared to the existing MiST version. Great addition to the MiSTer core line up.

Cheers! :D

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2601
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: SMS core

Postby Sorgelig » Tue Oct 03, 2017 11:30 am

Actually i regret the time i spent for porting this core. Compatibility with games are very low.
So, don't expect much from this core.

User avatar
Newsdee
Atari God
Atari God
Posts: 1173
Joined: Fri Sep 19, 2014 8:40 am

Re: SMS core

Postby Newsdee » Tue Oct 03, 2017 12:04 pm

It's still a good example of how to port a core, so it's no wasted effort. Plus the games that do work are fun!

NML32
Atari Super Hero
Atari Super Hero
Posts: 527
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: SMS core

Postby NML32 » Tue Oct 03, 2017 7:25 pm

I'm always happy to see a new core ported over to MiSTer. :)
Thanks!! :cheers:

GreyRogue
Atari freak
Atari freak
Posts: 63
Joined: Thu Mar 22, 2018 3:50 am

Re: SMS core

Postby GreyRogue » Sun Oct 07, 2018 4:02 pm

As mentioned in this thread, I found that the SMS core was having issue with SDRAM access timing:
http://www.atari-forum.com/viewtopic.php?f=117&t=34189#p354216
Testing with the FPGA's built-in RAM seemed to fix issues.
I decided I wanted to figure out how the SDRAM access worked, so I messed around with it. I made a change in my fork, and several games seem to run much better. For example, Psycho Fox and Alex Kidd - Lost Stars were both randomly resetting. They appear to be stable now. Feel free to test.

NegSol
Captain Atari
Captain Atari
Posts: 240
Joined: Sat Dec 05, 2015 9:22 pm

Re: SMS core

Postby NegSol » Sun Oct 07, 2018 9:01 pm

Great to see your are making progress on this. Also I noticed some random resets in other Arcade cores (e.g. Moon Patrol). Could be completely unrelated but maybe an easy way to investigate sdram issues. Assuming these cores are less complex of course. :shrug:

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2601
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: SMS core

Postby Sorgelig » Mon Oct 08, 2018 6:09 am

Arcade cores don't use SDRAM.
It's possible some arcades may have protection against clones and it wasn't implemented - this is just guess. It's possible the core bug. But you need to understand that arcade cores don't use a common underlying computer core. Every arcade is its own custom system. Moon Patrol for example is the only core with such hardware.

If you think Moon Patrol has bugs, then talk to Darfpga as he already worked on improvements for this arcade.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2601
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: SMS core

Postby Sorgelig » Mon Oct 08, 2018 6:12 am

GreyRogue wrote:As mentioned in this thread, I found that the SMS core was having issue with SDRAM access timing:
http://www.atari-forum.com/viewtopic.php?f=117&t=34189#p354216
Testing with the FPGA's built-in RAM seemed to fix issues.
I decided I wanted to figure out how the SDRAM access worked, so I messed around with it. I made a change in my fork, and several games seem to run much better. For example, Psycho Fox and Alex Kidd - Lost Stars were both randomly resetting. They appear to be stable now. Feel free to test.

SDRAM problem is just a part of problems on this core. VDP needs a lot of improvements.
Originally i've thought i could re-use VDP from Genesis, but it turned out Genesis games don't use SMS video mode and thus it's not a part of Genesis core. So, SMS VDP needs to be developed separately.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2601
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: SMS core

Postby Sorgelig » Mon Oct 08, 2018 6:32 pm

I suggest to adapt the sdram module from Genesis core as it's synchronous to CPU. In SMS, only CPU can access the ROM, so it's easy to make SDRAM transparent.

albconde
Atari freak
Atari freak
Posts: 53
Joined: Thu Nov 30, 2017 8:56 am

Re: SMS core

Postby albconde » Thu Oct 11, 2018 8:59 pm

Testing greyrogue changes , some games work much better like sagaia, shadow of the beast or Solomon no kagi .

It's a good advance, but this core needs more work

GreyRogue
Atari freak
Atari freak
Posts: 63
Joined: Thu Mar 22, 2018 3:50 am

Re: SMS core

Postby GreyRogue » Sun Oct 14, 2018 9:12 pm

Fixed several initialization issues. Games should boot up a little more consistently now.

While I was in there, I added save support. Tested with Golden Axe Warrior, and appears to work.

Pull request created.

albconde
Atari freak
Atari freak
Posts: 53
Joined: Thu Nov 30, 2017 8:56 am

Re: SMS core

Postby albconde » Mon Oct 15, 2018 9:03 pm

Tested the last changes , some more games now work , like rtype , or Robocop 3.
thans for you work .

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2601
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: SMS core

Postby Sorgelig » Mon Oct 15, 2018 9:52 pm

Soon i will apply latest framework changes and release the binary.


Return to “MiSTer”

Who is online

Users browsing this forum: thgill and 2 guests