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 > Hijacking LOAD, SAVE and the others
2006-08-22 12:36
BastetFurry

Registered: Jul 2005
Posts: 88
Hijacking LOAD, SAVE and the others

How is this best done so that most normal programms wont notice?
2006-08-22 12:45
chatGPZ

Registered: Dec 2001
Posts: 11114
just use the kernal vectors
2006-08-22 13:19
TNT
Account closed

Registered: Oct 2004
Posts: 189
Quote: How is this best done so that most normal programms wont notice?

You have D64 mounter source which does that already and you still need to ask? Check Mount() in d64plgin.asm + everything in de00.asm. Or do you mean something with limitations like "without Retro Replay or some other cartridge"? If so, then define "most normal programs" and find a memory area which is unused by any of them and put patch code there. Good luck in finding that memory, especially if your normal programs include anything packed.
2006-08-22 13:33
enthusi

Registered: May 2004
Posts: 675
Strange enough I feel like most programs dont use tapebuffer-area. Well depending on HOW small your alternative loader is going to be :) At least you could start from there and have some smart code in it that branches dynamically?
Dunno :)
2006-08-22 14:40
BastetFurry

Registered: Jul 2005
Posts: 88
@TNT:
Yeah, i want to give sans RR a try.

I thought of some small programm that disables Interrupt and then uses some code+puffer (Maybe i can even work pufferless?) stored under Kernal.
How long does the card wait till it thinks nobody is talking to it?

@Groepaz:
Should work as long as no programm tryes some funny stuff with them.

@enthusi:
If the puffer area is long enough for diabling kernal and enabling it again.
But the space from $0334 to $03ff should be big enough for that.


I have never before played around with the kernal, so, please let me ask my (maybe) stupid questions before i sit there and wonder why nothing works. ;)
2006-08-22 19:17
TNT
Account closed

Registered: Oct 2004
Posts: 189
I've never tried if you can leave MMC/SD card "hanging" for a long tme between reads. You'd better check Sasq's BIOS source to see how he does it without extra RAM. http://www.nightmode.org/mmc/

Decrunchers generally copy the data from $ffff downwards before decrunching, so RAM under kernal isn't that safe place. Actually there isn't any safe place, as decrunchers use low memory for code, so it isn't safe either.
2006-08-22 21:13
Oswald

Registered: Apr 2002
Posts: 5017
its possible to run code at the loose $dxxx area if you use the correct screen setup ;)
2006-08-23 00:32
BastetFurry

Registered: Jul 2005
Posts: 88
Hrm, if some stupid decruncher kills the code then the user have to live with it for now.
But it should be save for non-packed data as most normal programms use the kernal.
Its just some kind of proof of concept after all as everybody on forum64 is crying for a direct accses mode.
As long as i can play my RPGs i am fine ;)

And if the MMC/SD dosnt like big pauses then ill have to send the byte read command (CMD17 -> $51) more often, shouldnt kill the cart.
My only problem will be when someone tries bytewise write as i dont want to kill the flashmem inside the MMC/SD cart.
Long road ahead *g*

@oswald:
Huh?
I want to be as compatible as possible with just the mmc64 plugged in, as said its a proof of concept.
2006-08-24 06:06
chatGPZ

Registered: Dec 2001
Posts: 11114
running code that accesses i/o area in the i/o area might be an interisting (but futile :=P) experience :=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
Macbeth/PSW
Fred/Channel 4
MAT64
theK/ATL
soci/Singular
Guests online: 119
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 Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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