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 > Header files with labels for ROM routines and VIC/SID/CIA registers
2009-06-24 18:46
Perplex

Registered: Feb 2009
Posts: 254
Header files with labels for ROM routines and VIC/SID/CIA registers

Hi,

I'm getting back into C64 demo coding after about 17 years of
absence from the scene, and I'm working on optimising my
development environment. Since I'm planning to share some
code with friends (and maybe later make it public), I'd like
to make it as readable as possible, and would like to use
symbolic names for VIC/SID/CIA registers and called BASIC
and Kernal ROM routines. I am however waaay to lazy to type
this all in by myself, so wondered if there are any good
header files readily available online that I can download
and use. It wouldn't hurt if the labels/names were somewhat
"official", ie. used by several existing books/manuals
/papers etc. Any pointers would be greatly appreciated.
2009-06-24 18:54
chatGPZ

Registered: Dec 2001
Posts: 11116
never seen such "official" headers .... i would consult the vic/sid/cia datasheets and use the names in there. (and for basic/kernal... there actually exist a few "legit" sources - like the programmers reference guide - but their naming doesnt always match =P)

and imho, writing BGCOLOR instead of $D021 makes it _less_ readable. its not like there are terribly much registers, and its not like we all wouldnt know them by heart already =)
2009-06-24 18:57
Perplex

Registered: Feb 2009
Posts: 254
I found this one for the BASIC and most of the Kernal
routines:

http://www.zimmers.net/anonftp/pub/cbm/maps/C64rom.lib

That leaves the VIC/SID/CIA chips and the zero-page
stuff. Anyone got some good label files for those?
2009-06-24 19:01
Perplex

Registered: Feb 2009
Posts: 254
True, I still remember most of this stuff by heart after
all these years. So I guess using the hexadesimal addresses
makes sense for the $Dxxx stuff. In which case I'm as good
as done -- doubt I'll be using the zero page for much else
than overwriting with my own stuff. :-)
2009-06-25 06:13
Martin Piper

Registered: Nov 2007
Posts: 634
Except the "standard" kernal labels I have my own descriptive labels in the stdlib directory from this project: http://codebase64.org/doku.php?id=projects:resurrection

Like others here I also remember the hex number by heart but I'm not writing code only for myself and have to remember that other programmers may not always remember this stuff. That is why I prefer to use descriptive (or the standard) label names where possible.
2009-06-25 12:31
Perplex

Registered: Feb 2009
Posts: 254
Lots of nice stuff in there, Martin. Thanks!
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
zscs
DjS/Silicon Ltd
chesser/Nigaz
The MeatBall
Mythus/Delysid
jmin
tlr
Krill/Plush
Cybortech/Graffity
Guests online: 98
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 Original Suppliers
1 Black Beard  (9.7)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Irata  (8.5)

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