New 6526 (CIA) Implementation for the C64 core

https://github.com/mist-devel/mist-board/wiki

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

Chris23235
Captain Atari
Captain Atari
Posts: 313
Joined: Thu Aug 07, 2014 6:52 pm

New 6526 (CIA) Implementation for the C64 core

Post by Chris23235 »

Rayne released his new implementation of the 6526 chip. He talks about improved compability:

https://mist-fpga.net/viewtopic.php?f=1 ... 2138#p2138
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

Great!

If someone can contact him, then can asked to check it via this test suite (it mostly tests the timers)?
http://www.zimmers.net/anonftp/pub/cbm/ ... ia6526.zip

The current one is passing more tests.
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

And another note: the archive I've posted above contains documents about the inner workings of the timers, so a cycle-accurate version can be implemented.
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

I've finished integrating Rayne's CIA, but rewritten the timers. All CIA timer tests are passing! So somebody could tell him a thanks :) And he can check the modified CIA here:
https://github.com/mist-devel/mist-boar ... /mos6526.v
Hammerfist still works.

Also found out the SID problem in many games, like Hysteria and West Bank, also fixed.
Grab the release here:
https://github.com/mist-devel/mist-bina ... 190127.rbf
User avatar
DrOG
Atari Super Hero
Atari Super Hero
Posts: 771
Joined: Sun Jul 31, 2016 8:23 pm
Location: Gyula, Hungary

Re: New 6526 (CIA) Implementation for the C64 core

Post by DrOG »

slingshot wrote:...
Also found out the SID problem in many games, like Hysteria and West Bank, also fixed.
Grab the release here:
https://github.com/mist-devel/mist-bina ... 190127.rbf
Very nice! Thanks a lot! :cheers:
NegSol
Captain Atari
Captain Atari
Posts: 406
Joined: Sat Dec 05, 2015 9:22 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by NegSol »

Great! I really like the new version :) :cheers: :)
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: New 6526 (CIA) Implementation for the C64 core

Post by Sorgelig »

slingshot wrote: Also found out the SID problem in many games, like Hysteria and West Bank, also fixed.
I've tried to find any traces in internet where it's written that SID registers can be read, but couldn't find any.
Where did you get such info?
DanyPPC
Atari God
Atari God
Posts: 1925
Joined: Tue Feb 21, 2017 7:02 am

Re: New 6526 (CIA) Implementation for the C64 core

Post by DanyPPC »

Oh, that's a great news !

Many thanks Slingshot :cheers:
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

Sorgelig wrote:
slingshot wrote: Also found out the SID problem in many games, like Hysteria and West Bank, also fixed.
I've tried to find any traces in internet where it's written that SID registers can be read, but couldn't find any.
Where did you get such info?
I had just some luck, I think:
https://www.c64-wiki.de/wiki/Ultimate_64/Testbericht
Maybe not all have to be read, I think the most important is the control reg.

Now just Outrun's samples are missing, probably the filters?

Upd.: on that page I linked, there are quite a lot of tests. If somebody wants to run them, and report which ones are failing, that could help on further development.
DanyPPC
Atari God
Atari God
Posts: 1925
Joined: Tue Feb 21, 2017 7:02 am

Re: New 6526 (CIA) Implementation for the C64 core

Post by DanyPPC »

Yes, OutRun plays for some seconds but then one of two voices are mute.

Gutz, West bank and Hysteria are perfect.
Hysteria needs to select 6581 emulation for hear sound/music.
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

I didn't update the 8580.
DanyPPC
Atari God
Atari God
Posts: 1925
Joined: Tue Feb 21, 2017 7:02 am

Re: New 6526 (CIA) Implementation for the C64 core

Post by DanyPPC »

This is not a problem. 8580 emulation is very good !
Chris23235
Captain Atari
Captain Atari
Posts: 313
Joined: Thu Aug 07, 2014 6:52 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by Chris23235 »

slingshot wrote:I've finished integrating Rayne's CIA, but rewritten the timers. All CIA timer tests are passing! So somebody could tell him a thanks :) And he can check the modified CIA here:
https://github.com/mist-devel/mist-boar ... /mos6526.v
Hammerfist still works.

Also found out the SID problem in many games, like Hysteria and West Bank, also fixed.
Grab the release here:
https://github.com/mist-devel/mist-bina ... 190127.rbf
I posted your message on mist-fpga.net

https://mist-fpga.net/viewtopic.php?f=1 ... 2149#p2149
DanyPPC
Atari God
Atari God
Posts: 1925
Joined: Tue Feb 21, 2017 7:02 am

Re: New 6526 (CIA) Implementation for the C64 core

Post by DanyPPC »

I forgot to sat that now Frantic Freddie works perfectly !

Tested some demo from the scene like Uncensored, Comalight 13, The Concert by Performers, Wonderland XIII and they work.
Really great update ! Many thanks again Slingshot.
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

Chris23235 wrote:
I posted your message on mist-fpga.net

https://mist-fpga.net/viewtopic.php?f=1 ... 2149#p2149
Thanks!
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

DanyPPC wrote:I forgot to sat that now Frantic Freddie works perfectly !
Great, good to know!
User avatar
vebxenon
Atari God
Atari God
Posts: 1577
Joined: Fri Apr 24, 2015 12:10 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by vebxenon »

Thanks very much, Slingshot! :cheers:
Videogame and computing user and lover :D

Follow MiST Board and Sidi news on the Fediverse:

https://masto.ai/@mistboard
christianlucio
Atariator
Atariator
Posts: 28
Joined: Sat Aug 20, 2016 5:03 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by christianlucio »

Many thanks to our new hero !

You have made millions of people very happy !
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

If millions of people would still enjoy a C64, we would live in a better world I think :)
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: New 6526 (CIA) Implementation for the C64 core

Post by Sorgelig »

slingshot wrote:If millions of people would still enjoy a C64, we would live in a better world I think :)
Take higher - billions! :mrgreen:
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

Sorgelig wrote:
slingshot wrote:If millions of people would still enjoy a C64, we would live in a better world I think :)
Take higher - billions! :mrgreen:
C64 for everyone :)
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

This guy plays on a synth, which is the creation of the SID's father (he told this synth's chip is what he wanted the SID become originally):
https://www.youtube.com/watch?v=osll7E0f0IY
User avatar
vebxenon
Atari God
Atari God
Posts: 1577
Joined: Fri Apr 24, 2015 12:10 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by vebxenon »

Videogame and computing user and lover :D

Follow MiST Board and Sidi news on the Fediverse:

https://masto.ai/@mistboard
slingshot
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2745
Joined: Mon Aug 06, 2018 3:05 pm

Re: New 6526 (CIA) Implementation for the C64 core

Post by slingshot »

Try Turbo Outrun!
Hope I didn't broke something else.
DanyPPC
Atari God
Atari God
Posts: 1925
Joined: Tue Feb 21, 2017 7:02 am

Re: New 6526 (CIA) Implementation for the C64 core

Post by DanyPPC »

What can I say.... simply great !

Even on the Ultimate 64 with last firmware 1.0B this game has problem on intro with the soundtrack.
Now MiST/MiSTer are very good replacement of the original machine.

I have 10 C64 at home and compared the sound of any single SID 6581 with this game, I admit MiST sounds excellent because this is a game which the soundtrack has always brought the various revisions of SID to its knees. In my case only SID 6581R4AR play the intro soundtrack very well.

Now MiST is better of my C64s.... It's simply W O N D E R F U L ! ! !

and all thanks to Slingshot improvements.
I will never stop thanking you for what you do !

:cheers: :cheers: :cheers: :cheers: :cheers: :cheers: :cheers: :cheers:
Post Reply

Return to “MiST”