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: 1216
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: 266
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: 3081
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: 1216
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: 541
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 maniac
Atari maniac
Posts: 88
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: 266
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: 3081
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: 3081
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: 3081
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: 72
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 maniac
Atari maniac
Posts: 88
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: 72
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: 3081
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.

PhantombrainM
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 107
Joined: Fri Mar 16, 2018 9:10 am

Re: SMS core

Postby PhantombrainM » Sun Oct 21, 2018 7:31 pm

Thank you for the new release.
Picture is sometimes not centered and a little bit cutoff by VGA now.

Regards,
PhantombrainM
You do not have the required permissions to view the files attached to this post.
Two beer or not two beer? - Shakesbeer.

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

Re: SMS core

Postby NML32 » Sun Oct 21, 2018 7:50 pm

@PhantombrainM I see the same on my PVM. The picture is shifted a bit too much to the left.

retrorepair
Atari nerd
Atari nerd
Posts: 47
Joined: Wed Sep 29, 2010 1:27 pm

Re: SMS core

Postby retrorepair » Sun Oct 21, 2018 9:32 pm

Keep in mind this may be in keeping with original hardware though, if you have a real SMS I'd suggest comparing. It could just be that video timings are now accurate.

Video timings are difficult to replicate as they are not very well documented and can only really be replicated by studdying the originals with an oscilloscope.

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

Re: SMS core

Postby Sorgelig » Mon Oct 22, 2018 2:12 am

hsync position will be adjusted in future release.

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

Re: SMS core

Postby albconde » Mon Oct 22, 2018 7:33 pm

Tested lots of games now work ok, most of the garbage in graphics is fixed now
Some isues.
addams family : problems in the top of the screen in game
After Burner : boot loader screen
black belt : problems in backgound
Bonanza Bros : boot loader screen
Cool Spot : graphics problems
Ghouls n ghost : boot loader screen , but version (t +por)(p1) work
Global Gladiatos : graphics problems
Golden Axe : : boot loader screen

User avatar
thgill
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 142
Joined: Sat May 17, 2008 8:10 pm
Location: Cincinnati, OH

Re: SMS core

Postby thgill » Wed Oct 24, 2018 5:37 am

Noticed something interesting with the latest SMS core release.

HDMi from the MiSTer into my monitor. Audio comes out fine.

However hdmi into my capture device and there is no audio.

I haven’t tested any older SMS cores, but is this a possible bug?
Like retro computers, game consoles and other obsolete junk? Check out Todd's Nerd Cave on YouTube

jayp76
Atarian
Atarian
Posts: 3
Joined: Wed Oct 17, 2018 10:09 am

GameGear on SMS Core

Postby jayp76 » Thu Oct 25, 2018 6:23 am

Just a heads up.
Patched Game Gear games seem to work on the SMS Core, with minor caveats (missing start button).
At the momennt i only teste GG Shinobi. It works fine.
You can find the IPS patches on the SMS Power website.

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

Re: GameGear on SMS Core

Postby Sorgelig » Thu Oct 25, 2018 6:37 am

jayp76 wrote:Just a heads up.
Patched Game Gear games seem to work on the SMS Core, with minor caveats (missing start button).
At the momennt i only teste GG Shinobi. It works fine.
You can find the IPS patches on the SMS Power website.

good idea. will investigate it.

vanfanel
Atari nerd
Atari nerd
Posts: 48
Joined: Tue Oct 09, 2018 10:19 pm

Re: SMS core

Postby vanfanel » Thu Oct 25, 2018 9:04 am

This new version of the SMS core has totally changed how things look and SOUND! The new PSG implementation is much better, almost perfect, and graphics garbage is gone.

Some small problems I am seeing:
-Lord of the Sword has blitting problems everywhere: most scenario tiles seem to have a black background.
-The same defect can be seen in WonderBoy 3: The dragon's trap, during the fight with mecha dragon, when you hit the dragon.
-In Castle of Ilusion, there's a small green block on the top-right edge on the screen during the copyright text display.

the1ross
Atarian
Atarian
Posts: 4
Joined: Tue Oct 23, 2018 12:17 am

Re: SMS core

Postby the1ross » Tue Oct 30, 2018 7:36 am

Does anyone know if SG-1000 games are compatible with this core or if they'll be added at some point?

berighteous
Atarian
Atarian
Posts: 3
Joined: Fri Oct 19, 2018 6:58 am

Re: SMS core

Postby berighteous » Tue Oct 30, 2018 8:11 pm

I can't get any games to load. Only boot loader screen. What's the trick? Am I missing something. The files are in my SMS directory.


Return to “MiSTer”

Who is online

Users browsing this forum: cacophony, Hewhoisred and 2 guests