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 > How to detect a cartridge..?
2007-07-20 16:42
sailor

Registered: Jan 2002
Posts: 90
How to detect a cartridge..?

Hello all!

I was testing an old game(original), and i noticed that if i had an Action Replay it would reset during load(due to cartridge protection check), but a Retro Replay was undiscovered.
To get this title to bypass, you need to detach the AR-cart physically.. RR can stay in.

Before booting, i select "F3 - normal reset" in the cartridge menu for both carts.

The routine checks $de00-/$df00- and compares the data in the next loop (or so..).


if i make a routine like:

again   ldx #$00
getmore lda $de00,x
        sta $0400,x
        lda $df00,x
        sta $0500,x
        inx
        bne getmore
        jmp again

...It shows that an AR has some code visible (static data) at $df00-, but a RR shows the same as a clean c64 (data changing on both $de00/$df00).

My question is, is there a way to detect Retro Replay carts or enable it somehow so it can be detected?


Regards
Jani
2007-07-20 16:53
chatGPZ

Registered: Dec 2001
Posts: 11114
once the retroreplay is disabled ("normal reset" in RR rom) it should be impossible to detect
2007-07-20 17:02
sailor

Registered: Jan 2002
Posts: 90
ok... well, i was just curious..

thanks for your answer :)
2007-07-20 22:54
Graham
Account closed

Registered: Dec 2002
Posts: 990
@sailor:

AR has it's banking register in IO1 which is $DE00-$DEFF. Reading that range will crash the C64.

RR has different possibilities. It may run in AR compability mode (but without the read crash) or in RR mode.

And then there is FC3 too...
2007-07-21 12:15
sailor

Registered: Jan 2002
Posts: 90
@Graham

Yes, good point, i have seen some cart protection where they trash $de00/$df00-areas to freak (some)carts out.

I noticed that FC3 and some other carts can also be detected from the $de00/$df00 areas too.. and of course some "old" carts have something going on at $8000-..

..but if RR shuts itself off totally, it can be still in the background and pass undetected.

and thanks for the help :)

/Jani
2007-08-20 13:07
polonus
Account closed

Registered: Aug 2007
Posts: 9
Since it was quite hard to detect cartridge presence, I found a way to check if actual working software was freezed and continued. It worked well when check was performed in IRQ. AFAIR I used to put some values in some 'unused' VIC registers and, after freeze/defreeze those values were never intact. Unfortunately, I don't have any code example of this - just remember what I did. You can easily check it yourself, I suppose.
2007-08-20 16:03
CenTraX
Account closed

Registered: Jan 2002
Posts: 117
Examine code of Happy Bug at $4003-$xxxx :)
2007-08-20 18:46
polonus
Account closed

Registered: Aug 2007
Posts: 9
Quote: Examine code of Happy Bug at $4003-$xxxx :)

well - yes :D
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
A3/AFL
Matt
QuasaR/CENTRiC
Guests online: 93
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (10)
2 Mirage  (9.8)
3 Lobo  (9.7)
4 Mikael  (9.7)
5 Archmage  (9.7)

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