Previous Thread
Next Thread
Print Thread
Commodore 64 doesn't load cartridges #117762 08/31/20 07:45 AM
Joined: Dec 2013
Posts: 135
X
xinyingho Online Content OP
Senior Member
OP Online Content
Senior Member
X
Joined: Dec 2013
Posts: 135
Hi there,

I have a weird behaviour with C64 loading cartridges when adding a lot of options.

When launching MAME like this on Windows 10:
Code
mame64.exe c64p -cartridge batman

everything works fine, the cartridge gets loaded and the game gets run.

However, when I add all those parameters like this by forcing all the default parameters to appear on the command line:
Code
c64p -bios r3 -ramsize 65536 -exp "" -iec10 "" -iec11 "" -iec4 "" -iec8 c1541 -iec9 "" -joy1 "" -joy2 joy -tape c1530 -user "" -cassette "" -floppydisk "" -cartridge batman -quickload ""

MAME gets me to the default Basic V2 prompt and then I can try to type commands like load or list but it looks like the cartridge hasn't been loaded at all.

Is it me not understanding how C64 works, a bug, a feature?

Re: Commodore 64 doesn't load cartridges [Re: xinyingho] #117763 08/31/20 08:36 AM
Joined: Mar 2002
Posts: 1,160
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,160
exp is the cartridge slot, you overwrote the romtype of batman with ""

Re: Commodore 64 doesn't load cartridges [Re: xinyingho] #117764 08/31/20 09:17 AM
Joined: Dec 2013
Posts: 135
X
xinyingho Online Content OP
Senior Member
OP Online Content
Senior Member
X
Joined: Dec 2013
Posts: 135
Shouldn't exp be the expansion slot to add more input slots like additional cartridge slots, hard disk slots and so on?

It works when I simply remove the exp parameter:
Code
mame64 c64p -bios r3 -ramsize 65536 -iec10 "" -iec11 "" -iec4 "" -iec8 c1541 -iec9 "" -joy1 "" -joy2 joy -tape c1530 -user "" -cassette "" -floppydisk "" -cartridge batman -quickload ""


But then, what value should I set for exp so that it works?

Re: Commodore 64 doesn't load cartridges [Re: xinyingho] #117765 08/31/20 09:36 AM
Joined: Feb 2004
Posts: 2,168
Vas Crabb Offline
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,168
Cartridges connect to the "exp" port. You shouldn't specify -cart/-cartridge and -exp at the same time. You can that the -cart/-cartridge media option and -exp slot option are the same thing because you have this:
Code
    <device type="cartridge" tag="exp" interface="c64_cart,vic10_cart">
        <instance name="cartridge" briefname="cart"/>
        <extension name="80"/>
        <extension name="a0"/>
        <extension name="e0"/>
        <extension name="crt"/>
    </device>


The poorly-named "instance" tells you the command-line media options, and the "tag" attribute shows the media device's tag relative to the machine root.

Then you have this:
Code
    <slot name="exp">
        <slotoption name="buscard" devname="c64_buscard"/>
        <slotoption name="turbo232" devname="c64_turbo232"/>
        <slotoption name="midisiel" devname="c64_midisiel"/>
        <slotoption name="swiftlink" devname="c64_swiftlink"/>
        <slotoption name="supercpu" devname="c64_supercpu"/>
        <slotoption name="speakez" devname="c64_speakeasy"/>
        <slotoption name="sfxse" devname="c64_sfxse"/>
        <slotoption name="neoram" devname="c64_neoram"/>
        <slotoption name="georam" devname="c64_georam"/>
        <slotoption name="cpm" devname="c64_cpm"/>
        <slotoption name="dqbb" devname="c64_dqbb"/>
        <slotoption name="reu1764" devname="c64_1764reu"/>
        <slotoption name="buscard2" devname="c64_buscard2"/>
        <slotoption name="16k" devname="c64_16kb"/>
        <slotoption name="ide64" devname="c64_ide64"/>
        <slotoption name="reu1700" devname="c64_1700reu"/>
        <slotoption name="midipp" devname="c64_midipp"/>
        <slotoption name="midisci" devname="c64_midisci"/>
        <slotoption name="reu1750" devname="c64_1750reu"/>
        <slotoption name="easyflash" devname="c64_easyflash"/>
        <slotoption name="midimap" devname="c64_midimap"/>
        <slotoption name="music64" devname="c64_music64"/>
        <slotoption name="midins" devname="c64_midins"/>
    </slot>


The "name" attribute is the tag relative to the machine root - it's the same as the tag for the media device, so you know it's the same thing.

Re: Commodore 64 doesn't load cartridges [Re: xinyingho] #117768 08/31/20 12:40 PM
Joined: Dec 2013
Posts: 135
X
xinyingho Online Content OP
Senior Member
OP Online Content
Senior Member
X
Joined: Dec 2013
Posts: 135
I see. So this is a default slotoption, which can't be selected from the slot itself. This design is a bit weird but thanks for your precise explanations Vas Crabb, as usual.


Who's Online Now
4 registered members (Lord Nightmare, AaronGiles, AJR, 1 invisible), 40 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,811
Posts115,967
Members4,914
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3