Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > detecting a cartridge....
2008-02-07 01:56
The Shadow

Registered: Oct 2007
Posts: 304
detecting a cartridge....

There must be somewhere in memory which recognizes the presence of a cartridge. How is it possible to simply detect the presence of a cartridge?
2008-02-07 02:25
assiduous
Account closed

Registered: Jun 2007
Posts: 343
it may depend on the cartridge i believe

here's how you do it with Retro Replay: http://codebase64.org/doku.php?id=base:rr_detect
2008-02-07 06:28
JackAsser

Registered: Jun 2002
Posts: 2014
I have a strong déjà vu feeling about this. Havn't we discussed this a zillion times (can't point you to any threads though :) ). Anyways, some cartridges simply won't be detectable once you use their built-in kill-command, but perhaps that's not what you asking? Are you asking like: If the cartridge is in its normal operation mode, can it then be detected properly? I beleive most, if not all, cartridges that are in operational mode can be detected.
2008-02-09 19:37
Necronomfive
Account closed

Registered: Dec 2004
Posts: 20
There is NO WAY to detect an Action Replay/Retro Replay/MMC Replay once the freezer has been configured. You can however fuck up Action Replay owners (if that's your intention) by performing a:

lda $de00

which crashes machines with Action Replay's. This wont work however on Retro Replay/MMC Replay.
2008-02-09 20:39
null
Account closed

Registered: Jun 2006
Posts: 645
I have heard once, that it is possible to detect a number of different carts, and show on screen *which* cart that is ( or 'undetected' if the cart is unknown ).

can't remember who wrote that, though...

------------------------------------
http://zomgwtfbbq.info
2008-02-10 10:45
chatGPZ

Registered: Dec 2001
Posts: 11386
it's possible as long as the cartridge is "active" (eg when you are in "fastload" mode in AR) ... however when you "kill" the cartridge, it's completely invisible to the c64 and only becomes visible again when you press freeze.
2008-02-10 21:17
AlexC

Registered: Jan 2008
Posts: 299
Take a look at my post:
http://noname.c64.org/csdb/forums/?roomid=11&topicid=3651&showa..

To clear things up: some carts like FCIII can be detected even after kill command has been issued. The 2 hard ones to detect are RR and Expert (from the carts I know and I have for tests). RR after the ZAP command is really invisible to the system. Expert in off position also seems to be hard to detect. I need to do some more research on this one to fully answer your question.
2008-02-10 22:18
Turtle
Account closed

Registered: Jan 2002
Posts: 70
There was an article in some mid 80s issue of the german C64-Magazin talking about copy-protections (by EA?) that check if a cartridge is present. Dunno any further detail...
2008-02-17 19:45
The Shadow

Registered: Oct 2007
Posts: 304
No just wondering how to detect a cartridge under normal use. Some programs such as Darksqueezer will not squeeze until a cartridge is disabled (as least with Super Snapshot Cartridge).
2008-02-17 22:02
AlexC

Registered: Jan 2008
Posts: 299
Quote: No just wondering how to detect a cartridge under normal use. Some programs such as Darksqueezer will not squeeze until a cartridge is disabled (as least with Super Snapshot Cartridge).

Basically it works like this:

1. try to enable cartridge ROM bank
2. check if certain procedure (byte sequence) is in place
3. jsr $proc

Also it is possible to use Action Replay RAM bank for own use (only certain areas are safe if you plan to use freezer and / or disk turbo). You can even use whole 8kb. Again this is done by writing to $DE00 certain values - take a look at my article, link is above.

Hope this helps...
2008-02-19 20:41
The Shadow

Registered: Oct 2007
Posts: 304
Yes Alex, thank you.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Spinball/Excess
Case/Padua
wil
Smasher/F4CG
Acidchild/Padua
New Design/Excess
iAN CooG/HVSC
Sulevi/Virtual Dreams
t0m3000/hf^boom!^ibx
tlr
iceout/Avatar/HF
Alakran_64
Peacemaker/CENSOR/Hi..
The Syndrom/TIA/Pret..
MWR/Visdom
Mike
Guests online: 117
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.047 sec.