C64 Cartridge support

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

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

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 »

About DaffyDuck: it seems the intro is the main problem.
Same game works ok from disk.
yellperil
Atari freak
Atari freak
Posts: 51
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Post by yellperil »

Yay! final cartridge works could never get it to work on the mist.

Thanks for the Cart support :-)
yellperil
Atari freak
Atari freak
Posts: 51
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Post by yellperil »

The VICE team has a list of Cartridge formats if that helps with testing and adding support.

Also links to vice source code containing a description of how the format works.

http://ar.c64.org/wiki/CRT_ID

eg.

57 RGCD rgcd.c

/*
"RGCD" 64k Cartridge

- 64Kb (8 banks)
- ROM is always mapped in at $8000-$9FFF (8k game).

- 1 register at io1 / de00:

bit 0-2 bank number
bit 3 exrom (1 = cart rom and I/O disabled until reset/powercycle)
*/
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 »

yellperil wrote:The VICE team has a list of Cartridge formats if that helps with testing and adding support.

Also links to vice source code containing a description of how the format works.

http://ar.c64.org/wiki/CRT_ID

eg.

57 RGCD rgcd.c

/*
"RGCD" 64k Cartridge

- 64Kb (8 banks)
- ROM is always mapped in at $8000-$9FFF (8k game).

- 1 register at io1 / de00:

bit 0-2 bank number
bit 3 exrom (1 = cart rom and I/O disabled until reset/powercycle)
*/
I have all this info and source code. Problem is not in info. Problem in testing with real image.
yellperil
Atari freak
Atari freak
Posts: 51
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Post by yellperil »

Ahh okay got you.

Do you have Assembly64? It's a really easy way to get a massive collection of stuff.
http://hackerswithstyle.ddns.net/assembly/download.html

Cart Name: ./assembly64_crt/S/Soulless/soulless-ezf/soulless-xbank.crt
Cart Type: 00033
Cart Name: ./assembly64_crt/T/Trance sector ultimate/TSU FINAL/TSU-NewVICE-RGCD.crt
Cart Type: 00057

I've attached a list of all of the Filenames and Cart types in the collection. Please note not all are for c64.
c64_Cart.Assembly64.txt.zip
==> cmd line
find . -name "*.crt" -exec ./show_crt_hw "{}" \; > output.crt
find . -name "*.CRT" -exec ./show_crt_hw "{}" \; > output.CRT

==> show_crt_hw
echo "Cart Name: $1"
echo -n "Cart Type: "
hexdump -d -s23 -n1 "$1" | grep -v "0000018" |sed s/0000017//
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 »

yellperil wrote:Do you have Assembly64? It's a really easy way to get a massive collection of stuff.
thanks! this is really helpful resource!
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 »

Easyflash-XBank format seems exactly the same as normal Easyflash. I've just patched id 33 to 32 and it works as normal easyflash.
Since there is only one xbank cartridge, i assume the format is the same until some more carts will appear.
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)
Found that easyflash register handled incorrectly. After fixing, all these carts except DuckTales start to work.
What prevents DuckTales from working - i don't know.
Corrupted intro on Maniac Mansion is not related to cart code, i think.
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 »

DuckTales is fixed as well
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 »

Sorgelig wrote:DuckTales is fixed as well
:cheers: That's great :cheers:
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 »

- easyflash fixes
- business basic support
- mikro assembler support
- some memory map tweaks for ultimax mode
- rgcd format has been tested.
C64_cart_test2.zip
You do not have the required permissions to view the files attached to this post.
Slade
Atari freak
Atari freak
Posts: 60
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Post by Slade »

I'm not sure if this can be fixed easily. I've been trying to use the turbo loader on the Action Replay V6 cart. The cart works in that it loads, the "handler" installs into memory, and loading causes the purple screen, but that's where everything stops. The game/program/demo never loads. The system doesn't fully hang. I can reset with F12 and F4 will bring up the cart menu.

I'll try the V5 of the cart to see if that is any different. I have tried some software turbo loaders and some of those work really well.

Edit: Nope, V5 of the AR cart doesn't fast load either. Bummer.
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 »

Use JiffyDOS for fast loading. Nothing can beat JiffyDOS. AR is here just for hacking.
Slade
Atari freak
Atari freak
Posts: 60
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Post by Slade »

Thanks. I'll take a look into it, to see how it works. I've never really played around with JiffyDOS - from what I recall reading, it's a rom replacement... Not sure how that will work on MiSTer.

Also: Found this cart doesn't work either: http://www.elysium.filety.pl/tools/cart ... c_desk.zip

It freezes the C64 (MiSTer still runs though).
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 »

Slade wrote:Also: Found this cart doesn't work either: http://www.elysium.filety.pl/tools/cart ... c_desk.zip
it works for me. In which part it freezes?
Slade
Atari freak
Atari freak
Posts: 60
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Post by Slade »

Sorry. I linked to a different version to the one I tried. <sigh> Genius, I know.

This is the version I have that BSOD's (Ha ! The original BSOD - Take that Microsoft.)
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 »

Slade wrote:Sorry. I linked to a different version to the one I tried. <sigh> Genius, I know.

This is the version I have that BSOD's (Ha ! The original BSOD - Take that Microsoft.)
this is incorrect version. Someone edited the cart_id field from original 19 to 5. You can compare the both files and see that only one byte is different.
cavemanxzx
Retro freak
Retro freak
Posts: 13
Joined: Sun Dec 17, 2017 9:39 am

Re: C64 Cartridge support

Post by cavemanxzx »

working Great. Thank you.
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 »

it's officially released. Some minor tweaks has been added.
Slade
Atari freak
Atari freak
Posts: 60
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Post by Slade »

Sorgelig wrote:
Slade wrote:Sorry. I linked to a different version to the one I tried. <sigh> Genius, I know.

This is the version I have that BSOD's (Ha ! The original BSOD - Take that Microsoft.)
this is incorrect version. Someone edited the cart_id field from original 19 to 5. You can compare the both files and see that only one byte is different.
Thanks - that makes sense.
I really appreciate all the effort you put into this. I tried a diagnostic cart and it throws 2 failures. I think one was on the CIA, I can't recall the other. No time to check now - heading off to work. I thought that was interesting.
yellperil
Atari freak
Atari freak
Posts: 51
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Post by yellperil »

Hi Sorgelig,

I'd like to submit to you an update to "rom_c64_chargen.vhd" to fix the character rom corruption issue on the dead test cart for the C64 core.

The original code only had half of the character rom (2K) and assumes the that the inverse character set is a 1 to 1 match
and uses a routine the generate the other half of the ROM. However this is not correct as the dead test cart checksums flag it as bad.

Attached updated file contains full character rom (4k) and removal of code to "create" the inverse character set.
I've compiled it into your new source to try it and it works fine, but I'd double check it before inclusion.

Thanks in advance.
rom_c64_chargen.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 »

Thanks!
kolla
Captain Atari
Captain Atari
Posts: 341
Joined: Thu Sep 17, 2015 11:39 pm
Contact:

Re: C64 Cartridge support

Post by kolla »

Off-topic, but C64 related... is there a trick to load games without using keyboard?
I have been pondering on maybe assign enter, `load "*",8,1` and `run` to joystick keys :)

Oh, it seems some C64 games also support a "second joystick button", but the C64 core AFAIK only supports one joystick button.
The game in question for me right now, is the Bear Essentials, where second button brings up the map.
-- kolla
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 »

if you use JiffyDOS then there is shortcut ALT+ESC to execute load & run.
Some games require other keys to start like SPACE, ENTER, F1. Trainers may require keys Y, N on startup.
C64 is computer, not console. You have to have the keyboard.
yellperil
Atari freak
Atari freak
Posts: 51
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Post by yellperil »

kolla wrote:Oh, it seems some C64 games also support a "second joystick button", but the C64 core AFAIK only supports one joystick button.
The game in question for me right now, is the Bear Essentials, where second button brings up the map.
Interesting I don't ever remember the C64 itself every having a two button joystick.
The game doco for bear essentials talks about using a C64GS joystick which was for the C64 console with no keyboard.

The wiki talks about having a pull up with the 5 Volt line on POTX ( and potentially POTY ) to support the extra button.
So the game is reading POTX on the SID.

http://wiki.icomp.de/wiki/DB9-Joystick
Locked

Return to “MiSTer”