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: 11386
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
Peacemaker/CENSOR/Hi..
marley
rexbeng
Krill/Plush
REBEL 1/HF
Guests online: 111
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 Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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