C64 Cartridge support

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

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

Sorgelig
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 11:11 am

About DaffyDuck: it seems the intro is the main problem.
Same game works ok from disk.

yellperil
Atariator
Atariator
Posts: 20
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Postby yellperil » Wed Dec 27, 2017 1:44 pm

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

Thanks for the Cart support :-)

yellperil
Atariator
Atariator
Posts: 20
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Postby yellperil » Wed Dec 27, 2017 1:55 pm

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 2:57 pm

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
Atariator
Atariator
Posts: 20
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Postby yellperil » Wed Dec 27, 2017 3:25 pm

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 4:51 pm

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 5:10 pm

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 10:33 pm

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 11:09 pm

DuckTales is fixed as well

NML32
Captain Atari
Captain Atari
Posts: 465
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: C64 Cartridge support

Postby NML32 » Wed Dec 27, 2017 11:15 pm

Sorgelig wrote:DuckTales is fixed as well

:cheers: That's great :cheers:

Sorgelig
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Wed Dec 27, 2017 11:30 pm

- 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: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Postby Slade » Thu Dec 28, 2017 6:27 am

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Thu Dec 28, 2017 7:48 am

Use JiffyDOS for fast loading. Nothing can beat JiffyDOS. AR is here just for hacking.

Slade
Atari freak
Atari freak
Posts: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Postby Slade » Thu Dec 28, 2017 8:31 am

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Thu Dec 28, 2017 8:37 am

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: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Postby Slade » Thu Dec 28, 2017 11:33 am

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Thu Dec 28, 2017 12:54 pm

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
Atarian
Atarian
Posts: 6
Joined: Sun Dec 17, 2017 9:39 am

Re: C64 Cartridge support

Postby cavemanxzx » Thu Dec 28, 2017 7:34 pm

working Great. Thank you.

Sorgelig
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Thu Dec 28, 2017 8:45 pm

it's officially released. Some minor tweaks has been added.

Slade
Atari freak
Atari freak
Posts: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: C64 Cartridge support

Postby Slade » Thu Dec 28, 2017 9:10 pm

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
Atariator
Atariator
Posts: 20
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Postby yellperil » Fri Dec 29, 2017 2:09 am

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Fri Dec 29, 2017 7:06 am

Thanks!

kolla
Captain Atari
Captain Atari
Posts: 155
Joined: Thu Sep 17, 2015 11:39 pm
Contact:

Re: C64 Cartridge support

Postby kolla » Fri Dec 29, 2017 2:03 pm

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
Atari God
Atari God
Posts: 1956
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: C64 Cartridge support

Postby Sorgelig » Fri Dec 29, 2017 2:49 pm

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
Atariator
Atariator
Posts: 20
Joined: Sun Jun 04, 2017 10:53 am

Re: C64 Cartridge support

Postby yellperil » Mon Jan 01, 2018 1:42 pm

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


Return to “MiSTer”

Who is online

Users browsing this forum: No registered users and 2 guests