C64 Cartridge support

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

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

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

C64 Cartridge support

Post by NML32 »

@sorgelig
I forget why cartridge support was removed from the MiSTer but would it be possible to add it back?

I have a few digital downloads that are in crt only format (Luftrauserz) that I'd like to play on the MiSTer.

Thanks, I hope you can find the time to add Cartridge support back to the MiSTer.
NegSol
Captain Atari
Captain Atari
Posts: 366
Joined: Sat Dec 05, 2015 9:22 pm

Re: C64 Cartridge support

Post by NegSol »

To my knowledge the source (provided by Lee) was not yet released to public. MiSTer had no CRT support yet. Did you manage to get Luftrauserz to run on the Mist? I only get a loading picture and than it crashes (using latest core release as binary in Sept. 2017 on the facebook group). :shrug:
User avatar
DrOG
Atari Super Hero
Atari Super Hero
Posts: 734
Joined: Sun Jul 31, 2016 8:23 pm
Location: Gyula, Hungary

Re: C64 Cartridge support

Post by DrOG »

It crashes on Turbo Chameleon 64 as well.

See details here:
https://groups.yahoo.com/neo/groups/cha ... opics/5185
NML32
Atari Super Hero
Atari Super Hero
Posts: 691
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: C64 Cartridge support

Post by NML32 »

NegSol wrote:To my knowledge the source (provided by Lee) was not yet released to public. MiSTer had no CRT support yet. Did you manage to get Luftrauserz to run on the Mist? I only get a loading picture and than it crashes (using latest core release as binary in Sept. 2017 on the facebook group). :shrug:
Until an update is released you can make two small changes with a hex editor to the crt.

Works on MiST after a small change mentioned above.
http://www.lemon64.com/forum/viewtopic. ... 663#808663
NegSol
Captain Atari
Captain Atari
Posts: 366
Joined: Sat Dec 05, 2015 9:22 pm

Re: C64 Cartridge support

Post by NegSol »

Great! I will give the hex change a try :) Thx :mrgreen:
NML32
Atari Super Hero
Atari Super Hero
Posts: 691
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: C64 Cartridge support

Post by NML32 »

NegSol wrote:To my knowledge the source (provided by Lee) was not yet released to public. MiSTer had no CRT support yet.
I may be mistaken but I think Gehstock has Lee's cart code on his Github.

https://github.com/Gehstock/MIST_C64/bl ... artridge.v

Couldn't this be used on MiSTer?
yellperil
Atari freak
Atari freak
Posts: 51
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Post by yellperil »

Lee did post his source up and it is current all the way up to the disk change sense.

https://github.com/Braincell1973

If you look at the Mister c64 core that Sorgelig created, it already incorporates Lee's updates to the CIA with the TOD clock fixes.

cia6526.vhd Import braincell1973 changes.

I merged the write code from the Mister core back into the Mist core. I tried looking at merging the crt, tap etc changes from the Mist core into the Mister core but I got unstuck as the memory implementation has changed and my VHDL skills weren't good enough to work out how to get it going ( that is I couldn't just use diff and merge the changes in ).

If someone with skills could Please update the core that would be awesome. It's pretty much the only reason why I still keep the Mist on my desk.

I set up a github to show the Diff to show the changes that Lee had made to the original Mist core that Sorgelig made here to make it easier:
https://github.com/mtfong/MIST_C64_OLD

You can see the diff here.
https://github.com/mtfong/MIST_C64_OLD/ ... 9b848efd5f

Pretty much everything highlighted in the diff ( except the CIA file ) is missing from the MiSTer core and some of it needs to be migrated/fixed like the sdram to spram bits.
NegSol
Captain Atari
Captain Atari
Posts: 366
Joined: Sat Dec 05, 2015 9:22 pm

Re: C64 Cartridge support

Post by NegSol »

I tested the hex edit on Luftrauserz - worked like a charm. Really great title for the MiST's C64 core. Would be great to get .CRT support on the MiSTer for this alone. I like this version of the game even more than the PC original :mrgreen: - Thanks again for the tip.
User avatar
Newsdee
Atari God
Atari God
Posts: 1561
Joined: Fri Sep 19, 2014 8:40 am

Re: C64 Cartridge support

Post by Newsdee »

Can't you extract the game from .crt as .prg format?
NML32
Atari Super Hero
Atari Super Hero
Posts: 691
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: C64 Cartridge support

Post by NML32 »

Luftrauserz has been updated and now works un-modified on MiST.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

NML32 wrote:Luftrauserz has been updated and now works un-modified on MiST.
Is Luftrauserz new game and still in development? Otherwise i don't understand your post.
mrr19121970
Retro freak
Retro freak
Posts: 11
Joined: Wed Aug 02, 2017 3:40 pm

Re: C64 Cartridge support

Post by mrr19121970 »

Newsdee wrote:Can't you extract the game from .crt as .prg format?
it is a 128kb Ocean cartridge and does various bank switching to patch in graphics (cutscenes), sprites and charsets. So the short answer is no, however there is a working .D64 version available on various BBSs. The loading times do interfere with the gameplay somewhat.
bernouilli
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 102
Joined: Fri Jan 06, 2017 5:02 pm
Location: Paris/France

Re: C64 Cartridge support

Post by bernouilli »

Yes, it's new game that juste got released a few weeks ago.
The cartridge is alteady sold out but you can still buy the electronic version for a small price.
Last edited by bernouilli on Thu Dec 21, 2017 9:12 pm, edited 1 time in total.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

Funny game. You look at air planes from side, so it means they fly strictly vertically... They should be rockets not airplanes then ;)
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

Here is test version of C64 with cartridge support. When i've got the cartridge code from MiST version i've realized it need a lot of re-work. Most code was incorrect, not working and even commented out. That's why it took more than week to make it reliable.

There are many mappers in C64 cartridges, so support all of them will take a lot of time and i don't think all mappers are really necessary. At this stage i've concentrated on the mappers mentioned in MiST version. So, i've corrected all those mappers.
Currently supported mappers:
0 - simple 8KB/16KB and Ultimax carts - most small games up to 16KB use it.
1 - Action Replay 4.2-6.0
3 - Final Cartridge III
4 - Simons Basic
5 - Ocean Type 1 - many games use this mapper.
7 - Power Play and Fun Play.
8 - Super Games
10 - Epyx fastloader
13 - Final Cartridge 1,2
15 - C64GS
17 - Dinamic
18 - Zaxxon, Super Zaxxon
19 - Magic Desk and some other games
20 - Super Snapshot v5
21 - Comal80
32 - Easy Flash - a lot of new releases, mods and collections use this mapper.

Carts up to 1MB are supported. So far i didn't see larger carts for C64.

Some notes:
33 - Easy Flash XBank - this version is not supported because i cannot find any image with this mapper. Probably this mapper isn't useful as it's supposed to aggregate other Easy Flash images in one. Useful for real hardware, but useless for emulators since every easy flash cart can be used in separate file without redundant hassles.
57 - RGCD mapper. I couldn't find any image with this mapper. RGCD abbreviation is also used for game development competition for C64, so internet over-flooded unrelated files and infos if i search by "RGCD". Thus i couldn't find any image. So, this mapper is not tested yet.

If there are other highly useful mappers - let me know. Many other mappers usually used by 1 game/app only.

AR, FC, SS cartridges are supposed to be fully supported including Freeze function. F4 is freeze button when cartridge is loaded.
C64_cart_test.ZIP
You do not have the required permissions to view the files attached to this post.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

This version also includes my recent improvements for HDMI output. Same as in recent ZX/BK0011M cores.

NOTE: C64 core now requires SDRAM module!
NML32
Atari Super Hero
Atari Super Hero
Posts: 691
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: C64 Cartridge support

Post by NML32 »

Thank you for the updated C64 core. :)
I’m very excited to have cartridge support added to the MiSTer.
NegSol
Captain Atari
Captain Atari
Posts: 366
Joined: Sat Dec 05, 2015 9:22 pm

Re: C64 Cartridge support

Post by NegSol »

Thank you! I will test it very soon :cheers:
bernouilli
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 102
Joined: Fri Jan 06, 2017 5:02 pm
Location: Paris/France

Re: C64 Cartridge support

Post by bernouilli »

Perfect. Thanks a lot.
I think RGCD is used by Luftrauserz.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

bernouilli wrote:I think RGCD is used by Luftrauserz.
nope. it uses #5 (Ocean 1) mapper
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

I've re-checked all the rest mappers and all of them are different kinds of Action Replay and similar. I've only added Mikro Assembler mapper, as i think it's quite interesting dev tool using Basic IDE.
Thus the whole range of game carts should be supported already.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

I've anyone has Ariolasoft Structured Basic cart dump - let me know.
bernouilli
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 102
Joined: Fri Jan 06, 2017 5:02 pm
Location: Paris/France

Re: C64 Cartridge support

Post by bernouilli »

Sorgelig wrote:
bernouilli wrote:I think RGCD is used by Luftrauserz.
nope. it uses #5 (Ocean 1) mapper
Ok.

I just tested this game, simon's basic and ghost'n goblins arcade, they all work great.
cavemanxzx
Retro freak
Retro freak
Posts: 13
Joined: Sun Dec 17, 2017 9:39 am

Re: C64 Cartridge support

Post by cavemanxzx »

Thanks for your great work.

After some testing. I have here some Easyflash CRT not working.

Daffyduck, Ducktales, Scoobydoo, BugsBunny (all black Screen)
Maniac Mansion (Intro Corrupt)

Images are from Gamebase64 V15.They are working fine on real machine with 1541 Ultimate II.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Post by Sorgelig »

cavemanxzx wrote:After some testing. I have here some Easyflash CRT not working.

Daffyduck, Ducktales, Scoobydoo, BugsBunny (all black Screen)
Maniac Mansion (Intro Corrupt)

Images are from Gamebase64 V15.They are working fine on real machine with 1541 Ultimate II.
don't mess CRT support with game compatibility.
Since other Easyflash carts are working, most likely the problem is not in EasyFlash support code. C64 core itself is far from perfect and have problem with some games.
Locked

Return to “MiSTer”