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 > safe zero page addresses
2003-02-08 11:07
Nightlord

Registered: Jan 2003
Posts: 131
safe zero page addresses

can anybody verify me about whether it is safe to use zero page adresses $14 to $60 considering that no basic code will be run

or are there any more addresses in zero page that are safe to use during assembly coding (besides the $fb-$fe)

thanx
2003-02-08 12:41
Graham
Account closed

Registered: Dec 2002
Posts: 990
hard to say, depends on what kernal routines you use. if it's just I/O routines you use, it should work. same for floating point routines...
2003-02-08 12:44
Graham
Account closed

Registered: Dec 2002
Posts: 990
a small list of zeropage adresses which are free to use:

$92-$96 (only if no datasette is used)
$A3-$B1 (only if no RS-232 and datasette is used)
$F7-$FA (only if no RS-232 is used)
$FB-$FE (always)
2003-02-08 13:41
cadaver

Registered: Feb 2002
Posts: 1153
I've lived by the rule that at least $02-$7f is OK with ASM programs, as these are all Basic interpreter variables.
2003-02-08 23:40
Stryyker

Registered: Dec 2001
Posts: 465
Why don't people get the Programmers Reference Guide or AAY64 or something and test? Too easy? :)
2003-02-08 23:42
cadaver

Registered: Feb 2002
Posts: 1153
You mean like, change some ZP locations, see if kernal IO still works? A bit unreliable I'd say. Though I agree 100%about the C64 PRG suggestion :)
2003-02-08 23:51
cadaver

Registered: Feb 2002
Posts: 1153
Ahm, a little correction.. the PRG zeropage descriptions were better than I remembered :) Anyway, I mean that care must be taken when one starts choosing locations above $90 or so, because it might be just luck that things still work..
2003-02-09 10:25
Nightlord

Registered: Jan 2003
Posts: 131
well i have the programming guide and checked the zero page map before. but mine (which is a turkish translation) only has one line explanations for each address. it does not tell which kernal routines or internal hardware buffers are connected to those addresses. maybe the english original version has more info which i will surely check.
so i apologize from people that think i am wasting forum space by this question but i do not think it is a good idea to develop code that uses a potentially unsafe range of locations for its variables. and trying to test those locations by saving data in there and then doing kernal calls and then checking the data integrity should be rather painstaking.
instead i choose to bring it up here so that whole internet can learn from the answers i get. i think that is the point of a coding forum. and it works like this in every sw engineering forum througout the world no matter how many sw engineering books are around.
2003-02-09 10:37
Stryyker

Registered: Dec 2001
Posts: 465
Try the english version - a text version should be available at http://project64.c64.org/ or so.
2003-02-09 15:21
Nightlord

Registered: Jan 2003
Posts: 131
oh man thanx a lot... the project 64 site should solve all my problems. i did not know of that site.... thanx everyone...
2003-02-10 13:44
TDJ

Registered: Dec 2001
Posts: 1879
WIsh I found a site that would solve all my problems :)
 
... 7 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
JEZ
kbs/Pht/Lxt
Genius/Xenon
oziphantom
Ghost/Quantum
Seytan/Reflex
bepp/ΤRIΛD
Freeze/Blazon
Guests online: 151
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 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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