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 > Keeping a few bits of information in a hostile environment
2021-04-18 09:24
Krill

Registered: Apr 2002
Posts: 3079
Keeping a few bits of information in a hostile environment

If not reserving space in RAM, where would read-writable data be most likely to survive throughout the run-time of any random demo or game?

$D800-$DC00 is often overwritten entirely, $00/$01 in RAM are too cumbersome to access.

$DD03 (parallel port data direction register) might be good, or maybe the 2x4 CIA TOD registers at $DC08 and $DD08.

Or are they? What else could be usable for that purpose? =)
 
... 72 posts hidden. Click here to view all posts....
 
2021-05-04 13:52
Rastah Bar
Account closed

Registered: Oct 2012
Posts: 336
Thanks for the explanations!
2021-05-05 03:45
Cruzer

Registered: Dec 2001
Posts: 1049
Had to look up heuristics, and found this very useful definition...

2021-05-05 07:15
map

Registered: Feb 2002
Posts: 27
Quoting Krill
But then i think the simple and safe solution of having the user shuffle over the drive type from installer return values struct to save/code upload parameter struct is acceptable.
Not as elegant, of course. =)


From all mentioned approaches this one sounds the best from my point of view. Leave the responsibility to find a good spot in the memory to the integrator of the Loader. Agreed, that it is less elegant.
Maybe having the Drive code to send some identification would be a good aproach as well as mentioned before but will cost not available resources and creates overhead.
2021-05-06 15:41
Sparta

Registered: Feb 2017
Posts: 49
While waiting for Krill's saver plug-in, try out Sparkle 2's hi-score file saver! :)
2021-05-07 12:32
Zibri
Account closed

Registered: May 2020
Posts: 304
Quoting Cruzer
Had to look up heuristics, and found this very useful definition...


lol for the "useful definition", anyway:

Heuristic comes from ancient greek and it's root is the verb EURISKO which means "to find".
A heuristic algorithm is a non deterministic one, is an algorithm, usually slower but sometimes needed, which employs a search function for a predetermined pattern or behaviour. Our brain for example uses both but mainly the heuristic method.
In short, any heuristic program or line of thought, basically does an "educated guess".
2021-05-07 13:33
Krill

Registered: Apr 2002
Posts: 3079
The better your heuristics, the more (H)EUREKA! moments you'll have.
2021-05-16 18:18
Krill

Registered: Apr 2002
Posts: 3079
Meanwhile, i have actually managed to query drivetype before uploading the appropriate piece of custom code. =)

All without any extra code on 1541 side or in the resident loader portion.

So no hiding nor manual shuffling-around of those two bits required. \=D/
2021-05-16 19:09
JackAsser

Registered: Jun 2002
Posts: 2038
Quote: Meanwhile, i have actually managed to query drivetype before uploading the appropriate piece of custom code. =)

All without any extra code on 1541 side or in the resident loader portion.

So no hiding nor manual shuffling-around of those two bits required. \=D/


Ossom!!
2021-05-17 00:42
Copyfault

Registered: Dec 2001
Posts: 486
Quoting Krill
Meanwhile, i have actually managed to query drivetype before uploading the appropriate piece of custom code. =)

All without any extra code on 1541 side or in the resident loader portion.

So no hiding nor manual shuffling-around of those two bits required. \=D/
This is worth a huge HOORAY!!!

Kudos for getting it done... and thanks for putting effort into it.


Shall I use that "most elegant"-phrase more often ;) ??
2021-05-17 21:35
Zibri
Account closed

Registered: May 2020
Posts: 304
Quote: The better your heuristics, the more (H)EUREKA! moments you'll have.

Precisely.
Eureka comes from the same verb (Eurisko) and it's the first person of the past tense: Literally: "I FOUND [it]" :D
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 - Next
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
tlr
csabanw
Smasher/F4CG
Guests online: 150
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.6)
4 Codeboys & Endians  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 What Is The Matrix 2  (9.6)
9 Comaland 100%  (9.6)
10 Uncensored  (9.6)
Top onefile Demos
1 Nine  (9.7)
2 Two 4 One  (9.7)
3 Scan and Spin  (9.7)
4 Layers  (9.6)
5 Cubic Dream  (9.6)
6 Party Elk 2  (9.6)
7 Copper Booze  (9.5)
8 Onscreen 5k  (9.5)
9 Libertongo  (9.5)
10 Dawnfall V1.1  (9.5)
Top Groups
1 Artline Designs  (9.4)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.5)
5 Facet  (9.5)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.049 sec.